Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for wantOut (0.17 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/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. 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)
  5. 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)
  6. src/net/writev_test.go

    		case "windows":
    			var wantCalls int
    			wantSum = want.Len()
    			if wantSum > 0 {
    				wantCalls = 1 // windows will always do 1 syscall, unless sending empty buffer
    			}
    			if len(writeLog.log) != wantCalls {
    				t.Errorf("write calls = %v; want %v", len(writeLog.log), wantCalls)
    			}
    		}
    		if gotSum != wantSum {
    			t.Errorf("writev call sum  = %v; want %v", gotSum, wantSum)
    		}
    		return nil
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 5K bytes
    - Viewed (0)
  7. src/net/http/cgi/integration_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 Nov 07 18:42:44 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  8. pkg/util/hash/hash_test.go

    // limitations under the License.
    
    package hash
    
    import (
    	"testing"
    )
    
    func TestFactory(t *testing.T) {
    	testCases := []struct {
    		name                   string
    		str                    string
    		wantSum                []byte
    		wantStr                string
    		wantUint64             uint64
    		wantLittleEndianUint64 uint64
    	}{
    		{
    			name: "foo",
    			str:  "foo",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Dec 21 20:24:14 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top