mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-23 13:52:26 +08:00
test: add parallel running for all unit test functions
This commit is contained in:
@@ -8,6 +8,8 @@ import (
|
||||
)
|
||||
|
||||
func TestComma(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
assert := internal.NewAssert(t, "TestComma")
|
||||
|
||||
assert.Equal("", Comma("", ""))
|
||||
@@ -29,6 +31,8 @@ func TestComma(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestPretty(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
assert := internal.NewAssert(t, "TestPretty")
|
||||
|
||||
cases := []any{
|
||||
@@ -60,6 +64,8 @@ func TestPretty(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestPrettyToWriter(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
assert := internal.NewAssert(t, "TestPrettyToWriter")
|
||||
|
||||
type User struct {
|
||||
|
||||
Reference in New Issue
Block a user