Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestGob (4.01 sec)

  1. 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)
  2. 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)
Back to top