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

Function TestContinuousStats_WithNaN

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

Source from the content-addressed store, hash-verified

46}
47
48func TestContinuousStats_WithNaN(t *testing.T) {
49 cs := &ContinuousStats{}
50 data := []string{"10.5", "NaN", "15.7", "invalid", "18.9"}
51
52 cs.summary(data)
53
54 // Should handle invalid/NaN values gracefully
55 summaryData := cs.getSummaryData()
56 if len(summaryData) == 0 {
57 t.Error("Should produce summary even with invalid values")
58 }
59}
60
61// ========================================
62// Discrete Stats Tests

Callers

nothing calls this directly

Calls 2

summaryMethod · 0.95
getSummaryDataMethod · 0.95

Tested by

no test coverage detected