(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func TestSimpleConfig(t *testing.T) { |
| 13 | cfg, err := NewConfigFromFile("../fixtures/exampleConfig.ini") |
| 14 | |
| 15 | require.Equal(t, nil, err, "Parsing of the fixture config file should have worked.") |
| 16 | |
| 17 | ruleCfg := cfg.GetRuleConfig("phonydeclared") |
| 18 | |
| 19 | assert.Equal(t, "true", ruleCfg["disabled"]) |
| 20 | assert.Equal(t, "bla", ruleCfg["foo"]) |
| 21 | } |
| 22 | |
| 23 | func TestFailConfig(t *testing.T) { |
| 24 | cfg, err := NewConfigFromFile("../fixtures/idontexist.ini") |
nothing calls this directly
no test coverage detected