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

Function TestEnvironmentIntTestCases

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

Source from the content-addressed store, hash-verified

56}
57
58func TestEnvironmentIntTestCases(t *testing.T) {
59 for _, c := range []EnvironmentConversionTestCase{
60 {"", 1, GetIntDefault(1)},
61
62 {"1", 1, GetIntDefault(0)},
63 {"3", 3, GetIntDefault(0)},
64
65 {"malformed", 7, GetIntDefault(7)},
66 } {
67 c.Assert(t)
68 }
69}
70
71type EnvironmentConversionTestCase struct {
72 Val string

Callers

nothing calls this directly

Calls 1

AssertMethod · 0.45

Tested by

no test coverage detected