Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for wantBody (0.85 sec)

  1. src/io/fs/readdir_test.go

    			Data:    nil,
    			Mode:    os.ModeDir,
    			ModTime: time.Now(),
    			Sys:     &sysValue,
    		},
    	}
    
    	tests := []struct {
    		path     string
    		wantMode FileMode
    		wantDir  bool
    	}{
    		{path: "notadir.txt", wantMode: 0, wantDir: false},
    		{path: "adir", wantMode: os.ModeDir, wantDir: true},
    	}
    
    	for _, test := range tests {
    		test := test
    		t.Run(test.path, func(t *testing.T) {
    			fi, err := Stat(testFs, test.path)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 27 16:25:41 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  2. src/net/http/httptest/recorder_test.go

    	type checkFunc func(*ResponseRecorder) error
    	check := func(fns ...checkFunc) []checkFunc { return fns }
    
    	hasStatus := func(wantCode int) checkFunc {
    		return func(rec *ResponseRecorder) error {
    			if rec.Code != wantCode {
    				return fmt.Errorf("Status = %d; want %d", rec.Code, wantCode)
    			}
    			return nil
    		}
    	}
    	hasResultStatus := func(want string) checkFunc {
    		return func(rec *ResponseRecorder) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 23:17:38 UTC 2022
    - 9.7K bytes
    - Viewed (0)
  3. cni/pkg/repair/repair_test.go

    			}
    		})
    	}
    }
    
    func TestDeletePods(t *testing.T) {
    	tests := []struct {
    		name      string
    		client    kube.Client
    		config    config.RepairConfig
    		wantErr   bool
    		wantPods  []*corev1.Pod
    		wantCount float64
    		wantTags  map[string]string
    	}{
    		{
    			name:   "No broken pods",
    			client: fakeClient(workingPod, workingPodDiedPreviously),
    			config: config.RepairConfig{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 24 03:31:28 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  4. src/cmd/go/internal/load/pkg_test.go

    			pkg.ImportPath = tt.in
    			pkg.GoFiles = tt.files
    			pkg.Internal.CmdlineFiles = len(tt.files) > 0
    			gotMod := pkg.DefaultExecName()
    			if gotMod != tt.wantMod {
    				t.Errorf("pkg.DefaultExecName with ImportPath = %q in module mode = %v; want %v", tt.in, gotMod, tt.wantMod)
    			}
    		}
    		{
    			cfg.ModulesEnabled = false
    			pkg := new(Package)
    			pkg.ImportPath = tt.in
    			pkg.GoFiles = tt.files
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 14:05:53 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  5. pkg/registry/core/pod/strategy_test.go

    				t.Errorf("Unexpected error: %v", errs.ToAggregate())
    			}
    
    			Strategy.PrepareForCreate(genericapirequest.NewContext(), pod)
    			wantPod.Spec.TopologySpreadConstraints = append(wantPod.Spec.TopologySpreadConstraints, tc.wantTopologySpreadConstraints...)
    			if diff := cmp.Diff(wantPod, pod, cmpopts.IgnoreFields(pod.Status, "Phase", "QOSClass")); diff != "" {
    				t.Errorf("%s unexpected result (-want, +got): %s", tc.name, diff)
    			}
    		})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 76.2K bytes
    - Viewed (0)
  6. pkg/api/pod/util_test.go

    		newPod      *api.Pod
    		wantPod     *api.Pod
    	}{
    		{
    			description: "old with claims / new with claims / disabled",
    			oldPod:      podWithClaims,
    			newPod:      podWithClaims,
    			wantPod:     podWithClaims,
    		},
    		{
    			description: "old without claims / new with claims / disabled",
    			oldPod:      podWithoutClaims,
    			newPod:      podWithClaims,
    			wantPod:     podWithoutClaims,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  7. tests/integration/security/authz_test.go

    					for _, c := range cases {
    						c := c
    						testName := fmt.Sprintf("%s(%s)/http", c.host, c.allow)
    						t.NewSubTest(testName).Run(func(t framework.TestContext) {
    							wantCode := http.StatusOK
    							if !c.allow {
    								wantCode = http.StatusForbidden
    							}
    
    							opts := echo.CallOptions{
    								Port: echo.Port{
    									Protocol: protocol.HTTP,
    								},
    								HTTP: echo.HTTP{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 23:36:51 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  8. src/net/http/httputil/reverseproxy_test.go

    	tests := []struct {
    		name           string
    		wantCode       int
    		errorHandler   func(http.ResponseWriter, *http.Request, error)
    		transport      http.RoundTripper // defaults to failingRoundTripper
    		modifyResponse func(*http.Response) error
    	}{
    		{
    			name:     "default",
    			wantCode: http.StatusBadGateway,
    		},
    		{
    			name:         "errorhandler",
    			wantCode:     http.StatusTeapot,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 54.6K bytes
    - Viewed (0)
  9. src/net/textproto/reader_test.go

    		r := reader(tt.in + "\nFOLLOWING DATA")
    		code, msg, err := r.ReadResponse(tt.inCode)
    		if err != nil {
    			t.Errorf("#%d: ReadResponse: %v", i, err)
    			continue
    		}
    		if code != tt.wantCode {
    			t.Errorf("#%d: code=%d, want %d", i, code, tt.wantCode)
    		}
    		if msg != tt.wantMsg {
    			t.Errorf("#%d: msg=%q, want %q", i, msg, tt.wantMsg)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 05 18:31:56 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  10. pkg/controller/controller_utils_test.go

    		name            string
    		podCreationFunc func(podControl RealPodControl) error
    		wantPod         *v1.Pod
    	}
    	var tests = []test{
    		{
    			name: "Create pod",
    			podCreationFunc: func(podControl RealPodControl) error {
    				return podControl.CreatePods(context.TODO(), ns, controllerSpec.Spec.Template, controllerSpec, controllerRef)
    			},
    			wantPod: &v1.Pod{
    				ObjectMeta: metav1.ObjectMeta{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 39.4K bytes
    - Viewed (0)
Back to top