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

Function test_constructor_repository_exists

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

Source from the content-addressed store, hash-verified

1148
1149 #[test]
1150 fn test_constructor_repository_exists() {
1151 let err = CliError::repository_exists("/home/user");
1152 match err {
1153 CliError::RepositoryExists { path } => {
1154 assert_eq!(path, PathBuf::from("/home/user"));
1155 }
1156 _ => panic!("Wrong error variant"),
1157 }
1158 }
1159
1160 #[test]
1161 fn test_constructor_invalid_path_with_source() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected