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

Function test_writer_conflict_next

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

Source from the content-addressed store, hash-verified

1025
1026 #[test]
1027 fn test_writer_conflict_next() {
1028 let buf: Vec<u8> = Vec::new();
1029 let mut writer = Writer::new(buf);
1030
1031 writer.conflict_next(1, None).unwrap();
1032
1033 let output = String::from_utf8(writer.into_inner()).unwrap();
1034 assert!(output.contains(markers::SEPARATOR));
1035 }
1036
1037 #[test]
1038 fn test_writer_end_conflict() {

Callers

nothing calls this directly

Calls 3

unwrapMethod · 0.45
conflict_nextMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected