()
| 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() { |
nothing calls this directly
no test coverage detected