(t *testing.T)
| 146 | } |
| 147 | |
| 148 | func TestExperimentTotalRunsFallback(t *testing.T) { |
| 149 | // When no runs array present, sum variant counts. |
| 150 | state := &ExperimentState{ |
| 151 | Counts: map[string]map[string]int{ |
| 152 | "exp": {"A": 3, "B": 4}, |
| 153 | }, |
| 154 | } |
| 155 | assert.Equal(t, 7, experimentTotalRuns(state), "total from counts fallback") |
| 156 | } |
| 157 | |
| 158 | func TestFormatAssignments(t *testing.T) { |
| 159 | tests := []struct { |
nothing calls this directly
no test coverage detected