mirror of
https://github.com/gojp/goreportcard.git
synced 2026-01-28 22:39:05 +08:00
17 lines
229 B
Go
17 lines
229 B
Go
package check
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestRun(t *testing.T) {
|
|
cr, err := Run("testdata/testrepo@v0.1.0")
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
|
|
if cr.Issues != 2 {
|
|
t.Errorf("got cr.Issues = %d, want %d", cr.Issues, 2)
|
|
}
|
|
}
|