MCPcopy Create free account
hub / github.com/belak/gitdir / TestSanitize

Function TestSanitize

utils_test.go:99–114  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

97}
98
99func TestSanitize(t *testing.T) {
100 t.Parallel()
101
102 var tests = []struct { //nolint:gofumpt
103 Input string
104 Expected string
105 }{
106 {"", ""},
107 {"HELLO-WORLD", "hello-world"},
108 }
109
110 for _, test := range tests {
111 output := sanitize(test.Input)
112 assert.Equal(t, test.Expected, output)
113 }
114}
115
116func TestRunCommand(t *testing.T) {
117 t.Skip("not implemented")

Callers

nothing calls this directly

Calls 1

sanitizeFunction · 0.85

Tested by

no test coverage detected