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

Function TestDiscreteStats_EmptyData

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

Source from the content-addressed store, hash-verified

75}
76
77func TestDiscreteStats_EmptyData(t *testing.T) {
78 ds := &DiscreteStats{}
79 data := []string{}
80
81 ds.summary(data)
82
83 summaryData := ds.getSummaryData()
84 if len(summaryData) == 0 {
85 t.Log("Empty data handled correctly")
86 }
87}
88
89func TestDiscreteStats_UniqueValues(t *testing.T) {
90 ds := &DiscreteStats{}

Callers

nothing calls this directly

Calls 2

summaryMethod · 0.95
getSummaryDataMethod · 0.95

Tested by

no test coverage detected