(t *testing.T)
| 20 | } |
| 21 | |
| 22 | func TestEnvironmentGetAllDelegatesToFetcher(t *testing.T) { |
| 23 | fetcher := MapFetcher(map[string][]string{ |
| 24 | "foo": []string{"bar", "baz"}, |
| 25 | }) |
| 26 | |
| 27 | env := EnvironmentOf(fetcher) |
| 28 | vals := env.GetAll("foo") |
| 29 | |
| 30 | assert.Equal(t, []string{"bar", "baz"}, vals) |
| 31 | } |
| 32 | |
| 33 | func TestEnvironmentUnsetBoolDefault(t *testing.T) { |
| 34 | env := EnvironmentOf(MapFetcher(nil)) |
nothing calls this directly
no test coverage detected