MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_is_file_error

Function test_is_file_error

atomic-cli/src/error.rs:886–902  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

884
885 #[test]
886 fn test_is_file_error() {
887 assert!(CliError::file_not_found("test.txt").is_file_error());
888 assert!(CliError::FileNotTracked {
889 path: "test.txt".into()
890 }
891 .is_file_error());
892 assert!(CliError::FileAlreadyTracked {
893 path: "test.txt".into()
894 }
895 .is_file_error());
896 assert!(CliError::PathOutsideRepository {
897 path: "../outside".into()
898 }
899 .is_file_error());
900
901 assert!(!CliError::NothingToRecord.is_file_error());
902 }
903
904 #[test]
905 fn test_is_remote_error() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected