Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 2,969 for Cases (0.04 sec)

  1. src/go/types/typeterm.go

    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:
    		return x.typ == y.typ
    	}
    	// ∅ ⊂ x, y ⊂ 𝓤
    
    	return x.tilde == y.tilde && Identical(x.typ, y.typ)
    }
    
    // union returns the union x ∪ y: zero, one, or two non-nil terms.
    func (x *term) union(y *term) (_, _ *term) {
    	// easy cases
    	switch {
    	case x == nil && y == 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. src/cmd/vendor/golang.org/x/tools/internal/typeparams/typeterm.go

    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:
    		return x.typ == y.typ
    	}
    	// ∅ ⊂ x, y ⊂ 𝓤
    
    	return x.tilde == y.tilde && types.Identical(x.typ, y.typ)
    }
    
    // union returns the union x ∪ y: zero, one, or two non-nil terms.
    func (x *term) union(y *term) (_, _ *term) {
    	// easy cases
    	switch {
    	case x == nil && y == nil:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 21 21:08:44 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. cluster/images/etcd/migrate/versions_test.go

    limitations under the License.
    */
    
    package main
    
    import (
    	"testing"
    
    	"github.com/blang/semver/v4"
    )
    
    func TestSerializeEtcdVersionPair(t *testing.T) {
    	cases := []struct {
    		versionTxt string
    		version    *EtcdVersionPair
    		match      bool
    	}{
    		{"3.1.2/etcd3", &EtcdVersionPair{&EtcdVersion{semver.MustParse("3.1.2")}, storageEtcd3}, true},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 28 07:33:23 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  6. pkg/version/version_test.go

    // limitations under the License.
    
    package version
    
    import (
    	"fmt"
    	"runtime"
    	"testing"
    )
    
    func TestNewBuildInfoFromOldString(t *testing.T) {
    	cases := []struct {
    		name       string
    		in         string
    		expectFail bool
    		want       BuildInfo
    	}{
    		{
    			"Correct input 1",
    			`Version: 1.0.0
    GitRevision: 3a136c90ec5e308f236e0d7ebb5c4c5e405217f4
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 3K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/components/readWriteAccess/FirIdeNormalAnalysisScriptSourceModuleReadWriteAccessTestGenerated.java

     * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
     */
    
    package org.jetbrains.kotlin.analysis.api.fir.test.cases.generated.cases.components.readWriteAccess;
    
    import com.intellij.testFramework.TestDataPath;
    import org.jetbrains.kotlin.test.util.KtTestUtil;
    import org.jetbrains.annotations.NotNull;
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Mar 08 22:12:25 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/components/resolveExtensionInfoProvider/FirIdeDependentAnalysisScriptSourceModuleResolveExtensionInfoProviderTestGenerated.java

     * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
     */
    
    package org.jetbrains.kotlin.analysis.api.fir.test.cases.generated.cases.components.resolveExtensionInfoProvider;
    
    import com.intellij.testFramework.TestDataPath;
    import org.jetbrains.kotlin.test.util.KtTestUtil;
    import org.jetbrains.annotations.NotNull;
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Feb 27 20:30:06 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/annotations/FirIdeDependentAnalysisScriptSourceModuleAnalysisApiSpecificAnnotationOnDeclarationTestGenerated.java

     * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
     */
    
    package org.jetbrains.kotlin.analysis.api.fir.test.cases.generated.cases.annotations;
    
    import com.intellij.testFramework.TestDataPath;
    import org.jetbrains.kotlin.test.util.KtTestUtil;
    import org.jetbrains.annotations.NotNull;
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Feb 27 20:30:06 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/annotations/FirIdeNormalAnalysisScriptSourceModuleAnalysisApiAnnotationsOnDeclarationsWithMetaTestGenerated.java

     * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
     */
    
    package org.jetbrains.kotlin.analysis.api.fir.test.cases.generated.cases.annotations;
    
    import com.intellij.testFramework.TestDataPath;
    import org.jetbrains.kotlin.test.util.KtTestUtil;
    import org.jetbrains.annotations.NotNull;
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Feb 27 20:30:06 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top