Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for wantOut (0.52 sec)

  1. cmd/kubeadm/app/phases/addons/proxy/proxy_test.go

    		name          string
    		printManifest bool
    		wantOut       string
    		wantErr       bool
    	}{
    		{
    			name:          "do not print manifest",
    			printManifest: false,
    			wantOut:       "[addons] Applied essential addon: kube-proxy\n",
    			wantErr:       false,
    		},
    		{
    			name:          "print manifest",
    			printManifest: true,
    			wantOut: dedent.Dedent(`---
    apiVersion: v1
    kind: ServiceAccount
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 18 11:14:32 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  2. 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)
  3. src/go/types/api_test.go

    		if sel.Indirect() {
    			direct = "->"
    		}
    		got := [2]string{
    			sel.String(),
    			fmt.Sprintf("%s%v", direct, sel.Index()),
    		}
    		want := wantOut[syntax]
    		if want != got {
    			t.Errorf("%s: got %q; want %q", syntax, got, want)
    		}
    		delete(wantOut, syntax)
    
    		// We must explicitly assert properties of the
    		// Signature's receiver since it doesn't participate
    		// in Identical() or String().
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/api_test.go

    		if sel.Indirect() {
    			direct = "->"
    		}
    		got := [2]string{
    			sel.String(),
    			fmt.Sprintf("%s%v", direct, sel.Index()),
    		}
    		want := wantOut[segment]
    		if want != got {
    			t.Errorf("%s: got %q; want %q", segment, got, want)
    		}
    		delete(wantOut, segment)
    
    		// We must explicitly assert properties of the
    		// Signature's receiver since it doesn't participate
    		// in Identical() or String().
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  5. 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)
  6. cni/pkg/log/uds_test.go

    }
    
    func TestParseCniLog(t *testing.T) {
    	wantT := &time.Time{}
    	assert.NoError(t, wantT.UnmarshalText([]byte("2020-01-01T00:00:00.356374Z")))
    	cases := []struct {
    		name string
    		in   string
    		out  cniLog
    	}{
    		{
    			"without keys",
    			`{"level":"info","time":"2020-01-01T00:00:00.356374Z","msg":"my message"}`,
    			cniLog{
    				Level:     "info",
    				Time:      *wantT,
    				Msg:       "my message",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 16:26:28 UTC 2024
    - 4.1K 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. src/net/http/routing_tree_test.go

    			gotNode, gotMatches := tree.match(test.host, test.method, test.path)
    			got := ""
    			if gotNode != nil {
    				got = gotNode.pattern.String()
    			}
    			if got != test.wantPat {
    				t.Errorf("%s, %s, %s: got %q, want %q", test.host, test.method, test.path, got, test.wantPat)
    			}
    			if !slices.Equal(gotMatches, test.wantMatches) {
    				t.Errorf("%s, %s, %s: got matches %v, want %v", test.host, test.method, test.path, gotMatches, test.wantMatches)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:43:24 UTC 2024
    - 7K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top