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

Function test_writer_zombie_conflict

atomic-core/src/output/traits.rs:1115–1126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1113
1114 #[test]
1115 fn test_writer_zombie_conflict() {
1116 let buf: Vec<u8> = Vec::new();
1117 let mut writer = Writer::new(buf);
1118
1119 writer.begin_zombie_conflict(5, None).unwrap();
1120 writer.end_zombie_conflict(5).unwrap();
1121
1122 let output = String::from_utf8(writer.into_inner()).unwrap();
1123 assert!(output.contains(markers::START));
1124 assert!(output.contains(markers::END));
1125 assert!(output.contains("5"));
1126 }
1127
1128 #[test]
1129 fn test_writer_cyclic_conflict() {

Callers

nothing calls this directly

Calls 4

unwrapMethod · 0.45
begin_zombie_conflictMethod · 0.45
end_zombie_conflictMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected