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

Function TestDiscreteStats_RepeatedValues

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

Source from the content-addressed store, hash-verified

99}
100
101func TestDiscreteStats_RepeatedValues(t *testing.T) {
102 ds := &DiscreteStats{}
103 data := []string{"X", "X", "X", "X", "X"}
104
105 ds.summary(data)
106
107 summaryData := ds.getSummaryData()
108 if len(summaryData) == 0 {
109 t.Error("Should handle repeated values")
110 }
111}
112
113// ========================================
114// Stats Interface Tests

Callers

nothing calls this directly

Calls 2

summaryMethod · 0.95
getSummaryDataMethod · 0.95

Tested by

no test coverage detected