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

Function TestEnvironmentUnsetBoolDefault

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

Source from the content-addressed store, hash-verified

31}
32
33func TestEnvironmentUnsetBoolDefault(t *testing.T) {
34 env := EnvironmentOf(MapFetcher(nil))
35 assert.True(t, env.Bool("unset", true))
36}
37
38func TestEnvironmentBoolTruthyConversion(t *testing.T) {
39 for _, c := range []EnvironmentConversionTestCase{

Callers

nothing calls this directly

Calls 3

EnvironmentOfFunction · 0.85
MapFetcherFunction · 0.85
BoolMethod · 0.65

Tested by

no test coverage detected