MCPcopy
hub / github.com/git-lfs/git-lfs / TestEnvironmentGetAllDelegatesToFetcher

Function TestEnvironmentGetAllDelegatesToFetcher

config/environment_test.go:22–31  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

20}
21
22func 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
33func TestEnvironmentUnsetBoolDefault(t *testing.T) {
34 env := EnvironmentOf(MapFetcher(nil))

Callers

nothing calls this directly

Calls 4

MapFetcherFunction · 0.85
EnvironmentOfFunction · 0.85
GetAllMethod · 0.65
EqualMethod · 0.45

Tested by

no test coverage detected