shad-go/tools/testtool/commands/coverage_test.go
2020-03-19 01:40:57 +03:00

13 lines
254 B
Go

package commands
import (
"testing"
"github.com/stretchr/testify/require"
)
func Test_getCoverageRequirements(t *testing.T) {
r := getCoverageRequirements("../testdata/coverage/sum")
require.True(t, r.Enabled)
require.Equal(t, 90.0, r.Percent)
}