MCPcopy Create free account
hub / github.com/apache/arrow-rs / test_usize_overflow

Function test_usize_overflow

arrow-buffer/src/builder/offset.rs:113–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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")]

Callers

nothing calls this directly

Calls 2

push_lengthMethod · 0.80
finishMethod · 0.45

Tested by

no test coverage detected