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

Function TestInput_Delimited

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

Source from the content-addressed store, hash-verified

136}
137
138func TestInput_Delimited(t *testing.T) {
139 str := New("Delimited case this_complicated__string@@")
140 against := "delimited.case.this.complicated.string"
141 if val := str.Delimited(".", "@", "").ToLower(); val != against {
142 t.Errorf("Expected: to be %s but got: %s", against, val)
143 }
144}
145
146func TestInput_DelimitedNoDelimeter(t *testing.T) {
147 str := New("Delimited case this_complicated__string@@")

Callers

nothing calls this directly

Calls 3

NewFunction · 0.85
ToLowerMethod · 0.65
DelimitedMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…