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

Function test_repeat_slice_count_edge_cases

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

Source from the content-addressed store, hash-verified

1568
1569 #[test]
1570 fn test_repeat_slice_count_edge_cases() {
1571 // Empty slice
1572 test_repeat_count(100, &[] as &[i32]);
1573
1574 // Zero repeats
1575 test_repeat_count(0, &[1i32, 2, 3]);
1576 }
1577
1578 #[test]
1579 #[should_panic(expected = "repeated slice byte length overflow")]

Callers

nothing calls this directly

Calls 1

test_repeat_countFunction · 0.85

Tested by

no test coverage detected