add test case for strings.Builder G104 whitelist inclusion

This commit is contained in:
Edoardo Tenani 2018-10-18 01:13:56 +02:00 committed by Cosmin Cojocar
parent 41809946d4
commit 9b966a447e

View file

@ -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