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

Function test_result_add_change_modified

atomic-core/src/record/detect.rs:1140–1152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1138
1139 #[test]
1140 fn test_result_add_change_modified() {
1141 let mut result = DetectResult::new();
1142 result.add_change(FileChange::modified(
1143 "test.rs",
1144 Inode::ROOT,
1145 Position::ROOT,
1146 vec![],
1147 Encoding::Utf8,
1148 Encoding::Utf8,
1149 ));
1150
1151 assert_eq!(result.modified_count, 1);
1152 }
1153
1154 #[test]
1155 fn test_result_add_change_deleted() {

Callers

nothing calls this directly

Calls 2

modifiedFunction · 0.85
add_changeMethod · 0.45

Tested by

no test coverage detected