()
| 1113 | |
| 1114 | #[test] |
| 1115 | fn test_writer_zombie_conflict() { |
| 1116 | let buf: Vec<u8> = Vec::new(); |
| 1117 | let mut writer = Writer::new(buf); |
| 1118 | |
| 1119 | writer.begin_zombie_conflict(5, None).unwrap(); |
| 1120 | writer.end_zombie_conflict(5).unwrap(); |
| 1121 | |
| 1122 | let output = String::from_utf8(writer.into_inner()).unwrap(); |
| 1123 | assert!(output.contains(markers::START)); |
| 1124 | assert!(output.contains(markers::END)); |
| 1125 | assert!(output.contains("5")); |
| 1126 | } |
| 1127 | |
| 1128 | #[test] |
| 1129 | fn test_writer_cyclic_conflict() { |
nothing calls this directly
no test coverage detected