diff options
author | Paul Borman <paul@borman.com> | 2021-07-12 17:15:33 -0500 |
---|---|---|
committer | Paul Borman <paul@borman.com> | 2021-07-12 17:15:33 -0500 |
commit | e28eb7b914dd26e1a4e861df5e3226d0f2c256c5 (patch) | |
tree | 4c6772dac86a5dcaac82d7cb49b9875950ac3cbc | |
parent | ae25fc6a8e2fa9c3a72fc325117330736fe729f6 (diff) | |
download | google-uuid-e28eb7b914dd26e1a4e861df5e3226d0f2c256c5.tar.gz |
Remove TestConformance from null_test.go. It was useful to demonstrate
the marshaling/unmarshaling was produced the output I expected.
-rw-r--r-- | null_test.go | 24 |
1 files changed, 0 insertions, 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) -} |