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

Function TestFetchIncludeExcludesAreCleaned

config/config_test.go:189–199  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

187}
188
189func TestFetchIncludeExcludesAreCleaned(t *testing.T) {
190 cfg := NewFrom(Values{
191 Git: map[string][]string{
192 "lfs.fetchinclude": []string{"/path/to/clean/"},
193 "lfs.fetchexclude": []string{"/other/path/to/clean/"},
194 },
195 })
196
197 assert.Equal(t, []string{"/path/to/clean"}, cfg.FetchIncludePaths())
198 assert.Equal(t, []string{"/other/path/to/clean"}, cfg.FetchExcludePaths())
199}
200
201func TestRepositoryPermissions(t *testing.T) {
202 perms := 0666 & ^umask()

Callers

nothing calls this directly

Calls 4

NewFromFunction · 0.85
FetchIncludePathsMethod · 0.80
FetchExcludePathsMethod · 0.80
EqualMethod · 0.45

Tested by

no test coverage detected