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

Function TestInput_Suffix

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

Source from the content-addressed store, hash-verified

403}
404
405func TestInput_Suffix(t *testing.T) {
406 str := New("foobar")
407 against := "foobar"
408 if val := str.Suffix("bar"); val != against {
409 t.Errorf("Expected: to be %s but got: %s", against, val)
410 }
411
412 str = New("foobar")
413 against = "foobarbarbar"
414 if val := str.Suffix("barbar"); val != against {
415 t.Errorf("Expected: to be %s but got: %s", against, val)
416 }
417}

Callers

nothing calls this directly

Calls 2

NewFunction · 0.85
SuffixMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…