- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for TestGob (0.73 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) -
src/crypto/x509/x509_test.go
} if !slices.EqualFunc(cert.Policies, expectPolicies, OID.Equal) { t.Errorf("cert.Policies = %v, want: %v", cert.Policies, expectPolicies) } } func TestGob(t *testing.T) { // Test that gob does not reject Certificate. // See go.dev/issue/65633. cert := new(Certificate) err := gob.NewEncoder(io.Discard).Encode(cert) if err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:00:16 UTC 2024 - 163.4K bytes - Viewed (0) -
pkg/controller/job/job_controller_test.go
testJob.Namespace = "bar" testJob.Name = "foo" fakeWatch.Add(&testJob) t.Log("Waiting for job to reach syncHandler") <-received } func TestWatchPods(t *testing.T) { _, ctx := ktesting.NewTestContext(t) testJob := newJob(2, 2, 6, batch.NonIndexedCompletion) clientset := fake.NewSimpleClientset(testJob) fakeWatch := watch.NewFake()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 15:36:36 UTC 2024 - 229.2K bytes - Viewed (0)