Skip to content

Commit

Permalink
use MustParse(...) inseted of Must(Parse(...))
Browse files Browse the repository at this point in the history
  • Loading branch information
kotaroyamazaki committed Feb 22, 2024
1 parent 311c758 commit 489959a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion json_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"
)

var testUUID = Must(Parse("f47ac10b-58cc-0372-8567-0e02b2c3d479"))
var testUUID = MustParse("f47ac10b-58cc-0372-8567-0e02b2c3d479")

func TestJSON(t *testing.T) {
type S struct {
Expand Down
4 changes: 2 additions & 2 deletions sql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func TestScan(t *testing.T) {
invalidTest := "f47ac10b-58cc-0372-8567-0e02b2c3d4"

byteTest := make([]byte, 16)
byteTestUUID := Must(Parse(stringTest))
byteTestUUID := MustParse(stringTest)
copy(byteTest, byteTestUUID[:])

// sunny day tests
Expand Down Expand Up @@ -105,7 +105,7 @@ func TestScan(t *testing.T) {

func TestValue(t *testing.T) {
stringTest := "f47ac10b-58cc-0372-8567-0e02b2c3d479"
uuid := Must(Parse(stringTest))
uuid := MustParse(stringTest)
val, _ := uuid.Value()
if val != stringTest {
t.Error("Value() did not return expected string")
Expand Down

0 comments on commit 489959a

Please sign in to comment.