Skip to content

Commit

Permalink
add test case for strings.Builder G104 whitelist inclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
endorama authored and Cosmin Cojocar committed Nov 11, 2018
1 parent 4180994 commit 9b966a4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions testutils/source.go
Expand Up @@ -164,6 +164,12 @@ func test() error {
func main() {
e := test()
fmt.Println(e)
}`}, 0}, {[]string{`
package main
import "strings"
func main() {
var buf strings.Builder
buf.WriteString("test string")
}`}, 0}}

// SampleCodeG105 - bignum overflow
Expand Down

0 comments on commit 9b966a4

Please sign in to comment.