Commit 9dd9e040 authored by Adrian Sutton's avatar Adrian Sutton Committed by GitHub

op-challenger: Add super-cannon to GameType strings (#13832)

parent 8910388c
...@@ -48,6 +48,8 @@ func (t GameType) String() string { ...@@ -48,6 +48,8 @@ func (t GameType) String() string {
return "asterisc" return "asterisc"
case AsteriscKonaGameType: case AsteriscKonaGameType:
return "asterisc-kona" return "asterisc-kona"
case SuperCannonGameType:
return "super-cannon"
case FastGameType: case FastGameType:
return "fast" return "fast"
case AlphabetGameType: case AlphabetGameType:
......
...@@ -69,3 +69,12 @@ func TestKnownGameTypeForEveryTraceType(t *testing.T) { ...@@ -69,3 +69,12 @@ func TestKnownGameTypeForEveryTraceType(t *testing.T) {
}) })
} }
} }
func TestKnownStringForUtilisedGameType(t *testing.T) {
for _, traceType := range TraceTypes {
traceType := traceType
t.Run(traceType.String(), func(t *testing.T) {
require.NotContains(t, traceType.GameType().String(), "invalid")
})
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment