Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for wantOut (0.12 sec)

  1. src/cmd/go/internal/work/shell_test.go

    			t.Skipf("skipping %#q: contains no arguments", b)
    		}
    
    		var buf strings.Builder
    		for _, arg := range args {
    			buf.WriteString(arg)
    			buf.WriteString("\n")
    		}
    		wantOut := buf.String()
    
    		if strings.Count(wantOut, "\n") != len(args)+bytes.Count(b, []byte("\n")) {
    			// One of the newlines in b was treated as a delimiter and not part of an
    			// argument. Our bash test script would interpret that as a syntax error.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 15 15:30:05 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. pilot/pkg/status/distribution/state_test.go

    	_ = json.Unmarshal(b, &x)
    	type args struct {
    		in any
    	}
    	tests := []struct {
    		name    string
    		args    args
    		wantOut *v1alpha1.IstioStatus
    		wantErr bool
    	}{
    		{
    			name:    "Nondestructive cast",
    			args:    args{in: statusStillPropagating},
    			wantOut: statusStillPropagating,
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 22 22:47:47 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. operator/pkg/tpath/struct_test.go

    				return
    			}
    			gotYAML := util.ToYAML(GotOut)
    			diff := util.YAMLDiff(gotYAML, tt.wantYAML)
    			if diff != "" {
    				t.Errorf("GetFromStructPath(%s): YAML of gotOut:\n%s\n, YAML of wantOut:\n%s\n, diff:\n%s\n", tt.desc, gotYAML, tt.wantYAML, diff)
    			}
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. src/net/http/cgi/child_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: Mon Sep 14 15:42:03 UTC 2020
    - 5.2K bytes
    - Viewed (0)
Back to top