Skip to content

Commit ff2a322

Browse files
extract: add comments for clarity
1 parent 17de7ec commit ff2a322

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

statecheck/extract_bool_value_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import (
1919
func TestExtractBoolValue_CheckState_Basic(t *testing.T) {
2020
t.Parallel()
2121

22+
// targetVar will be set to the extracted value.
2223
var targetVar bool
2324

2425
r.Test(t, r.TestCase{
@@ -49,6 +50,7 @@ func TestExtractBoolValue_CheckState_Basic(t *testing.T) {
4950
func TestExtractBoolValue_CheckState_KnownValueWrongType(t *testing.T) {
5051
t.Parallel()
5152

53+
// targetVar will be set to the extracted value.
5254
var targetVar bool
5355

5456
r.Test(t, r.TestCase{
@@ -79,6 +81,7 @@ func TestExtractBoolValue_CheckState_KnownValueWrongType(t *testing.T) {
7981
func TestExtractBoolValue_CheckState_Null(t *testing.T) {
8082
t.Parallel()
8183

84+
// targetVar will be set to the extracted value.
8285
var targetVar bool
8386

8487
r.Test(t, r.TestCase{

0 commit comments

Comments
 (0)