Skip to content

Commit

Permalink
Add testdata
Browse files Browse the repository at this point in the history
  • Loading branch information
nakabonne committed May 6, 2020
1 parent a2034eb commit cfc2d86
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions testdata/a.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package testdata

import (
"errors"
"fmt"
)

func _() {
var b1, b2, b3, b4 bool
if b1 { // complexity: 9
if b2 { // +1
if b3 { // +2
}
}

if b2 { // +1
if b3 { // +2
if b4 { // +3
}
}
}
}
}

func _() error {
msg := "msg"
return errors.New(fmt.Sprintf("error: %s", msg))
}

0 comments on commit cfc2d86

Please sign in to comment.