Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,070 for Cases (0.05 sec)

  1. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/resolver/AbstractResolveCallTest.kt

     */
    
    package org.jetbrains.kotlin.analysis.api.impl.base.test.cases.components.resolver
    
    import org.jetbrains.kotlin.analysis.api.impl.base.test.cases.components.assertStableResult
    import org.jetbrains.kotlin.analysis.api.impl.base.test.cases.components.stringRepresentation
    import org.jetbrains.kotlin.psi.*
    import org.jetbrains.kotlin.test.services.TestServices
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 19:03:00 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  2. 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)
  3. tests/integration/security/authz_test.go

    								cases = append(cases,
    									testCase{
    										path:  fmt.Sprintf("/policy-%s-all", ns.Prefix()),
    										allow: ns.Name() == to.Config().Namespace.Name(),
    									})
    							}
    
    							// Make sure the workload-specific paths succeeds.
    							cases = append(cases,
    								testCase{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 23:36:51 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  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. 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)
  9. 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)
  10. 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)
Back to top