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