MCPcopy Index your code
hub / github.com/devspace-sh/devspace / TestBool

Function TestBool

pkg/util/ptr/ptr_test.go:40–46  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

38}
39
40func TestBool(t *testing.T) {
41 boolPointer := Bool(true)
42 assert.Equal(t, *boolPointer, true, "Returned bool pointer points wrong")
43
44 boolPointer = Bool(false)
45 assert.Equal(t, *boolPointer, false, "Returned bool pointer points wrong")
46}
47
48func TestReverseBool(t *testing.T) {
49 someBool := true

Callers

nothing calls this directly

Calls 2

BoolFunction · 0.85
EqualMethod · 0.80

Tested by

no test coverage detected