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

Function test_writer_end_conflict

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

Source from the content-addressed store, hash-verified

1036
1037 #[test]
1038 fn test_writer_end_conflict() {
1039 let buf: Vec<u8> = Vec::new();
1040 let mut writer = Writer::new(buf);
1041
1042 writer.end_conflict(1).unwrap();
1043
1044 let output = String::from_utf8(writer.into_inner()).unwrap();
1045 assert!(output.contains(markers::END));
1046 }
1047
1048 #[test]
1049 fn test_writer_full_conflict_sequence() {

Callers

nothing calls this directly

Calls 3

unwrapMethod · 0.45
end_conflictMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected