Files
goreportcard/check/check_test.go
80111+shawnps@users.noreply.github.com 4037e2b591 pass bool in to Run in test
2024-03-31 12:32:21 +09:00

17 lines
236 B
Go

package check
import (
"testing"
)
func TestRun(t *testing.T) {
cr, err := Run("testdata/testrepo@v0.1.0", false)
if err != nil {
t.Fatal(err)
}
if cr.Issues != 2 {
t.Errorf("got cr.Issues = %d, want %d", cr.Issues, 2)
}
}