ci: replace golangci-lint with staticcheck

This commit is contained in:
Dan Kortschak
2022-05-10 22:36:00 +09:30
parent 84fd2bc2bb
commit a2c6f817bf
31 changed files with 68 additions and 62 deletions

View File

@@ -6,6 +6,7 @@ package testlapack
import (
"fmt"
"math"
"testing"
"golang.org/x/exp/rand"
@@ -14,6 +15,7 @@ import (
)
func DlangbBenchmark(b *testing.B, impl Dlangber) {
var result float64
rnd := rand.New(rand.NewSource(1))
for _, bm := range []struct {
n, k int
@@ -83,4 +85,7 @@ func DlangbBenchmark(b *testing.B, impl Dlangber) {
})
}
}
if math.IsNaN(result) {
b.Error("unexpected NaN result")
}
}