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

Function test_constructor_repository_not_found

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

Source from the content-addressed store, hash-verified

1137
1138 #[test]
1139 fn test_constructor_repository_not_found() {
1140 let err = CliError::repository_not_found("/home/user");
1141 match err {
1142 CliError::RepositoryNotFound { searched_path } => {
1143 assert_eq!(searched_path, PathBuf::from("/home/user"));
1144 }
1145 _ => panic!("Wrong error variant"),
1146 }
1147 }
1148
1149 #[test]
1150 fn test_constructor_repository_exists() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected