()
| 111 | #[test] |
| 112 | #[should_panic(expected = "overflow")] |
| 113 | fn test_usize_overflow() { |
| 114 | let mut builder = OffsetBufferBuilder::<i32>::new(5); |
| 115 | builder.push_length(1); |
| 116 | builder.push_length(usize::MAX); |
| 117 | builder.finish(); |
| 118 | } |
| 119 | |
| 120 | #[test] |
| 121 | #[should_panic(expected = "overflow")] |
nothing calls this directly
no test coverage detected