(self, data: list[int], shift: int, expected: list[int])
| 108 | ids=["removes_oldest", "shift_all", "clamps_to_available", "zero_is_noop"], |
| 109 | ) |
| 110 | def test_shift(self, data: list[int], shift: int, expected: list[int]) -> None: |
| 111 | buf = AudioArrayBuffer(buffer_size=10) |
| 112 | buf.push_frame(_frame(data)) |
| 113 | buf.shift(shift) |
| 114 | _assert_eq(buf, expected) |
| 115 | |
| 116 | def test_on_empty(self) -> None: |
| 117 | buf = AudioArrayBuffer(buffer_size=10) |
nothing calls this directly
no test coverage detected