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

Function TestInput_Surround

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

Source from the content-addressed store, hash-verified

289}
290
291func TestInput_Surround(t *testing.T) {
292 str := New("this")
293 against := "__this__"
294 if val := str.Surround("__"); val != against {
295 t.Errorf("Expected: to be %s but got: %s", against, val)
296 }
297}
298
299func TestInput_Tease(t *testing.T) {
300 str := New("This is just simple paragraph on lorem ipsum.")

Callers

nothing calls this directly

Calls 2

NewFunction · 0.85
SurroundMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…