mirror of
https://github.com/gonum/gonum.git
synced 2025-10-10 17:40:30 +08:00
ci: replace golangci-lint with staticcheck
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user