(t *testing.T)
| 68 | } |
| 69 | |
| 70 | func TestGetConfigValueOnMissingDefaultSection(t *testing.T) { |
| 71 | cfg, err := NewConfigFromFile("../fixtures/exampleConfigNoDefault.ini") |
| 72 | |
| 73 | require.Equal(t, nil, err, "Parsing of the fixture config file should have worked.") |
| 74 | |
| 75 | format, err := cfg.GetConfigValue("format") |
| 76 | |
| 77 | assert.NotEqual(t, nil, err) |
| 78 | |
| 79 | assert.Equal(t, "", format) |
| 80 | assert.Equal(t, "config has no default section", err.Error()) |
| 81 | } |
nothing calls this directly
no test coverage detected