()
| 128 | |
| 129 | |
| 130 | def test_buffer_instance(): |
| 131 | t = pw.debug.table_from_markdown( |
| 132 | """ |
| 133 | a | t | __time__ |
| 134 | 1 | 2 | 2 |
| 135 | 1 | 3 | 2 |
| 136 | 1 | 5 | 4 |
| 137 | 1 | 15 | 8 |
| 138 | 1 | 7 | 10 |
| 139 | 2 | 4 | 2 |
| 140 | 2 | 8 | 4 |
| 141 | 2 | 9 | 8 |
| 142 | 3 | 1 | 6 |
| 143 | """ |
| 144 | ) |
| 145 | |
| 146 | res = t._buffer( |
| 147 | pw.this.t + 2, |
| 148 | pw.this.t, |
| 149 | instance_column=pw.this.a, |
| 150 | ) |
| 151 | expected = pw.debug.table_from_markdown( |
| 152 | """ |
| 153 | a | t | __time__ |
| 154 | 1 | 2 | 4 |
| 155 | 1 | 3 | 4 |
| 156 | 1 | 5 | 8 |
| 157 | 1 | 15 | 18446744073709551614 |
| 158 | 1 | 7 | 10 |
| 159 | 2 | 4 | 4 |
| 160 | 2 | 8 | 18446744073709551614 |
| 161 | 2 | 9 | 18446744073709551614 |
| 162 | 3 | 1 | 18446744073709551614 |
| 163 | """ |
| 164 | ) |
| 165 | assert_stream_equality_wo_index(res, expected) |
| 166 | |
| 167 | |
| 168 | @pytest.mark.parametrize("public", [True, False]) |
nothing calls this directly
no test coverage detected