Skip to content

Commit

Permalink
chore: 更新 assert 至 v4
Browse files Browse the repository at this point in the history
  • Loading branch information
caixw committed Feb 28, 2024
1 parent ec54b90 commit 12ae83a
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 6 deletions.
2 changes: 2 additions & 0 deletions conv.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-FileCopyrightText: 2014-2024 caixw
//
// SPDX-License-Identifier: MIT

package conv
Expand Down
4 changes: 3 additions & 1 deletion conv_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
// SPDX-FileCopyrightText: 2014-2024 caixw
//
// SPDX-License-Identifier: MIT

package conv

import (
"testing"

"github.com/issue9/assert/v3"
"github.com/issue9/assert/v4"
)

func TestMustBool(t *testing.T) {
Expand Down
2 changes: 2 additions & 0 deletions doc.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-FileCopyrightText: 2014-2024 caixw
//
// SPDX-License-Identifier: MIT

// Package conv 提供了基础的类型转换功能
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/issue9/conv

require github.com/issue9/assert/v3 v3.1.0
require github.com/issue9/assert/v4 v4.1.1

go 1.18
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github.com/issue9/assert/v3 v3.1.0 h1:oxLFXS7QnBKI4lB31pRoYO96yErkWAJtR7iv+LNjAPg=
github.com/issue9/assert/v3 v3.1.0/go.mod h1:yft/uaskRpwQTyBT3n1zRl91SR1wNlO4fLZHzOa4bdM=
github.com/issue9/assert/v4 v4.1.1 h1:OhPE8SB8n/qZCNGLQa+6MQtr/B3oON0JAVj68k8jJlc=
github.com/issue9/assert/v4 v4.1.1/go.mod h1:v7qDRXi7AsaZZNh8eAK2rkLJg5/clztqQGA1DRv9Lv4=
2 changes: 2 additions & 0 deletions obj.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-FileCopyrightText: 2014-2024 caixw
//
// SPDX-License-Identifier: MIT

package conv
Expand Down
4 changes: 3 additions & 1 deletion obj_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-FileCopyrightText: 2014-2024 caixw
//
// SPDX-License-Identifier: MIT

package conv
Expand All @@ -6,7 +8,7 @@ import (
"strings"
"testing"

"github.com/issue9/assert/v3"
"github.com/issue9/assert/v4"
)

type A1 struct {
Expand Down
2 changes: 2 additions & 0 deletions types.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-FileCopyrightText: 2014-2024 caixw
//
// SPDX-License-Identifier: MIT

package conv
Expand Down
2 changes: 2 additions & 0 deletions value.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-FileCopyrightText: 2014-2024 caixw
//
// SPDX-License-Identifier: MIT

package conv
Expand Down
4 changes: 3 additions & 1 deletion value_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-FileCopyrightText: 2014-2024 caixw
//
// SPDX-License-Identifier: MIT

package conv
Expand All @@ -6,7 +8,7 @@ import (
"reflect"
"testing"

"github.com/issue9/assert/v3"
"github.com/issue9/assert/v4"
)

func TestValue(t *testing.T) {
Expand Down

0 comments on commit 12ae83a

Please sign in to comment.