MCPcopy Create free account
hub / github.com/codechenx/FastTableViewer / TestDiscreteStats_GetPlot_EmptyData

Function TestDiscreteStats_GetPlot_EmptyData

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

Source from the content-addressed store, hash-verified

224}
225
226func TestDiscreteStats_GetPlot_EmptyData(t *testing.T) {
227 ds := &DiscreteStats{}
228 data := []string{}
229
230 ds.summary(data)
231 plot := ds.getPlot()
232
233 if plot != "No data to plot" {
234 t.Errorf("Expected 'No data to plot', got: %s", plot)
235 }
236}

Callers

nothing calls this directly

Calls 2

summaryMethod · 0.95
getPlotMethod · 0.95

Tested by

no test coverage detected