mirror of
https://github.com/jimeh/rands.git
synced 2026-02-19 11:26:38 +00:00
chore(test): enable parallel test execution
Seems to cut overall total test time down to one third the time.
This commit is contained in:
@@ -91,6 +91,8 @@ var testIntCases = []struct {
|
||||
}
|
||||
|
||||
func TestInt(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
for _, tt := range testIntCases {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
got, err := Int(tt.max)
|
||||
@@ -122,6 +124,8 @@ func BenchmarkInt(b *testing.B) {
|
||||
}
|
||||
|
||||
func TestInt64(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
for _, tt := range testIntCases {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
got, err := Int64(int64(tt.max))
|
||||
|
||||
Reference in New Issue
Block a user