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

Function TestInput_PascalCaseOddRuleError

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

Source from the content-addressed store, hash-verified

113}
114
115func TestInput_PascalCaseOddRuleError(t *testing.T) {
116 defer func() {
117 if err := recover(); err == nil {
118 t.Errorf("Error expected")
119 }
120 }()
121 str := New("pascal case this_complicated__string%%")
122 against := "PascalCaseThisComplicatedString%%"
123 if val := str.PascalCase("%").Get(); val != against {
124 t.Errorf("Expected: to be %s but got: %s", "PascalCaseThisComplicatedString", val)
125 }
126}
127
128func TestInput_ContainsAll(t *testing.T) {
129 contains := New("hello mam how are you??")

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…