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

Function slice_overflow

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

Source from the content-addressed store, hash-verified

888 #[test]
889 #[should_panic(expected = "the offset of the new Buffer cannot exceed the existing length")]
890 fn slice_overflow() {
891 let buffer = Buffer::from(MutableBuffer::from_len_zeroed(12));
892 buffer.slice_with_length(2, usize::MAX);
893 }
894
895 #[test]
896 fn test_vec_interop() {

Callers

nothing calls this directly

Calls 1

slice_with_lengthMethod · 0.80

Tested by

no test coverage detected