Compare commits
2 commits
f9d9e304e5
...
f856866a53
| Author | SHA1 | Date | |
|---|---|---|---|
| f856866a53 | |||
| efcbab04c6 |
4 changed files with 19 additions and 9 deletions
|
|
@ -35,16 +35,16 @@ jobs:
|
||||||
run: .forgejo/workflows/setup-tools.sh
|
run: .forgejo/workflows/setup-tools.sh
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: just build
|
run: just ci build
|
||||||
|
|
||||||
- name: Format
|
- name: Format
|
||||||
run: just format-assess
|
run: just ci format-assess
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: just lint-assess
|
run: just ci lint-assess
|
||||||
- name: Cargo check
|
- name: Cargo check
|
||||||
run: just check
|
run: just ci check
|
||||||
- name: Test
|
- name: Test
|
||||||
run: just test
|
run: just ci test
|
||||||
- name: Assess test coverage
|
- name: Assess test coverage
|
||||||
run: just cover-assess
|
run: just ci cover-assess
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -433,6 +433,12 @@ default:
|
||||||
choose:
|
choose:
|
||||||
@just --choose
|
@just --choose
|
||||||
|
|
||||||
|
[script, private]
|
||||||
|
ci recipe:
|
||||||
|
id -u ci >/dev/null 2>&1 || useradd -m ci
|
||||||
|
chown -R ci:ci .
|
||||||
|
su ci -c "just {{ recipe }}"
|
||||||
|
|
||||||
alias ch := choose
|
alias ch := choose
|
||||||
|
|
||||||
export CARGO_TERM_COLOR := 'always'
|
export CARGO_TERM_COLOR := 'always'
|
||||||
|
|
|
||||||
4
Cargo.lock
generated
4
Cargo.lock
generated
|
|
@ -854,9 +854,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rustls-webpki"
|
name = "rustls-webpki"
|
||||||
version = "0.103.9"
|
version = "0.103.10"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "d7df23109aa6c1567d1c575b9952556388da57401e4ace1d15f79eedad0d8f53"
|
checksum = "df33b2b81ac578cabaf06b89b0631153a3f416b0a886e8a7a1707fb51abbd1ef"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ring",
|
"ring",
|
||||||
"rustls-pki-types",
|
"rustls-pki-types",
|
||||||
|
|
|
||||||
|
|
@ -724,7 +724,7 @@ mod tests {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn not_found_fallback_error() {
|
fn not_found_asset_error() {
|
||||||
let error = fallback("not_found.png", &Graph::default()).unwrap_err();
|
let error = fallback("not_found.png", &Graph::default()).unwrap_err();
|
||||||
|
|
||||||
assert!(matches!(&error.kind, AssetErrorKind::NotFound));
|
assert!(matches!(&error.kind, AssetErrorKind::NotFound));
|
||||||
|
|
@ -736,6 +736,7 @@ mod tests {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
#[cfg(unix)]
|
||||||
#[expect(clippy::panic_in_result_fn)]
|
#[expect(clippy::panic_in_result_fn)]
|
||||||
mod serial_tests {
|
mod serial_tests {
|
||||||
use std::{fs, os::unix::fs::PermissionsExt as _};
|
use std::{fs, os::unix::fs::PermissionsExt as _};
|
||||||
|
|
@ -755,6 +756,9 @@ mod serial_tests {
|
||||||
permissions.set_mode(0o200);
|
permissions.set_mode(0o200);
|
||||||
fs::set_permissions(&file, permissions)?;
|
fs::set_permissions(&file, permissions)?;
|
||||||
|
|
||||||
|
let new_permissions = fs::metadata(&file)?.permissions();
|
||||||
|
assert_eq!(new_permissions.mode() & 0o777, 0o200);
|
||||||
|
|
||||||
let error = fallback("unreadable.png", &Graph::default()).unwrap_err();
|
let error = fallback("unreadable.png", &Graph::default()).unwrap_err();
|
||||||
|
|
||||||
assert!(matches!(&error.kind, AssetErrorKind::IO));
|
assert!(matches!(&error.kind, AssetErrorKind::IO));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue