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

Function test_constructor_invalid_path_without_source

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

Source from the content-addressed store, hash-verified

1172
1173 #[test]
1174 fn test_constructor_invalid_path_without_source() {
1175 let err = CliError::invalid_path("/nonexistent", None);
1176 match err {
1177 CliError::InvalidPath { path, source } => {
1178 assert_eq!(path, PathBuf::from("/nonexistent"));
1179 assert!(source.is_none());
1180 }
1181 _ => panic!("Wrong error variant"),
1182 }
1183 }
1184
1185 #[test]
1186 fn test_constructor_view_not_found() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected