MCPcopy Create free account
hub / github.com/checkmake/checkmake / TestFailConfig

Function TestFailConfig

config/config_test.go:23–31  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

21}
22
23func TestFailConfig(t *testing.T) {
24 cfg, err := NewConfigFromFile("../fixtures/idontexist.ini")
25
26 assert.NotEqual(t, nil, err)
27
28 val := cfg.GetRuleConfig("bla")
29
30 assert.Equal(t, rules.RuleConfig(nil), val)
31}
32
33func TestGetConfigValue(t *testing.T) {
34 cfg, err := NewConfigFromFile("../fixtures/exampleConfig.ini")

Callers

nothing calls this directly

Calls 3

RuleConfigTypeAlias · 0.92
NewConfigFromFileFunction · 0.85
GetRuleConfigMethod · 0.80

Tested by

no test coverage detected