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

Function append_n_zeroed_length_overflow

arrow-buffer/src/builder/mod.rs:453–457  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

451 #[test]
452 #[should_panic(expected = "buffer length overflow")]
453 fn append_n_zeroed_length_overflow() {
454 let mut builder = BufferBuilder::<u64>::new(1);
455 builder.append_n_zeroed(1);
456 builder.append_n_zeroed(usize::MAX / mem::size_of::<u64>());
457 }
458
459 #[test]
460 #[should_panic(expected = "buffer length overflow")]

Callers

nothing calls this directly

Calls 1

append_n_zeroedMethod · 0.80

Tested by

no test coverage detected