1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-04 12:52:28 +08:00

test: add parallel running for all unit test functions

This commit is contained in:
dudaodong
2023-06-30 10:18:45 +08:00
parent ab364744b6
commit 8229de2f10
15 changed files with 480 additions and 16 deletions

View File

@@ -7,6 +7,8 @@ import (
)
func TestOf(t *testing.T) {
t.Parallel()
assert := internal.NewAssert(t, "TestOf")
result1 := Of(123)
@@ -17,6 +19,8 @@ func TestOf(t *testing.T) {
}
func TestUnwrap(t *testing.T) {
t.Parallel()
assert := internal.NewAssert(t, "TestUnwrap")
a := 123
@@ -27,6 +31,8 @@ func TestUnwrap(t *testing.T) {
}
func TestExtractPointer(t *testing.T) {
t.Parallel()
assert := internal.NewAssert(t, "TestExtractPointer")
a := 1