Remove print line from tests

Signed-off-by: Cosmin Cojocar <cosmin.cojocar@gmx.ch>
This commit is contained in:
Cosmin Cojocar 2020-05-25 15:46:59 +02:00 committed by Cosmin Cojocar
parent 30e93bf865
commit 7aedcc56ab

View file

@ -1,7 +1,6 @@
package gosec_test package gosec_test
import ( import (
"fmt"
"go/ast" "go/ast"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
@ -117,8 +116,6 @@ func main() {
ast.Walk(v, ctx.Root) ast.Walk(v, ctx.Root)
Expect(target).ShouldNot(BeNil()) Expect(target).ShouldNot(BeNil())
fmt.Printf("target: %v\n", target)
cfg := gosec.NewConfig() cfg := gosec.NewConfig()
rule, _ := rules.NewBindsToAllNetworkInterfaces("TEST", cfg) rule, _ := rules.NewBindsToAllNetworkInterfaces("TEST", cfg)
issue, err := rule.Match(target, ctx) issue, err := rule.Match(target, ctx)