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

Function test_writer_cyclic_conflict

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

Source from the content-addressed store, hash-verified

1127
1128 #[test]
1129 fn test_writer_cyclic_conflict() {
1130 let buf: Vec<u8> = Vec::new();
1131 let mut writer = Writer::new(buf);
1132
1133 writer.begin_cyclic_conflict(3).unwrap();
1134 writer.end_cyclic_conflict(3).unwrap();
1135
1136 let output = String::from_utf8(writer.into_inner()).unwrap();
1137 assert!(output.contains(markers::START));
1138 assert!(output.contains(markers::END));
1139 assert!(output.contains("3"));
1140 }
1141
1142 #[test]
1143 fn test_writer_empty_vertex() {

Callers

nothing calls this directly

Calls 4

unwrapMethod · 0.45
begin_cyclic_conflictMethod · 0.45
end_cyclic_conflictMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected