MCPcopy Create free account
hub / github.com/monitoror/monitoror / TestConfigVersionFormatError

Function TestConfigVersionFormatError

api/config/versions/errors_test.go:9–12  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

7)
8
9func TestConfigVersionFormatError(t *testing.T) {
10 err := &ConfigVersionFormatError{WrongVersion: "10"}
11 assert.Equal(t, "json: cannot unmarshal 10 into Go struct field Config.Version of type string and X.y format", err.Error())
12}

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.95

Tested by

no test coverage detected