📖 2 min read (~ 300 words).

Boolean

Asserting Boolean Values

Assertions

GoDoc

All links point to https://pkg.go.dev/github.com/go-openapi/testify/v2

This domain exposes 2 functionalities.

False

False asserts that the specified value is false.

Examples
	assertions.False(t, myBool)
	success: 1 == 0
	failure: 1 == 1

True

True asserts that the specified value is true.

Examples
	assertions.True(t, myBool)
	success: 1 == 1
	failure: 1 == 0


Generated with github.com/go-openapi/testify/v2/codegen