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

Method Assert

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

Source from the content-addressed store, hash-verified

90)
91
92func (c *EnvironmentConversionTestCase) Assert(t *testing.T) {
93 fetcher := MapFetcher(map[string][]string{
94 c.Val: []string{c.Val},
95 })
96
97 env := EnvironmentOf(fetcher)
98 got := c.GotFn(env, c.Val)
99
100 if c.Expected != got {
101 t.Errorf("lfs/config: expected val=%q to be %q (got: %q)", c.Val, c.Expected, got)
102 }
103}

Calls 3

MapFetcherFunction · 0.85
EnvironmentOfFunction · 0.85
ErrorfMethod · 0.65

Tested by

no test coverage detected