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

Function test_mutable_reserve_overflow

arrow-buffer/src/buffer/mutable.rs:1682–1687  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1680 #[test]
1681 #[should_panic(expected = "buffer length overflow")]
1682 fn test_mutable_reserve_overflow() {
1683 // Tests overflow during growth (checked_add)
1684 let mut buf = MutableBuffer::new(1);
1685 buf.push(1u8);
1686 buf.reserve(usize::MAX);
1687 }
1688}

Callers

nothing calls this directly

Calls 2

pushMethod · 0.45
reserveMethod · 0.45

Tested by

no test coverage detected