MCPcopy Index your code
hub / github.com/codechenx/FastTableViewer / TestContinuousStats_GetPlot_EmptyData

Function TestContinuousStats_GetPlot_EmptyData

stats_test.go:186–196  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

184}
185
186func TestContinuousStats_GetPlot_EmptyData(t *testing.T) {
187 cs := &ContinuousStats{}
188 data := []string{}
189
190 cs.summary(data)
191 plot := cs.getPlot()
192
193 if plot != "No data to plot" {
194 t.Errorf("Expected 'No data to plot', got: %s", plot)
195 }
196}
197
198func TestContinuousStats_GetPlot_IdenticalValues(t *testing.T) {
199 cs := &ContinuousStats{}

Callers

nothing calls this directly

Calls 2

summaryMethod · 0.95
getPlotMethod · 0.95

Tested by

no test coverage detected