MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / TestSplitPath

Function TestSplitPath

pkg/util/path_test.go:30–36  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

28}
29
30func TestSplitPath(t *testing.T) {
31 asserts := assert.New(t)
32 asserts.Equal([]string{}, SplitPath(""))
33 asserts.Equal([]string{}, SplitPath("1"))
34 asserts.Equal([]string{"/"}, SplitPath("/"))
35 asserts.Equal([]string{"/", "123", "321"}, SplitPath("/123/321"))
36}

Callers

nothing calls this directly

Calls 2

SplitPathFunction · 0.85
NewMethod · 0.65

Tested by

no test coverage detected