()
| 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() { |
nothing calls this directly
no outgoing calls
no test coverage detected