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

Function TestCleanPathsCleansPaths

tools/filetools_test.go:15–18  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

13)
14
15func TestCleanPathsCleansPaths(t *testing.T) {
16 cleaned := CleanPaths("/foo/bar/,/foo/bar/baz", ",")
17 assert.Equal(t, []string{"/foo/bar", "/foo/bar/baz"}, cleaned)
18}
19
20func TestCleanPathsReturnsNoResultsWhenGivenNoPaths(t *testing.T) {
21 cleaned := CleanPaths("", ",")

Callers

nothing calls this directly

Calls 2

CleanPathsFunction · 0.85
EqualMethod · 0.45

Tested by

no test coverage detected