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

Function TestInput_EmptyBetween

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

Source from the content-addressed store, hash-verified

22}
23
24func TestInput_EmptyBetween(t *testing.T) {
25 sm := New("This is example.")
26 val := sm.Between("", "").ToUpper()
27 if val != "THIS IS EXAMPLE." {
28 t.Errorf("Expected: %s but got: %s", "THIS IS EXAMPLE.", val)
29 }
30}
31
32func TestInput_EmptyNoMatchBetween(t *testing.T) {
33 sm := New("This is example.")

Callers

nothing calls this directly

Calls 3

NewFunction · 0.85
ToUpperMethod · 0.65
BetweenMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…