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

Function TestInput_PascalCaseNoRule

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

Source from the content-addressed store, hash-verified

105}
106
107func TestInput_PascalCaseNoRule(t *testing.T) {
108 str := New("pascal case this_complicated__string%%")
109 against := "PascalCaseThisComplicatedString%%"
110 if val := str.PascalCase().Get(); val != against {
111 t.Errorf("Expected: to be %s but got: %s", "PascalCaseThisComplicatedString", val)
112 }
113}
114
115func TestInput_PascalCaseOddRuleError(t *testing.T) {
116 defer func() {

Callers

nothing calls this directly

Calls 3

NewFunction · 0.85
GetMethod · 0.65
PascalCaseMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…