Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for wantSum (0.14 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/strings/replace_test.go

    			args[i*2] = key
    		}
    
    		got := NewReplacer(args...).PrintTrie()
    		// Remove tabs from tc.out
    		wantbuf := make([]byte, 0, len(tc.out))
    		for i := 0; i < len(tc.out); i++ {
    			if tc.out[i] != '\t' {
    				wantbuf = append(wantbuf, tc.out[i])
    			}
    		}
    		want := string(wantbuf)
    
    		if got != want {
    			t.Errorf("PrintTrie(%q)\ngot\n%swant\n%s", tc.in, got, want)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 22:53:05 UTC 2017
    - 14.1K bytes
    - Viewed (0)
  4. 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)
  5. pkg/controller/job/indexed_job_utils_test.go

    	cases := map[string]struct {
    		pods        []indexPhase
    		wantRm      []indexPhase
    		wantLeft    []indexPhase
    		completions int32
    	}{
    		"all unique": {
    			pods: []indexPhase{
    				{noIndex, v1.PodPending},
    				{"2", v1.PodPending},
    				{"5", v1.PodRunning},
    				{"6", v1.PodRunning},
    			},
    			wantRm: []indexPhase{
    				{noIndex, v1.PodPending},
    				{"6", v1.PodRunning},
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  6. 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)
  7. src/net/url/url_test.go

    	}
    }
    
    func TestInvalidUserPassword(t *testing.T) {
    	_, err := Parse("http://user^:passwo^******@****.***/")
    	if got, wantsub := fmt.Sprint(err), "net/url: invalid userinfo"; !strings.Contains(got, wantsub) {
    		t.Errorf("error = %q; want substring %q", got, wantsub)
    	}
    }
    
    func TestRejectControlCharacters(t *testing.T) {
    	tests := []string{
    		"http://foo.com/?foo\nbar",
    		"http\r://foo.com/",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:52:38 UTC 2024
    - 52.1K bytes
    - Viewed (0)
  8. src/os/os_test.go

    	io.WriteString(f, data)
    
    	f.Seek(0, 0)
    	b := make([]byte, 5)
    
    	n, err := f.ReadAt(b, -10)
    
    	const wantsub = "negative offset"
    	if !strings.Contains(fmt.Sprint(err), wantsub) || n != 0 {
    		t.Errorf("ReadAt(-10) = %v, %v; want 0, ...%q...", n, err, wantsub)
    	}
    }
    
    func TestWriteAt(t *testing.T) {
    	t.Parallel()
    
    	f := newFile("TestWriteAt", t)
    	defer Remove(f.Name())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  9. cmd/metacache-entries_test.go

    					gotSelected.cached = nil
    					gotSelected.reusable = false
    				}
    				if !reflect.DeepEqual(gotSelected, tt.wantSelected) {
    					wantM, _ := tt.wantSelected.xlmeta()
    					gotM, _ := gotSelected.xlmeta()
    					t.Errorf("resolve() gotSelected = \n%#v, want \n%#v", *gotM, *wantM)
    				}
    			})
    		}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 31.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/test/testdata/arith_test.go

    // testArithRshConst ensures that "const >> const" right shifts correctly perform
    // sign extension on the lhs constant
    func testArithRshConst(t *testing.T) {
    	wantu := uint64(0x4000000000000000)
    	if got := arithRshuConst_ssa(); got != wantu {
    		t.Errorf("arithRshuConst failed, wanted %d got %d", wantu, got)
    	}
    
    	wants := int64(-0x4000000000000000)
    	if got := arithRshConst_ssa(); got != wants {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 19:30:59 UTC 2023
    - 43.5K bytes
    - Viewed (0)
Back to top