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

Function test_slice_offset_out_of_bound

arrow-buffer/src/buffer/immutable.rs:727–730  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

725 #[test]
726 #[should_panic(expected = "the offset of the new Buffer cannot exceed the existing length")]
727 fn test_slice_offset_out_of_bound() {
728 let buf = Buffer::from(&[2, 4, 6, 8, 10]);
729 buf.slice(6);
730 }
731
732 #[test]
733 fn test_access_concurrently() {

Callers

nothing calls this directly

Calls 1

sliceMethod · 0.45

Tested by

no test coverage detected