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

Function TestInput_First

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

Source from the content-addressed store, hash-verified

353}
354
355func TestInput_First(t *testing.T) {
356 fcn := New("4111 1111 1111 1111")
357 against := "4111"
358 if first := fcn.First(4); first != against {
359 t.Errorf("Expected: to be %s but got: %s", against, first)
360 }
361}
362
363func TestInput_FirstError(t *testing.T) {
364 defer func() {

Callers

nothing calls this directly

Calls 2

NewFunction · 0.85
FirstMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…