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

Function TestInput_TeaseEmpty

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

Source from the content-addressed store, hash-verified

305}
306
307func TestInput_TeaseEmpty(t *testing.T) {
308 str := New("This is just simple paragraph on lorem ipsum.")
309 against := "This is just simple paragraph on lorem ipsum."
310 if val := str.Tease(200, "..."); val != against {
311 t.Errorf("Expected: to be %s but got: %s", against, val)
312 }
313}
314
315func TestInput_Title(t *testing.T) {
316 str := New("this is just AN eXample")

Callers

nothing calls this directly

Calls 2

NewFunction · 0.85
TeaseMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…