(t *testing.T)
| 46 | } |
| 47 | |
| 48 | func 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 |
nothing calls this directly
no test coverage detected