Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 89 for Expect (0.74 sec)

  1. utils/tests/utils.go

    		}
    
    		if expect != nil {
    			expect = reflect.Indirect(reflect.ValueOf(expect)).Interface()
    		}
    
    		if reflect.ValueOf(got).IsValid() != reflect.ValueOf(expect).IsValid() {
    			t.Errorf("%v: expect: %+v, got %+v", utils.FileWithLineNum(), expect, got)
    			return
    		}
    
    		if reflect.ValueOf(got).Kind() == reflect.Slice {
    			if reflect.ValueOf(expect).Kind() == reflect.Slice {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Mar 10 09:21:56 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  2. operator/cmd/mesh/manifest-generate_test.go

    		t.Fatal(err)
    	}
    
    	for _, objs := range objss {
    		g.Expect(objs.kind(name.HPAStr).size()).Should(Equal(3))
    		g.Expect(objs.kind(name.PDBStr).size()).Should(Equal(3))
    		g.Expect(objs.kind(name.ServiceStr).labels("istio=ingressgateway").size()).Should(Equal(3))
    		g.Expect(objs.kind(name.RoleStr).nameMatches(".*gateway.*").size()).Should(Equal(3))
    		g.Expect(objs.kind(name.RoleBindingStr).nameMatches(".*gateway.*").size()).Should(Equal(3))
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Thu Feb 22 08:32:23 GMT 2024
    - 42K bytes
    - Viewed (0)
  3. callbacks/helper_test.go

    				"active": true,
    			},
    			expect: clause.Values{
    				Columns: []clause.Column{{Name: "active"}},
    				Values:  [][]interface{}{{true}},
    			},
    		},
    	}
    
    	for _, tc := range testCase {
    		t.Run(tc.name, func(t *testing.T) {
    			actual := ConvertMapToValuesForCreate(&gorm.Statement{}, tc.input)
    			if !reflect.DeepEqual(actual, tc.expect) {
    				t.Errorf("expect %v got %v", tc.expect, actual)
    			}
    		})
    	}
    }
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Mar 05 02:22:57 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  4. cmd/metacache-stream_test.go

    man-shifts.dyn.expect", "src/compress/flate/testdata/huffman-shifts.dyn.expect-noinput", "src/compress/flate/testdata/huffman-shifts.golden", "src/compress/flate/testdata/huffman-shifts.in", "src/compress/flate/testdata/huffman-shifts.wb.expect", "src/compress/flate/testdata/huffman-shifts.wb.expect-noinput", "src/compress/flate/testdata/huffman-text-shift.dyn.expect", "src/compress/flate/testdata/huffman-text-shift.dyn.expect-noinput", "src/compress/flate/testdata/huffman-text-shift.golden", "s...
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 15K bytes
    - Viewed (0)
  5. operator/cmd/mesh/test-util_test.go

    	obj := objs.kind(name2.ServiceStr).nameEquals(name)
    	g.Expect(obj).Should(Not(BeNil()))
    	return obj
    }
    
    // mustGetDeployment returns the deployment with the given name or fails if it's not found in objs.
    func mustGetDeployment(g *WithT, objs *ObjectSet, deploymentName string) *object.K8sObject {
    	obj := objs.kind(name2.DeploymentStr).nameEquals(deploymentName)
    	g.Expect(obj).Should(Not(BeNil()))
    	return obj
    }
    
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  6. cmd/signature-v4-utils.go

    		}
    		switch header {
    		case "expect":
    			// Golang http server strips off 'Expect' header, if the
    			// client sent this as part of signed headers we need to
    			// handle otherwise we would see a signature mismatch.
    			// `aws-cli` sets this as part of signed headers.
    			//
    			// According to
    			// http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.20
    			// Expect header is always of form:
    			//
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 18:56:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  7. tests/connpool_test.go

    			"SELECT * FROM `users` WHERE name = ? AND `users`.`deleted_at` IS NULL ORDER BY `users`.`id` LIMIT ?",
    		},
    	}
    
    	defer func() {
    		if !reflect.DeepEqual(conn.got, conn.expect) {
    			t.Errorf("expect %#v but got %#v", conn.expect, conn.got)
    		}
    	}()
    
    	db, err := gorm.Open(mysql.New(mysql.Config{Conn: conn, DisableWithReturning: true}))
    	if err != nil {
    		t.Fatalf("Should open db success, but got %v", err)
    	}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Feb 06 02:54:40 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  8. cni/pkg/install/kubeconfig_test.go

    				K8sServicePort:     c.k8sServicePort,
    				SkipTLSVerify:      c.skipTLSVerify,
    			}
    			result, err := createKubeConfig(cfg)
    			if err != nil {
    				if !c.expectedFailure {
    					t.Fatalf("did not expect failure: %v", err)
    				}
    				// Successful test case expecting failure
    				return
    			} else if c.expectedFailure {
    				t.Fatalf("expected failure")
    			}
    
    			goldenFilepath := "testdata/kubeconfig-tls"
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Feb 08 03:52:24 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  9. cni/pkg/plugin/plugin_test.go

    	if len(mockIntercept.lastRedirect) == 0 {
    		t.Fatalf("expected nsenterFunc to be called")
    	}
    	r := mockIntercept.lastRedirect[len(mockIntercept.lastRedirect)-1]
    	if r.includeInboundPorts != "*" {
    		t.Fatalf("expect includeInboundPorts has value '*' set by istio, actual %v", r.includeInboundPorts)
    	}
    }
    
    func TestCmdAddTwoContainersWithStarInboundPort(t *testing.T) {
    	pod, ns := buildFakePodAndNSForClient()
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  10. cni/pkg/install/cniconfig_test.go

    				if len(c.delayedConfName) > 0 {
    					// Delayed case
    					t.Fatalf("did not expect to retrieve a CNI config file %s", result)
    				} else if result != expectedFilepath {
    					if len(expectedFilepath) > 0 {
    						t.Fatalf("expected %s, got %s", expectedFilepath, result)
    					}
    					t.Fatalf("did not expect to retrieve a CNI config file %s", result)
    				}
    				// Successful test for non-delayed cases
    				return
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed May 17 02:22:22 GMT 2023
    - 15.4K bytes
    - Viewed (0)
Back to top