MCPcopy Create free account
hub / github.com/github/gh-aw / TestExperimentTotalRunsFallback

Function TestExperimentTotalRunsFallback

pkg/cli/experiments_command_test.go:148–156  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

146}
147
148func 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
158func TestFormatAssignments(t *testing.T) {
159 tests := []struct {

Callers

nothing calls this directly

Calls 1

experimentTotalRunsFunction · 0.85

Tested by

no test coverage detected