Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,412 for case2 (0.1 sec)

  1. src/go/types/typeterm.go

    func (x *term) String() string {
    	switch {
    	case x == nil:
    		return "∅"
    	case x.typ == nil:
    		return "𝓤"
    	case x.tilde:
    		return "~" + x.typ.String()
    	default:
    		return x.typ.String()
    	}
    }
    
    // equal reports whether x and y represent the same type set.
    func (x *term) equal(y *term) bool {
    	// easy cases
    	switch {
    	case x == nil || y == nil:
    		return x == y
    	case x.typ == nil || y.typ == nil:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. pkg/util/filesystem/util_test.go

    		{path: "/var/../something", expected: false},
    		{path: "/var//lib/something", expected: false},
    		{path: "/var/./lib/something", expected: false},
    	}
    
    	// Additional cases applicable on Windows
    	if runtime.GOOS == "windows" {
    		cases = append(cases, []Case{
    			{path: "\\", expected: true},
    			{path: "C:/var/lib/something", expected: true},
    			{path: "C:\\var\\lib\\something", expected: true},
    			{path: "C:/", expected: true},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 10 17:13:59 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. operator/pkg/util/k8s_test.go

    		err = yaml.Unmarshal([]byte(tt.operatorYaml), op)
    		if err != nil {
    			t.Fatalf("Failure in test case %v. Error %s", i, err)
    		}
    		err = ValidateIOPCAConfig(k8sClient, op)
    		if !tt.expErr && err != nil {
    			t.Fatalf("Failure in test case %v. Expected No Error. Got %s", i, err)
    		} else if tt.expErr && err == nil {
    			t.Fatalf("Failure in test case %v. Expected Error. Got No error", i)
    		}
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Feb 27 16:55:16 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/cel/library/format_test.go

    			if keyLHS == keyRHS {
    				continue
    			}
    			cases = append(cases, testcase{
    				name:        fmt.Sprintf("compare_%s_%s", keyLHS, keyRHS),
    				expr:        fmt.Sprintf(`format.%s() == format.%s()`, keyLHS, keyRHS),
    				expectValue: types.False,
    			})
    		}
    	}
    
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/instrument/AbstractProcessInstrumentationInDynamicGroovyIntegrationTest.groovy

        /**
         * Produces a list of test cases. Each test case is itself a list of the following structure:
         * {@code [varInitializer, processCreator, expectedPwdSuffix, expectedEnvVar]}.
         * @return the list of test cases
         */
        abstract def testCases()
    
        /**
         * Produces a list of indy compilation modes. Each test case from {@link #testCases()} will run in every mode from the returned list.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  6. src/cmp/cmp_test.go

    }
    
    func TestLess(t *testing.T) {
    	for _, test := range tests {
    		var b bool
    		switch test.x.(type) {
    		case int:
    			b = cmp.Less(test.x.(int), test.y.(int))
    		case string:
    			b = cmp.Less(test.x.(string), test.y.(string))
    		case float64:
    			b = cmp.Less(test.x.(float64), test.y.(float64))
    		case uintptr:
    			b = cmp.Less(test.x.(uintptr), test.y.(uintptr))
    		}
    		if b != (test.compare < 0) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 23:39:07 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. istioctl/pkg/proxystatus/proxystatus_test.go

    	wantException bool
    }
    
    func TestProxyStatus(t *testing.T) {
    	cases := []execTestCase{
    		{ // case 0, with no Isitod instance
    			args:           []string{},
    			noIstiod:       true,
    			expectedOutput: "Error: no running Istio pods in \"istio-system\"\n",
    			wantException:  true,
    		},
    		{ // case 1, with Istiod instance
    			args:           []string{},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 08:28:50 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  8. cmd/erasure-sets_test.go

    	"github.com/google/uuid"
    )
    
    var testUUID = uuid.MustParse("f5c58c61-7175-4018-ab5e-a94fe9c2de4e")
    
    func BenchmarkCrcHash(b *testing.B) {
    	cases := []struct {
    		key int
    	}{
    		{16},
    		{64},
    		{128},
    		{256},
    		{512},
    		{1024},
    	}
    	for _, testCase := range cases {
    		testCase := testCase
    		key := randString(testCase.key)
    		b.Run("", func(b *testing.B) {
    			b.SetBytes(1024)
    			b.ReportAllocs()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 12 07:21:56 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/build/relnote/dump.go

    	dprintf(depth, "%s\n", typeName)
    	switch b := b.(type) {
    	case *md.Paragraph:
    		dumpInlines(b.Text.Inline, depth+1)
    	case *md.Heading:
    		dumpInlines(b.Text.Inline, depth+1)
    	case *md.List:
    		dumpBlocks(b.Items, depth+1)
    	case *md.Item:
    		dumpBlocks(b.Blocks, depth+1)
    	default:
    		// TODO(jba): additional cases as needed.
    	}
    }
    
    func dumpInlines(ins []md.Inline, depth int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. istioctl/pkg/internaldebug/internal-debug_test.go

    	wantException bool
    }
    
    func TestInternalDebug(t *testing.T) {
    	cases := []execTestCase{
    		{ // case 0, no args
    			args:           []string{},
    			noIstiod:       true,
    			expectedOutput: "Error: debug type is required\n",
    			wantException:  true,
    		},
    		{ // case 1, no istiod
    			args:           []string{"adsz"},
    			noIstiod:       true,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 08:28:50 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top