(t *testing.T)
| 78 | } |
| 79 | |
| 80 | func TestGetOrDefaultNonExistentHostSpecificKey(t *testing.T) { |
| 81 | // Given have no top level configuration |
| 82 | cfg := newTestConfig() |
| 83 | |
| 84 | // When we get a key for a host that has no value |
| 85 | optionalEntry := cfg.GetOrDefault("non-existent-host", "non-existent-key") |
| 86 | |
| 87 | // Then it returns a None variant |
| 88 | require.True(t, optionalEntry.IsNone(), "expected there to be no value") |
| 89 | } |
| 90 | |
| 91 | func TestGetOrDefaultExistingTopLevelKey(t *testing.T) { |
| 92 | // Given have a top level config entry |
nothing calls this directly
no test coverage detected