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

Function test_i32_overflow

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

Source from the content-addressed store, hash-verified

120 #[test]
121 #[should_panic(expected = "overflow")]
122 fn test_i32_overflow() {
123 let mut builder = OffsetBufferBuilder::<i32>::new(5);
124 builder.push_length(1);
125 builder.push_length(i32::MAX as usize);
126 builder.finish();
127 }
128}

Callers

nothing calls this directly

Calls 2

push_lengthMethod · 0.80
finishMethod · 0.45

Tested by

no test coverage detected