chore(test): enable parallel test execution

Seems to cut overall total test time down to one third the time.
This commit is contained in:
2021-12-16 20:16:03 +00:00
parent 164ccc497a
commit b59d421322
3 changed files with 34 additions and 0 deletions

View File

@@ -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))