summaryrefslogtreecommitdiffstats
path: root/tests/snapshots/cli__cli__correctly_fails_on_missing_file.snap
diff options
context:
space:
mode:
authorBlair Noctis <4474501+nc7s@users.noreply.github.com>2023-11-19 04:04:31 +0800
committerGitHub <noreply@github.com>2023-11-18 14:04:31 -0600
commit2d287b9b1c21d6ca21e649f9d97e0b5e9e542e12 (patch)
tree60d4b780bd27b4d7828ec366c7c643f5c7b16370 /tests/snapshots/cli__cli__correctly_fails_on_missing_file.snap
parent4241babe12350ac4665859ecc5542bd91a068af8 (diff)
Overall reorganization (#265)
* refactor!: overall reorganization * fmt: tab to spaces * feat: split out funcs for better error collection * feat: replace Vec-varianted Source with Vec<Source> * docs: more generic description for Error::InvalidPath * fmt: reduce signature verbosity * internal: decolorize to prepare for proper colorization * fmt: tab to spaces (again) * refactor: break up App into main.rs, rm utils.rs * test: only run cli::in_place_following_symlink on Unix, symlinks are privileged on Windows * test: update insta snapshots due to Replacer::new()? in main() * fix: restructure logic, Windows requires closing mmap before write * test: properly mark no-Windows test * test: properly mark temp. ignored test * fix: retain unsafe property of Mmap::map in separate function * chore: `cargo fmt` * chore: Resolve lone warning * test: Test a variety of fs failure cases * refactor: Add back `try_main()` * refactor: Rework error handling * test: Update snapshots * test: fix path inconsistency --------- Co-authored-by: Cosmic Horror <CosmicHorrorDev@pm.me>
Diffstat (limited to 'tests/snapshots/cli__cli__correctly_fails_on_missing_file.snap')
-rw-r--r--tests/snapshots/cli__cli__correctly_fails_on_missing_file.snap6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/snapshots/cli__cli__correctly_fails_on_missing_file.snap b/tests/snapshots/cli__cli__correctly_fails_on_missing_file.snap
new file mode 100644
index 0000000..eb2a82e
--- /dev/null
+++ b/tests/snapshots/cli__cli__correctly_fails_on_missing_file.snap
@@ -0,0 +1,6 @@
+---
+source: tests/cli.rs
+expression: stderr_norm
+---
+error: invalid path: <test_home>/missing
+