Skip to content

Commit

Permalink
build(deps): bump github.com/nakabonne/nestif from 0.3.0 to 0.3.1 (#2325
Browse files Browse the repository at this point in the history
)

Co-authored-by: Fernandez Ludovic <lfernandez.dev@gmail.com>
  • Loading branch information
dependabot[bot] and ldez committed Nov 2, 2021
1 parent 5adafe5 commit 1012c10
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ require (
github.com/mitchellh/go-homedir v1.1.0
github.com/mitchellh/go-ps v1.0.0
github.com/moricho/tparallel v0.2.1
github.com/nakabonne/nestif v0.3.0
github.com/nakabonne/nestif v0.3.1
github.com/nishanths/exhaustive v0.2.3
github.com/nishanths/predeclared v0.2.1
github.com/pkg/errors v0.9.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions test/testdata/nestif.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ package testdata
func _() {
var b1, b2, b3, b4 bool

if b1 { // ERROR "`if b1` is deeply nested \\(complexity: 1\\)"
if b1 { // ERROR "`if b1` has complex nested blocks \\(complexity: 1\\)"
if b2 { // +1
}
}

if b1 { // ERROR "`if b1` is deeply nested \\(complexity: 3\\)"
if b1 { // ERROR "`if b1` has complex nested blocks \\(complexity: 3\\)"
if b2 { // +1
if b3 { // +2
}
}
}

if b1 { // ERROR "`if b1` is deeply nested \\(complexity: 5\\)"
if b1 { // ERROR "`if b1` has complex nested blocks \\(complexity: 5\\)"
if b2 { // +1
} else if b3 { // +1
if b4 { // +2
Expand All @@ -26,7 +26,7 @@ func _() {
}
}

if b1 { // ERROR "`if b1` is deeply nested \\(complexity: 9\\)"
if b1 { // ERROR "`if b1` has complex nested blocks \\(complexity: 9\\)"
if b2 { // +1
if b3 { // +2
}
Expand All @@ -40,7 +40,7 @@ func _() {
}
}

if b1 == b2 == b3 { // ERROR "`if b1 == b2 == b3` is deeply nested \\(complexity: 1\\)"
if b1 == b2 == b3 { // ERROR "`if b1 == b2 == b3` has complex nested blocks \\(complexity: 1\\)"
if b4 { // +1
}
}
Expand Down

0 comments on commit 1012c10

Please sign in to comment.