Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 483 for testCases (0.51 sec)

  1. src/net/dial_test.go

    	const fallbackDelay = 200 * time.Millisecond
    
    	nCopies := func(s string, n int) []string {
    		out := make([]string, n)
    		for i := 0; i < n; i++ {
    			out[i] = s
    		}
    		return out
    	}
    
    	var testCases = []struct {
    		primaries       []string
    		fallbacks       []string
    		teardownNetwork string
    		expectOk        bool
    		expectElapsed   time.Duration
    	}{
    		// These should just work on the first try.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  2. pkg/util/iptables/iptables_test.go

    	}
    	for _, testCase := range testCases {
    		var cmd string
    		switch testCase.funcName {
    		case "iptablesCommand":
    			cmd = iptablesCommand(testCase.protocol)
    		case "iptablesSaveCommand":
    			cmd = iptablesSaveCommand(testCase.protocol)
    		case "iptablesRestoreCommand":
    			cmd = iptablesRestoreCommand(testCase.protocol)
    		}
    		if cmd != testCase.expectedCmd {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 08 15:21:59 UTC 2023
    - 46.3K bytes
    - Viewed (0)
  3. test/nosplit.go

    				}
    				m := lineRE.FindStringSubmatch(subline)
    				if m == nil {
    					bug()
    					fmt.Printf("invalid function line: %s\n", subline)
    					continue TestCases
    				}
    				name := m[1]
    				size, _ := strconv.Atoi(m[2])
    
    				if size%ptrSize == 4 {
    					continue TestCases
    				}
    				nosplit := m[3]
    				body := m[4]
    
    				// The limit was originally 128 but is now 800.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  4. security/pkg/pki/util/generate_cert_test.go

    			Roots: pool,
    		}
    		if _, err := out.Verify(vo); err != nil {
    			t.Errorf("verification of the signed certificate failed %v", err)
    		}
    	}
    }
    
    func TestLoadSignerCredsFromFiles(t *testing.T) {
    	testCases := map[string]struct {
    		certFile    string
    		keyFile     string
    		expectedErr string
    	}{
    		"Good certificates": {
    			certFile:    "../testdata/cert.pem",
    			keyFile:     "../testdata/key.pem",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Nov 06 12:48:53 UTC 2023
    - 29.4K bytes
    - Viewed (0)
  5. tests/integration/pilot/tunneling_test.go

    	},
    }
    
    var requestsSpec = []testRequestSpec{
    	{
    		protocol: protocol.HTTP,
    		port:     ports.TCPForHTTP,
    	},
    	{
    		protocol: protocol.HTTPS,
    		port:     ports.HTTPS,
    	},
    }
    
    var testCases = []tunnelingTestCase{
    	{
    		configDir: "sidecar",
    	},
    	{
    		configDir: "gateway/tcp",
    	},
    	{
    		configDir: "gateway/tls/istio-mutual",
    	},
    	{
    		configDir: "gateway/tls/passthrough",
    	},
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  6. cmd/format-erasure_test.go

    				}{
    					Version: "0",
    				},
    			},
    			false,
    		},
    	}
    
    	// Valid all test cases.
    	for i, testCase := range testCases {
    		if err := checkFormatErasureValue(testCase.format, nil); err != nil && testCase.success {
    			t.Errorf("Test %d: Expected failure %s", i+1, err)
    		}
    	}
    }
    
    // Tests getFormatErasureInQuorum()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Apr 15 08:25:46 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/cmd/join_test.go

    	}
    	defer cfgFile.Close()
    	if _, err = cfgFile.WriteString(testJoinConfig); err != nil {
    		t.Fatalf("Unable to write file %q: %v", configFilePath, err)
    	}
    
    	testCases := []struct {
    		name        string
    		args        []string
    		flags       map[string]string
    		validate    func(*testing.T, *joinData)
    		expectError bool
    		expectWarn  bool
    	}{
    		// Join data passed using flags
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 19 12:26:20 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  8. src/math/big/rat_test.go

    		if isFinite(f) {
    			t.Errorf("IsFinite(%g, (%b))", f, f)
    		}
    	}
    }
    
    func TestRatSetInt64(t *testing.T) {
    	var testCases = []int64{
    		0,
    		1,
    		-1,
    		12345,
    		-98765,
    		math.MaxInt64,
    		math.MinInt64,
    	}
    	var r = new(Rat)
    	for i, want := range testCases {
    		r.SetInt64(want)
    		if !r.IsInt() {
    			t.Errorf("#%d: Rat.SetInt64(%d) is not an integer", i, want)
    		}
    		num := r.Num()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 07 00:15:59 UTC 2022
    - 18.9K bytes
    - Viewed (0)
  9. pilot/pkg/networking/core/tracing_test.go

    	}
    	defer func() {
    		clusterLookupFn = model.LookupCluster
    	}()
    
    	defaultUUIDExtensionCtx := requestidextension.UUIDRequestIDExtensionContext{
    		UseRequestIDForTraceSampling: true,
    	}
    
    	testcases := []struct {
    		name            string
    		opts            gatewayListenerOpts
    		inSpec          *model.TracingConfig
    		want            *hcm.HttpConnectionManager_Tracing
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 20:47:52 UTC 2024
    - 38.6K bytes
    - Viewed (0)
  10. pkg/controller/garbagecollector/dump_test.go

    		OwnerReference: metav1.OwnerReference{
    			UID:        types.UID("ref2-"),
    			Name:       "ref2name-",
    			Kind:       "ref2kind-",
    			APIVersion: "ref2group/version",
    		},
    		Namespace: "ref2ns",
    	}
    	testcases := []struct {
    		file  string
    		nodes []*dotVertex
    		edges []dotEdge
    	}{
    		{
    			file: "empty.dot",
    		},
    		{
    			file: "simple.dot",
    			nodes: []*dotVertex{
    				NewDOTVertex(alphaNode()),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 14 00:05:53 UTC 2023
    - 11.2K bytes
    - Viewed (0)
Back to top