(ft *faketerm.Terminal, want cell.Color)
| 1937 | } |
| 1938 | |
| 1939 | func countCellsWithFGColor(ft *faketerm.Terminal, want cell.Color) int { |
| 1940 | count := 0 |
| 1941 | buffer := ft.BackBuffer() |
| 1942 | for x := range buffer { |
| 1943 | for y := range buffer[x] { |
| 1944 | if buffer[x][y].Opts.FgColor == want { |
| 1945 | count++ |
| 1946 | } |
| 1947 | } |
| 1948 | } |
| 1949 | return count |
| 1950 | } |
| 1951 | |
| 1952 | func TestValueAtOnlyHitsRenderedLineAndDoesNotBlockScroll(t *testing.T) { |
| 1953 | lc, err := New(BrailleOnly(), XAxisUnscaled()) |
no test coverage detected