(t *testing.T)
| 65 | } |
| 66 | |
| 67 | func TestGetOrDefaultNonExistentKey(t *testing.T) { |
| 68 | // Given we have no top level configuration |
| 69 | cfg := newTestConfig() |
| 70 | |
| 71 | // When we get a key that has no value |
| 72 | optionalEntry := cfg.GetOrDefault("", "non-existent-key") |
| 73 | |
| 74 | // Then it returns a None variant |
| 75 | require.True(t, optionalEntry.IsNone(), "expected there to be no value") |
| 76 | } |
| 77 | |
| 78 | func TestGetOrDefaultNonExistentHostSpecificKey(t *testing.T) { |
| 79 | // Given have no top level configuration |
nothing calls this directly
no test coverage detected