Skip to content

Commit 1012c10

Browse files
build(deps): bump github.com/nakabonne/nestif from 0.3.0 to 0.3.1 (#2325)
Co-authored-by: Fernandez Ludovic <[email protected]>
1 parent 5adafe5 commit 1012c10

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ require (
5757
github.com/mitchellh/go-homedir v1.1.0
5858
github.com/mitchellh/go-ps v1.0.0
5959
github.com/moricho/tparallel v0.2.1
60-
github.com/nakabonne/nestif v0.3.0
60+
github.com/nakabonne/nestif v0.3.1
6161
github.com/nishanths/exhaustive v0.2.3
6262
github.com/nishanths/predeclared v0.2.1
6363
github.com/pkg/errors v0.9.1

go.sum

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/testdata/nestif.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ package testdata
55
func _() {
66
var b1, b2, b3, b4 bool
77

8-
if b1 { // ERROR "`if b1` is deeply nested \\(complexity: 1\\)"
8+
if b1 { // ERROR "`if b1` has complex nested blocks \\(complexity: 1\\)"
99
if b2 { // +1
1010
}
1111
}
1212

13-
if b1 { // ERROR "`if b1` is deeply nested \\(complexity: 3\\)"
13+
if b1 { // ERROR "`if b1` has complex nested blocks \\(complexity: 3\\)"
1414
if b2 { // +1
1515
if b3 { // +2
1616
}
1717
}
1818
}
1919

20-
if b1 { // ERROR "`if b1` is deeply nested \\(complexity: 5\\)"
20+
if b1 { // ERROR "`if b1` has complex nested blocks \\(complexity: 5\\)"
2121
if b2 { // +1
2222
} else if b3 { // +1
2323
if b4 { // +2
@@ -26,7 +26,7 @@ func _() {
2626
}
2727
}
2828

29-
if b1 { // ERROR "`if b1` is deeply nested \\(complexity: 9\\)"
29+
if b1 { // ERROR "`if b1` has complex nested blocks \\(complexity: 9\\)"
3030
if b2 { // +1
3131
if b3 { // +2
3232
}
@@ -40,7 +40,7 @@ func _() {
4040
}
4141
}
4242

43-
if b1 == b2 == b3 { // ERROR "`if b1 == b2 == b3` is deeply nested \\(complexity: 1\\)"
43+
if b1 == b2 == b3 { // ERROR "`if b1 == b2 == b3` has complex nested blocks \\(complexity: 1\\)"
4444
if b4 { // +1
4545
}
4646
}

0 commit comments

Comments
 (0)