aboutsummaryrefslogtreecommitdiff
path: root/bytesconv_32_test.go
diff options
context:
space:
mode:
authorGravatar Erik Dubbelboer <erik@dubbelboer.com> 2019-10-16 01:59:56 +0200
committerGravatar Erik Dubbelboer <erik@dubbelboer.com> 2019-10-16 10:20:13 +0200
commitc3d82ca3a430260ff1795abfeac9e8396ed6f6fe (patch)
treedde63ec5b5f22388ef65a12ca7dc6bc131bee2d8 /bytesconv_32_test.go
parentUse Fatal instead of Fatalf when no formatting used (diff)
downloadfasthttp-c3d82ca3a430260ff1795abfeac9e8396ed6f6fe.tar.gz
fasthttp-c3d82ca3a430260ff1795abfeac9e8396ed6f6fe.tar.bz2
fasthttp-c3d82ca3a430260ff1795abfeac9e8396ed6f6fe.zip
Speed up testing by running tests in parallel
Diffstat (limited to 'bytesconv_32_test.go')
-rw-r--r--bytesconv_32_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/bytesconv_32_test.go b/bytesconv_32_test.go
index eb8f660..405230b 100644
--- a/bytesconv_32_test.go
+++ b/bytesconv_32_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, 0x7fffffff)
@@ -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)
@@ -33,6 +39,8 @@ func TestReadHexIntSuccess(t *testing.T) {
}
func TestParseUintSuccess(t *testing.T) {
+ t.Parallel()
+
testParseUintSuccess(t, "0", 0)
testParseUintSuccess(t, "123", 123)
testParseUintSuccess(t, "123456789", 123456789)