MCPcopy
hub / github.com/google/mangle / TestWarningSeverityString

Function TestWarningSeverityString

analysis/temporal_test.go:121–136  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

119}
120
121func TestWarningSeverityString(t *testing.T) {
122 tests := []struct {
123 severity WarningSeverity
124 want string
125 }{
126 {SeverityInfo, "info"},
127 {SeverityWarning, "warning"},
128 {SeverityCritical, "critical"},
129 }
130
131 for _, tt := range tests {
132 if got := tt.severity.String(); got != tt.want {
133 t.Errorf("WarningSeverity(%d).String() = %q, want %q", tt.severity, got, tt.want)
134 }
135 }
136}

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected