Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 2,780 for Cases (0.16 sec)

  1. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtExpressionInfoProvider.kt

            withValidityAssertion { analysisSession.expressionInfoProvider.getReturnExpressionTargetSymbol(this) }
    
        /**
         * Returns cases missing from the branches of [KtWhenExpression].
         *
         * The missing cases of the when-expression in the following example are Direction.WEST and Direction.EAST:
         *
         * enum class Direction {
         *   NORTH, SOUTH, WEST, EAST
         * }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:35 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. pkg/controller/job/indexed_job_utils_test.go

    			wantHas:   true,
    		},
    	}
    	for name, tc := range cases {
    		t.Run(name, func(t *testing.T) {
    			has := tc.intervals.has(tc.index)
    			if has != tc.wantHas {
    				t.Errorf("intervalsHaveIndex(_, _) = %t, want %t", has, tc.wantHas)
    			}
    		})
    	}
    }
    
    func TestFirstPendingIndexes(t *testing.T) {
    	cases := map[string]struct {
    		cnt              int
    		completions      int
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  3. src/crypto/x509/oid_test.go

    	}
    
    	for _, v := range oidTests {
    		oid, ok := newOIDFromDER(v.raw)
    		if !ok {
    			continue
    		}
    		cases = append(cases, struct {
    			in  string
    			out OID
    			err error
    		}{
    			in:  v.str,
    			out: oid,
    			err: nil,
    		})
    	}
    
    	for _, tt := range cases {
    		o, err := ParseOID(tt.in)
    		if err != tt.err {
    			t.Errorf("ParseOID(%q) = %v; want = %v", tt.in, err, tt.err)
    			continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 19:10:38 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/group_version_test.go

    	GV GroupVersion `json:"val"`
    }
    
    func TestGroupVersionUnmarshalJSON(t *testing.T) {
    	cases := []struct {
    		input  []byte
    		expect GroupVersion
    	}{
    		{[]byte(`{"val": "v1"}`), GroupVersion{"", "v1"}},
    		{[]byte(`{"val": "apps/v1"}`), GroupVersion{"apps", "v1"}},
    	}
    
    	for _, c := range cases {
    		var result GroupVersionHolder
    		// test golang lib's JSON codec
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 20 16:49:23 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/quantization/stablehlo/quantization_test.cc

    using ::stablehlo::quantization::io::CreateTmpDir;
    using ::testing::HasSubstr;
    using ::tsl::testing::IsOk;
    using ::tsl::testing::StatusIs;
    
    // Test cases for `RunQuantization` mainly tests for error cases because testing
    // for successful cases require passing python implementation to
    // `quantization_py_function_lib`, which requires testing from the python level.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 11 19:29:56 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. pkg/config/model_test.go

    			json:  `{"name":"foobar"}`,
    		},
    	}
    	for _, tt := range cases {
    		t.Run(fmt.Sprintf("%T", tt.input), func(t *testing.T) {
    			jb, err := ToJSON(tt.input)
    			if err != nil {
    				t.Fatal(err)
    			}
    			if string(jb) != tt.json {
    				t.Fatalf("got %v want %v", string(jb), tt.json)
    			}
    		})
    	}
    }
    
    func TestToMap(t *testing.T) {
    	cases := []struct {
    		input Spec
    		mp    map[string]any
    	}{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 17:37:32 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  7. 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)
  8. pilot/pkg/model/extensions_test.go

    						Sha256: "fake-sha256",
    					},
    				},
    			},
    		},
    	}
    
    	for _, tc := range cases {
    		t.Run("", func(t *testing.T) {
    			u, err := url.Parse(tc.url)
    			assert.NoError(t, err)
    			got := buildDataSource(u, tc.wasmPlugin)
    			assert.Equal(t, tc.expected, got)
    		})
    	}
    }
    
    func TestBuildVMConfig(t *testing.T) {
    	cases := []struct {
    		desc     string
    		vm       *extensions.VmConfig
    		policy   extensions.PullPolicy
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  9. cni/pkg/install/cniconfig_test.go

    				} else if len(c.expectedConfName) > 0 {
    					t.Fatalf("timed out waiting for expected %s", expectedFilepath)
    				} else {
    					// Successful test for test cases where CNI config file is never created
    					return
    				}
    			}
    
    			// Only for delayed cases
    			select {
    			case result := <-resultChan:
    				if result != expectedFilepath {
    					if len(expectedFilepath) > 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 21 18:32:01 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  10. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/scopeProvider/AbstractSubstitutionOverridesUnwrappingTest.kt

     */
    
    package org.jetbrains.kotlin.analysis.api.impl.base.test.cases.components.scopeProvider
    
    import org.jetbrains.kotlin.analysis.api.KaSession
    import org.jetbrains.kotlin.analysis.test.framework.services.expressionMarkerProvider
    import org.jetbrains.kotlin.analysis.api.impl.base.test.cases.symbols.AbstractSymbolTest
    import org.jetbrains.kotlin.analysis.api.impl.base.test.cases.symbols.SymbolsData
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 2.2K bytes
    - Viewed (0)
Back to top