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

Function TestContinuousStats_GetPlot_IdenticalValues

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

Source from the content-addressed store, hash-verified

196}
197
198func TestContinuousStats_GetPlot_IdenticalValues(t *testing.T) {
199 cs := &ContinuousStats{}
200 data := []string{"42", "42", "42", "42", "42"}
201
202 cs.summary(data)
203 plot := cs.getPlot()
204
205 if plot != "All values are identical" {
206 t.Errorf("Expected 'All values are identical', got: %s", plot)
207 }
208}
209
210func TestDiscreteStats_GetPlot(t *testing.T) {
211 ds := &DiscreteStats{}

Callers

nothing calls this directly

Calls 2

summaryMethod · 0.95
getPlotMethod · 0.95

Tested by

no test coverage detected