Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 2,969 for Cases (0.04 sec)

  1. pkg/model/proxy_test.go

    		})
    	}
    }
    
    func TestStringBool(t *testing.T) {
    	cases := []struct {
    		name   string
    		in     string
    		expect string
    	}{
    		{"1", `"1"`, `"true"`},
    		{"0", `"0"`, `"false"`},
    		{"false", `"false"`, `"false"`},
    		{"true", `"true"`, `"true"`},
    		{"invalid input", `"foo"`, ``},
    		{"no quotes", `true`, ``},
    	}
    	for _, tt := range cases {
    		t.Run(tt.name, func(t *testing.T) {
    			var out model.StringBool
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 20:38:02 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  2. src/runtime/select.go

    	selectDefault           // default
    )
    
    //go:linkname reflect_rselect reflect.rselect
    func reflect_rselect(cases []runtimeSelect) (int, bool) {
    	if len(cases) == 0 {
    		block()
    	}
    	sel := make([]scase, len(cases))
    	orig := make([]int, len(cases))
    	nsends, nrecvs := 0, 0
    	dflt := -1
    	for i, rc := range cases {
    		var j int
    		switch rc.dir {
    		case selectDefault:
    			dflt = i
    			continue
    		case selectSend:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 13 21:36:04 UTC 2024
    - 15K bytes
    - Viewed (0)
  3. 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)
  4. pkg/bootstrap/platform/aws_test.go

    			}
    		})
    	}
    }
    
    func TestIsAWS(t *testing.T) {
    	cases := []struct {
    		name     string
    		handlers map[string]handlerFunc
    		want     bool
    	}{
    		{"not aws", map[string]handlerFunc{"/iam/info": errorHandler}, false},
    		{"aws", map[string]handlerFunc{"/iam/info": iamInfoHandler}, true},
    	}
    
    	for _, v := range cases {
    		t.Run(v.name, func(tt *testing.T) {
    			server, url := setupHTTPServer(v.handlers)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 18 13:10:06 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  5. analysis/analysis-api-standalone/tests-gen/org/jetbrains/kotlin/analysis/api/standalone/fir/test/cases/generated/cases/symbols/FirStandaloneNormalAnalysisSourceModuleMultiModuleSymbolByPsiTestGenerated.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.standalone.fir.test.cases.generated.cases.symbols;
    
    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)
  6. analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/components/scopeProvider/FirIdeNormalAnalysisScriptSourceModuleCombinedDeclaredMemberScopeTestGenerated.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.scopeProvider;
    
    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.7K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/components/scopeProvider/FirIdeNormalAnalysisScriptSourceModulePackageScopeTestGenerated.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.scopeProvider;
    
    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 Apr 23 10:55:55 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/components/substututorFactory/FirIdeNormalAnalysisSourceModuleSubstitutorBuilderTestGenerated.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.substututorFactory;
    
    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.6K bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/components/containingDeclarationProvider/FirIdeNormalAnalysisScriptSourceModuleContainingModuleByFileTestGenerated.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.containingDeclarationProvider;
    
    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 22 16:00:27 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/components/typeCreator/FirIdeNormalAnalysisSourceModuleBuildClassTypeTestGenerated.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.typeCreator;
    
    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)
Back to top