- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestGob (0.15 sec)
-
src/net/url/url_test.go
u1 := new(URL) err = json.Unmarshal(js, u1) if err != nil { t.Fatal(err) } if u1.String() != u.String() { t.Errorf("json decoded to: %s\nwant: %s\n", u1, u) } } func TestGob(t *testing.T) { u, err := Parse("https://www.google.com/x?y=z") if err != nil { t.Fatal(err) } var w bytes.Buffer err = gob.NewEncoder(&w).Encode(u) if err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:52:38 UTC 2024 - 52.1K bytes - Viewed (0)