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

Function test_writer_begin_conflict

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

Source from the content-addressed store, hash-verified

1014
1015 #[test]
1016 fn test_writer_begin_conflict() {
1017 let buf: Vec<u8> = Vec::new();
1018 let mut writer = Writer::new(buf);
1019
1020 writer.begin_conflict(1, None).unwrap();
1021
1022 let output = String::from_utf8(writer.into_inner()).unwrap();
1023 assert!(output.contains(markers::START));
1024 }
1025
1026 #[test]
1027 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