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

Function test_pristine_file_state_new

atomic-core/src/record/context.rs:1206–1219  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1204
1205 #[test]
1206 fn test_pristine_file_state_new() {
1207 let state = PristineFileState::new(
1208 Inode::new(42),
1209 Position::new(NodeId::new(1), ChangePosition::new(0)),
1210 "src/main.rs",
1211 );
1212
1213 assert_eq!(state.inode, Inode::new(42));
1214 assert_eq!(state.path, "src/main.rs");
1215 assert!(state.content_hash.is_none());
1216 assert!(state.size.is_none());
1217 assert!(state.mtime.is_none());
1218 assert!(!state.is_directory);
1219 }
1220
1221 #[test]
1222 fn test_pristine_file_state_as_directory() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected