mirror of
https://github.com/gojp/goreportcard.git
synced 2026-01-28 22:39:05 +08:00
15 lines
227 B
Go
15 lines
227 B
Go
package check
|
|
|
|
import "testing"
|
|
|
|
func TestPercentage(t *testing.T) {
|
|
g := License{"testfiles", []string{}}
|
|
p, _, err := g.Percentage()
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
if p != 1.0 {
|
|
t.Errorf("License check failed")
|
|
}
|
|
}
|