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

Function test_end_overflow

arrow-buffer/src/buffer/scalar.rs:349–352  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

347 #[test]
348 #[should_panic(expected = "length overflow")]
349 fn test_end_overflow() {
350 let buffer = Buffer::from_iter([0_i32, 1, 2]);
351 ScalarBuffer::<i32>::new(buffer, 0, usize::MAX / 4 + 1);
352 }
353
354 #[test]
355 fn convert_from_buffer_builder() {

Callers

nothing calls this directly

Calls 1

from_iterFunction · 0.70

Tested by

no test coverage detected