11---
22title : " Boolean"
33description : " Asserting Boolean Values"
4- modified : 2026-01-11
4+ modified : 2026-01-18
55weight : 1
66domains :
77 - " boolean"
88keywords :
99 - " False"
1010 - " Falsef"
11+ - " FalseT"
12+ - " FalseTf"
1113 - " True"
1214 - " Truef"
15+ - " TrueT"
16+ - " TrueTf"
1317---
1418
1519Asserting Boolean Values
@@ -21,9 +25,17 @@ Asserting Boolean Values
2125
2226_ All links point to < https://pkg.go.dev/github.com/go-openapi/testify/v2 > _
2327
24- This domain exposes 2 functionalities.
28+ This domain exposes 4 functionalities.
29+ Generic assertions are marked with a {{% icon icon="star" color=orange %}}
2530
26- ### False
31+ ``` tree
32+ - [False](#false) | angles-right
33+ - [FalseT[B Boolean]](#falsetb-boolean) | star | orange
34+ - [True](#true) | angles-right
35+ - [TrueT[B Boolean]](#truetb-boolean) | star | orange
36+ ```
37+
38+ ### False{#false}
2739
2840False asserts that the specified value is false.
2941
@@ -66,11 +78,56 @@ False asserts that the specified value is false.
6678| --| --|
6779| [ ` assertions.False(t T, value bool, msgAndArgs ...any) bool ` ] ( https://pkg.go.dev/github.com/go-openapi/testify/v2/internal/assertions#False ) | internal implementation |
6880
69- ** Source:** [ github.com/go-openapi/testify/v2/internal/assertions#False] ( https://github.com/go-openapi/testify/blob/master/internal/assertions/boolean.go#L38 )
81+ ** Source:** [ github.com/go-openapi/testify/v2/internal/assertions#False] ( https://github.com/go-openapi/testify/blob/master/internal/assertions/boolean.go#L63 )
82+ {{% /tab %}}
83+ {{< /tabs >}}
84+
85+ ### FalseT[ B Boolean] {{% icon icon="star" color=orange %}}{#falsetb-boolean}
86+
87+ FalseT asserts that the specified value is false.
88+
89+ {{% expand title="Examples" %}}
90+ {{< tabs >}}
91+ {{% tab title="Usage" %}}
92+ ``` go
93+ type B bool
94+ var b B = true
95+ assertions.FalseT (t, b)
96+ ```
97+ {{< /tab >}}
98+ {{% tab title="Examples" %}}
99+ ``` go
100+ success: 1 == 0
101+ failure: 1 == 1
102+ ```
103+ {{< /tab >}}
104+ {{< /tabs >}}
105+ {{% /expand %}}
106+
107+ {{< tabs >}}
108+ {{% tab title="assert" style="secondary" %}}
109+ | Signature | Usage |
110+ | --| --|
111+ | [ ` assert.FalseT[B Boolean](t T, value B, msgAndArgs ...any) bool ` ] ( https://pkg.go.dev/github.com/go-openapi/testify/v2/assert#FalseT ) | package-level function |
112+ | [ ` assert.FalseTf[B Boolean](t T, value B, msg string, args ...any) bool ` ] ( https://pkg.go.dev/github.com/go-openapi/testify/v2/assert#FalseTf ) | formatted variant |
113+ {{% /tab %}}
114+ {{% tab title="require" style="secondary" %}}
115+ | Signature | Usage |
116+ | --| --|
117+ | [ ` require.FalseT[B Boolean](t T, value B, msgAndArgs ...any) bool ` ] ( https://pkg.go.dev/github.com/go-openapi/testify/v2/require#FalseT ) | package-level function |
118+ | [ ` require.FalseTf[B Boolean](t T, value B, msg string, args ...any) bool ` ] ( https://pkg.go.dev/github.com/go-openapi/testify/v2/require#FalseTf ) | formatted variant |
119+ {{% /tab %}}
120+
121+ {{% tab title="internal" style="accent" icon="wrench" %}}
122+ | Signature | Usage |
123+ | --| --|
124+ | [ ` assertions.FalseT(t T, value B, msgAndArgs ...any) bool ` ] ( https://pkg.go.dev/github.com/go-openapi/testify/v2/internal/assertions#FalseT ) | internal implementation |
125+
126+ ** Source:** [ github.com/go-openapi/testify/v2/internal/assertions#FalseT] ( https://github.com/go-openapi/testify/blob/master/internal/assertions/boolean.go#L88 )
70127{{% /tab %}}
71128{{< /tabs >}}
72129
73- ### True
130+ ### True{#true}
74131
75132True asserts that the specified value is true.
76133
@@ -117,6 +174,51 @@ True asserts that the specified value is true.
117174{{% /tab %}}
118175{{< /tabs >}}
119176
177+ ### TrueT[ B Boolean] {{% icon icon="star" color=orange %}}{#truetb-boolean}
178+
179+ TrueT asserts that the specified value is true.
180+
181+ {{% expand title="Examples" %}}
182+ {{< tabs >}}
183+ {{% tab title="Usage" %}}
184+ ``` go
185+ type B bool
186+ var b B = true
187+ assertions.True (t, b)
188+ ```
189+ {{< /tab >}}
190+ {{% tab title="Examples" %}}
191+ ``` go
192+ success: 1 == 1
193+ failure: 1 == 0
194+ ```
195+ {{< /tab >}}
196+ {{< /tabs >}}
197+ {{% /expand %}}
198+
199+ {{< tabs >}}
200+ {{% tab title="assert" style="secondary" %}}
201+ | Signature | Usage |
202+ | --| --|
203+ | [ ` assert.TrueT[B Boolean](t T, value B, msgAndArgs ...any) bool ` ] ( https://pkg.go.dev/github.com/go-openapi/testify/v2/assert#TrueT ) | package-level function |
204+ | [ ` assert.TrueTf[B Boolean](t T, value B, msg string, args ...any) bool ` ] ( https://pkg.go.dev/github.com/go-openapi/testify/v2/assert#TrueTf ) | formatted variant |
205+ {{% /tab %}}
206+ {{% tab title="require" style="secondary" %}}
207+ | Signature | Usage |
208+ | --| --|
209+ | [ ` require.TrueT[B Boolean](t T, value B, msgAndArgs ...any) bool ` ] ( https://pkg.go.dev/github.com/go-openapi/testify/v2/require#TrueT ) | package-level function |
210+ | [ ` require.TrueTf[B Boolean](t T, value B, msg string, args ...any) bool ` ] ( https://pkg.go.dev/github.com/go-openapi/testify/v2/require#TrueTf ) | formatted variant |
211+ {{% /tab %}}
212+
213+ {{% tab title="internal" style="accent" icon="wrench" %}}
214+ | Signature | Usage |
215+ | --| --|
216+ | [ ` assertions.TrueT(t T, value B, msgAndArgs ...any) bool ` ] ( https://pkg.go.dev/github.com/go-openapi/testify/v2/internal/assertions#TrueT ) | internal implementation |
217+
218+ ** Source:** [ github.com/go-openapi/testify/v2/internal/assertions#TrueT] ( https://github.com/go-openapi/testify/blob/master/internal/assertions/boolean.go#L41 )
219+ {{% /tab %}}
220+ {{< /tabs >}}
221+
120222---
121223
122224---
@@ -133,5 +235,5 @@ SPDX-License-Identifier: Apache-2.0
133235
134236Document generated by github.com/go-openapi/testify/codegen/v2 DO NOT EDIT.
135237
136- Generated on 2026-01-11 (version ca82e58 ) using codegen version v2.1.9-0.20260111184010-ca82e58db12c +dirty [sha: ca82e58db12cbb61bfcae58c3684b3add9599d10 ]
238+ Generated on 2026-01-18 (version e12affe ) using codegen version v2.1.9-0.20260118112101-e12affef2419 +dirty [sha: e12affef24198e72ee13eb6d25018d2c3232629f ]
137239-->
0 commit comments