(t *testing.T)
| 21 | } |
| 22 | |
| 23 | func 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 | |
| 33 | func TestGetConfigValue(t *testing.T) { |
| 34 | cfg, err := NewConfigFromFile("../fixtures/exampleConfig.ini") |
nothing calls this directly
no test coverage detected