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

Function TestInput_CamelCase

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

Source from the content-addressed store, hash-verified

76}
77
78func TestInput_CamelCase(t *testing.T) {
79 str := New("Camel case this_complicated__string%%")
80 against := "camelCaseThisComplicatedString"
81 if val := str.CamelCase("%", "").Get(); val != against {
82 t.Errorf("Expected: to be %s but got: %s", "camelCaseThisComplicatedString", val)
83 }
84}
85
86func TestInput_CamelCaseNoRule(t *testing.T) {
87 str := New("Camel case this_complicated__string%%")

Callers

nothing calls this directly

Calls 3

NewFunction · 0.85
GetMethod · 0.65
CamelCaseMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…