MCPcopy Create free account
hub / github.com/chanify/chanify / TestFileBaseName

Function TestFileBaseName

core/utils_test.go:105–112  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

103}
104
105func TestFileBaseName(t *testing.T) {
106 if fileBaseName("..") != "" {
107 t.Error("Check file base name failed!")
108 }
109 if fileBaseName("./123/abc.xyz") != "abc.xyz" {
110 t.Error("Get file base name failed!")
111 }
112}
113
114func TestJsonString(t *testing.T) {
115 var data struct {

Callers

nothing calls this directly

Calls 1

fileBaseNameFunction · 0.85

Tested by

no test coverage detected