(t *testing.T)
| 34 | pixels := image.NewNRGBA(image.Rect(0, 0, 1, 1)) |
| 35 | pixels.Set(0, 0, color.NRGBA{R: 0x22, G: 0x66, B: 0xAA, A: 0xFF}) |
| 36 | if err := png.Encode(&encoded, pixels); err != nil { |
| 37 | t.Fatal(err) |
| 38 | } |
| 39 | return encoded.Bytes() |
| 40 | } |
| 41 | |
| 42 | func testVC() *viewContext { |
| 43 | return &viewContext{ |
| 44 | ctx: context.Background(), |
| 45 | styles: newStyles(), |
| 46 | imageRenderer: textImageRenderer{}, |
| 47 | width: 80, |
| 48 | height: 30, |
| 49 | } |
| 50 | } |
nothing calls this directly
no test coverage detected