MCPcopy Create free account
hub / github.com/basecamp/hey-cli / TestMailViewInitRefetchesWhenBoxesLoaded

Function TestMailViewInitRefetchesWhenBoxesLoaded

internal/tui/mail_test.go:36–47  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

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
42func testVC() *viewContext {
43 return &viewContext{
44 ctx: context.Background(),
45 styles: newStyles(),
46 imageRenderer: textImageRenderer{},
47 width: 80,
48 height: 30,
49 }
50}

Callers

nothing calls this directly

Calls 5

newMailViewFunction · 0.85
testVCFunction · 0.85
testBoxesFunction · 0.85
InitMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected