Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for wantOut (0.36 sec)

  1. cmd/kubeadm/app/phases/addons/dns/dns_test.go

    		printManifest bool
    	}
    	tests := []struct {
    		name    string
    		args    args
    		wantOut string
    		wantErr bool
    	}{
    		{
    			name: "cfg is empty",
    			args: args{
    				cfg:           &kubeadmapi.ClusterConfiguration{},
    				client:        newMockClientForTest(t, 2, 1, "", "", ""),
    				printManifest: false,
    			},
    			wantOut: "",
    			wantErr: true,
    		},
    		{
    			name: "cfg is valid and not print Manifest",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  2. pkg/apis/core/v1/conversion_test.go

    		out *core.Pod
    	}
    	tests := []struct {
    		name    string
    		args    args
    		wantErr bool
    		wantOut *core.Pod
    	}{
    		{
    			args: args{
    				in: &v1.Pod{
    					Spec: v1.PodSpec{
    						TerminationGracePeriodSeconds: utilpointer.Int64(-1),
    					},
    				},
    				out: &core.Pod{},
    			},
    			wantOut: &core.Pod{
    				Spec: core.PodSpec{
    					TerminationGracePeriodSeconds: utilpointer.Int64(1),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 10 05:34:15 UTC 2023
    - 21.7K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/ld_test.go

    			out, err := cmd.CombinedOutput()
    			if err != nil {
    				t.Fatal(err)
    			}
    			got := strings.TrimSpace(string(out))
    			if got != tt.wantOut {
    				t.Errorf("got %q; want %q", got, tt.wantOut)
    			}
    		})
    	}
    }
    
    func TestRISCVTrampolines(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    	t.Parallel()
    
    	tmpDir := t.TempDir()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 05:45:53 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  4. internal/s3select/sql/value_test.go

    		name    string
    		want    string
    		wantAlt string
    	}
    
    	tests := []test{
    		{
    			name:    valueBuilders[0]().String(),
    			want:    "",
    			wantAlt: "",
    		},
    		{
    			name:    valueBuilders[1]().String(),
    			want:    "true",
    			wantAlt: "false",
    		},
    		{
    			name:    valueBuilders[2]().String(),
    			want:    "byte contents",
    			wantAlt: "",
    		},
    		{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Mar 06 16:56:10 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  5. src/net/http/fcgi/fcgi_test.go

    		name   string
    		body   string
    		wantCT string
    	}{
    		{
    			name:   "no body",
    			wantCT: "text/plain; charset=utf-8",
    		},
    		{
    			name:   "html",
    			body:   "<html><head><title>test page</title></head><body>This is a body</body></html>",
    			wantCT: "text/html; charset=utf-8",
    		},
    		{
    			name:   "text",
    			body:   strings.Repeat("gopher", 86),
    			wantCT: "text/plain; charset=utf-8",
    		},
    		{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 11 18:51:39 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  6. src/archive/tar/writer_test.go

    		testHeader struct { // WriteHeader(hdr) == wantErr
    			hdr     Header
    			wantErr error
    		}
    		testWrite struct { // Write(str) == (wantCnt, wantErr)
    			str     string
    			wantCnt int
    			wantErr error
    		}
    		testReadFrom struct { // ReadFrom(testFile{ops}) == (wantCnt, wantErr)
    			ops     fileOps
    			wantCnt int64
    			wantErr error
    		}
    		testClose struct { // Close() == wantErr
    			wantErr error
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 38.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook_v1beta1_test.go

    		clientCert, clientKey, clientCA []byte
    		serverCert, serverKey, serverCA []byte
    		wantAuth, wantErr               bool
    	}{
    		{
    			test:       "TLS setup between client and server",
    			clientCert: clientCert, clientKey: clientKey, clientCA: caCert,
    			serverCert: serverCert, serverKey: serverKey, serverCA: caCert,
    			wantAuth: true,
    		},
    		{
    			test:       "Server does not require client auth",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 22:41:27 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/server/options/etcd_test.go

    	t.Helper()
    
    	wantSet := sets.NewString(want...)
    	gotSet := sets.NewString()
    
    	for _, h := range healthChecks {
    		gotSet.Insert(h.Name())
    	}
    
    	gotSet.Delete("log", "ping") // not relevant for our tests
    
    	if !wantSet.Equal(gotSet) {
    		t.Errorf("%s checks are not equal, missing=%q, extra=%q", checkerType, wantSet.Difference(gotSet).List(), gotSet.Difference(wantSet).List())
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  9. src/cmd/vet/vet_test.go

    //
    // Sources files are supplied as fullshort slice.
    // It consists of pairs: full path to source file and its base name.
    func errorCheck(outStr string, wantAuto bool, fullshort ...string) (err error) {
    	var errs []error
    	out := splitOutput(outStr, wantAuto)
    	// Cut directory name.
    	for i := range out {
    		for j := 0; j < len(fullshort); j += 2 {
    			full, short := fullshort[j], fullshort[j+1]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  10. src/database/sql/convert_test.go

    		}
    		if ct.wantraw != nil && string(ct.wantraw) != string(scanraw) {
    			errf("want RawBytes %q, got %q", ct.wantraw, scanraw)
    		}
    		if ct.wantint != 0 && ct.wantint != intValue(ct.d) {
    			errf("want int %d, got %d", ct.wantint, intValue(ct.d))
    		}
    		if ct.wantuint != 0 && ct.wantuint != uintValue(ct.d) {
    			errf("want uint %d, got %d", ct.wantuint, uintValue(ct.d))
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 20:23:22 UTC 2024
    - 17K bytes
    - Viewed (0)
Back to top