MCPcopy
hub / github.com/pterm/pterm / TestHeatmapPrinter_WithData

Function TestHeatmapPrinter_WithData

heatmap_printer_test.go:99–110  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

97}
98
99func TestHeatmapPrinter_WithData(t *testing.T) {
100 proxyToDevNull()
101 d := [][]float32{
102 {-1, -0.9, -0.8, -0.7, -0.6},
103 {-1, -0.9, -0.8, -0.7, -0.6},
104 }
105
106 h := pterm.HeatmapPrinter{}
107 h2 := h.WithData(d)
108
109 testza.AssertEqualValues(t, d, h2.Data)
110}
111
112func TestHeatmapPrinter_WithBoxed(t *testing.T) {
113 h := pterm.HeatmapPrinter{}

Callers

nothing calls this directly

Calls 2

WithDataMethod · 0.95
proxyToDevNullFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…