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

Function TestInput_BooleanFalse

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

Source from the content-addressed store, hash-verified

49}
50
51func TestInput_BooleanFalse(t *testing.T) {
52 strs := []string{"off", "Off", "no", "NO", "0", "false"}
53 for _, s := range strs {
54 t.Run(s, func(t *testing.T) {
55 if val := New(s).Boolean(); val {
56 t.Errorf("Expected: to be false but got: %v", val)
57 }
58 })
59 }
60}
61
62func TestInput_BooleanError(t *testing.T) {
63 strs := []string{"invalid", "-1", ""}

Callers

nothing calls this directly

Calls 2

NewFunction · 0.85
BooleanMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…