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

Function test_repeat_slice_count_len_overflow

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

Source from the content-addressed store, hash-verified

1585 #[test]
1586 #[should_panic(expected = "mutable buffer length overflow")]
1587 fn test_repeat_slice_count_len_overflow() {
1588 let mut buffer = MutableBuffer::new(0);
1589 buffer.push(0_u8);
1590 buffer.repeat_slice_n_times(&[0_u8], usize::MAX);
1591 }
1592
1593 #[test]
1594 fn test_small_repeats_counts() {

Callers

nothing calls this directly

Calls 2

repeat_slice_n_timesMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected