diff options
author | Erik Dubbelboer <erik@dubbelboer.com> | 2019-10-16 01:59:56 +0200 |
---|---|---|
committer | Erik Dubbelboer <erik@dubbelboer.com> | 2019-10-16 10:20:13 +0200 |
commit | c3d82ca3a430260ff1795abfeac9e8396ed6f6fe (patch) | |
tree | dde63ec5b5f22388ef65a12ca7dc6bc131bee2d8 /bytesconv_64_test.go | |
parent | Use Fatal instead of Fatalf when no formatting used (diff) | |
download | fasthttp-c3d82ca3a430260ff1795abfeac9e8396ed6f6fe.tar.gz fasthttp-c3d82ca3a430260ff1795abfeac9e8396ed6f6fe.tar.bz2 fasthttp-c3d82ca3a430260ff1795abfeac9e8396ed6f6fe.zip |
Speed up testing by running tests in parallel
Diffstat (limited to 'bytesconv_64_test.go')
-rw-r--r-- | bytesconv_64_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bytesconv_64_test.go b/bytesconv_64_test.go index b4165a6..1ba3237 100644 --- a/bytesconv_64_test.go +++ b/bytesconv_64_test.go @@ -7,6 +7,8 @@ import ( ) func TestWriteHexInt(t *testing.T) { + t.Parallel() + testWriteHexInt(t, 0, "0") testWriteHexInt(t, 1, "1") testWriteHexInt(t, 0x123, "123") @@ -14,6 +16,8 @@ func TestWriteHexInt(t *testing.T) { } func TestAppendUint(t *testing.T) { + t.Parallel() + testAppendUint(t, 0) testAppendUint(t, 123) testAppendUint(t, 0x7fffffffffffffff) @@ -24,6 +28,8 @@ func TestAppendUint(t *testing.T) { } func TestReadHexIntSuccess(t *testing.T) { + t.Parallel() + testReadHexIntSuccess(t, "0", 0) testReadHexIntSuccess(t, "fF", 0xff) testReadHexIntSuccess(t, "00abc", 0xabc) @@ -34,6 +40,8 @@ func TestReadHexIntSuccess(t *testing.T) { } func TestParseUintSuccess(t *testing.T) { + t.Parallel() + testParseUintSuccess(t, "0", 0) testParseUintSuccess(t, "123", 123) testParseUintSuccess(t, "1234567890", 1234567890) |