From e28eb7b914dd26e1a4e861df5e3226d0f2c256c5 Mon Sep 17 00:00:00 2001 From: Paul Borman Date: Mon, 12 Jul 2021 17:15:33 -0500 Subject: Remove TestConformance from null_test.go. It was useful to demonstrate the marshaling/unmarshaling was produced the output I expected. --- null_test.go | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/null_test.go b/null_test.go index b1988a4..c6e5e69 100644 --- a/null_test.go +++ b/null_test.go @@ -7,7 +7,6 @@ package uuid import ( "bytes" "encoding/json" - "fmt" "testing" ) @@ -213,26 +212,3 @@ func TestNullUUIDUnmarshalJSON(t *testing.T) { t.Errorf("expected nil when unmarshaling null, got %s", err) } } - -func TestConformance(t *testing.T) { - input := []byte(`"12345678-abcd-1234-abcd-0123456789ab"`) - var n NullUUID - var u UUID - - err := json.Unmarshal(input, &n) - fmt.Printf("Unmarshal NullUUID: %+v %v\n", n, err) - err = json.Unmarshal(input, &u) - fmt.Printf("Unmarshal UUID: %+v %v\n", u, err) - - n = NullUUID{} - data, err := json.Marshal(&n) - fmt.Printf("Marshal Empty NullUUID %s %v\n", data, err) - - n.Valid = true - n.UUID = u - data, err = json.Marshal(&n) - fmt.Printf("Marshal Filled NullUUID %s %v\n", data, err) - - data, err = json.Marshal(&u) - fmt.Printf("Marshal UUID: %s %v\n", data, err) -} -- cgit v1.2.3