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

Function test_writer_begin_conflict

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

Source from the content-addressed store, hash-verified

1035
1036 #[test]
1037 fn test_writer_begin_conflict() {
1038 let buf: Vec<u8> = Vec::new();
1039 let mut writer = Writer::new(buf);
1040
1041 writer.begin_conflict(1, None).unwrap();
1042
1043 let output = String::from_utf8(writer.into_inner()).unwrap();
1044 assert!(output.contains(markers::START));
1045 }
1046
1047 #[test]
1048 fn test_writer_conflict_next() {

Callers

nothing calls this directly

Calls 3

unwrapMethod · 0.45
begin_conflictMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected