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

Function TestInput_Last

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

Source from the content-addressed store, hash-verified

381}
382
383func TestInput_Last(t *testing.T) {
384 lcn := New("4111 1111 1111 1348")
385 against := "1348"
386 if last := lcn.Last(4); last != against {
387 t.Errorf("Expected: to be %s but got: %s", against, last)
388 }
389}
390
391func TestInput_Prefix(t *testing.T) {
392 str := New("foobar")

Callers

nothing calls this directly

Calls 2

NewFunction · 0.85
LastMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…