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

Function test_start_overflow

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

Source from the content-addressed store, hash-verified

340 #[test]
341 #[should_panic(expected = "offset overflow")]
342 fn test_start_overflow() {
343 let buffer = Buffer::from_iter([0_i32, 1, 2]);
344 ScalarBuffer::<i32>::new(buffer, usize::MAX / 4 + 1, 0);
345 }
346
347 #[test]
348 #[should_panic(expected = "length overflow")]

Callers

nothing calls this directly

Calls 1

from_iterFunction · 0.70

Tested by

no test coverage detected