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

Function TestInput_CamelCaseNoRule

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

Source from the content-addressed store, hash-verified

84}
85
86func TestInput_CamelCaseNoRule(t *testing.T) {
87 str := New("Camel case this_complicated__string%%")
88 against := "camelCaseThisComplicatedString%%"
89 if val := str.CamelCase().Get(); val != against {
90 t.Errorf("Expected: to be %s but got: %s", "camelCaseThisComplicatedString", val)
91 }
92}
93
94func TestInput_CamelCaseOddRuleError(t *testing.T) {
95 defer func() {

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…