Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump github.com/nakabonne/nestif from 0.3.0 to 0.3.1 #2325

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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