MCPcopy Create free account
hub / github.com/gobeam/stringy / TestInput_KebabCase

Function TestInput_KebabCase

stringy_test.go:154–160  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

152}
153
154func TestInput_KebabCase(t *testing.T) {
155 str := New("Kebab case this-complicated___string@@")
156 against := "Kebab-case-this-complicated-string"
157 if val := str.KebabCase("@", "").Get(); val != against {
158 t.Errorf("Expected: to be %s but got: %s", against, val)
159 }
160}
161
162func TestInput_LcFirst(t *testing.T) {
163 tests := []struct {

Callers

nothing calls this directly

Calls 3

NewFunction · 0.85
GetMethod · 0.65
KebabCaseMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…