Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for o2k2 (0.07 sec)

  1. src/context/x_test.go

    	o0 := otherContext{Background()}
    	check(o0, "o0", "", "", "")
    
    	o1 := otherContext{WithValue(Background(), k1, "c1k1")}
    	check(o1, "o1", "c1k1", "", "")
    
    	o2 := WithValue(o1, k2, "o2k2")
    	check(o2, "o2", "c1k1", "o2k2", "")
    
    	o3 := otherContext{c4}
    	check(o3, "o3", "", "c2k2", "c3k3")
    
    	o4 := WithValue(o3, k3, nil)
    	check(o4, "o4", "", "c2k2", "")
    }
    
    func TestAllocs(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  2. src/internal/trace/mud_test.go

    		for j := 0.0; j < mass; j += mass * 0.099 {
    			mud.setTrackMass(j)
    			l, u, ok := mud.approxInvCumulativeSum()
    			inv, ok2 := mud.invCumulativeSum(j)
    			if !ok || !ok2 {
    				t.Fatalf("inverse cumulative sum failed: approx %v, exact %v", ok, ok2)
    			}
    			if !(l <= inv && inv < u) {
    				t.Fatalf("inverse(%g) = %g, not ∈ [%g, %g)", j, inv, l, u)
    			}
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/JUnit4CategoriesOrTagsCoverageIntegrationTest.groovy

        }
    
        def 'reports unloadable #type'() {
            given:
            testSources.with {
                testClass('SomeTestClass').with {
                    testMethod('ok1')
                    testMethod('ok2')
                }
            }
            testSourceGenerator.writeAllSources(testSources)
            buildFile << """
                apply plugin: "java"
    
                ${mavenCentralRepository()}
                dependencies {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/AbstractTestFilteringIntegrationTest.groovy

            when:
            succeedsWithTestTaskArguments("test", "--tests=Ok2*")
    
            then:
            def testResult = new DefaultTestExecutionResult(testDirectory)
            testResult.assertTestClassesExecuted('Ok2')
    
            when:
            succeedsWithTestTaskArguments("cleanTest", "test", "--tests=Ok*")
    
            then:
            testResult.assertTestClassesExecuted('Ok', 'Ok2')
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 17.2K bytes
    - Viewed (0)
  5. pilot/pkg/model/jwks_resolver.go

    			key1, ok1 := oldKeys[i].(map[string]any)
    			key2, ok2 := oldKeys[j].(map[string]any)
    			if ok1 && ok2 {
    				key1Id, kid1Exists := key1["kid"]
    				key2Id, kid2Exists := key2["kid"]
    				if kid1Exists && kid2Exists {
    					key1IdStr, ok1 := key1Id.(string)
    					key2IdStr, ok2 := key2Id.(string)
    					if ok1 && ok2 {
    						return key1IdStr < key2IdStr
    					}
    				}
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 09:47:21 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  6. src/os/types.go

    // SameFile only applies to results returned by this package's [Stat].
    // It returns false in other cases.
    func SameFile(fi1, fi2 FileInfo) bool {
    	fs1, ok1 := fi1.(*fileStat)
    	fs2, ok2 := fi2.(*fileStat)
    	if !ok1 || !ok2 {
    		return false
    	}
    	return sameFile(fs1, fs2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 20:52:06 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  7. pkg/config/analysis/local/context.go

    	i.collectionReporter(col)
    	k := key{col, name, "default"}
    	if result, ok := i.found[k]; ok {
    		return result
    	}
    	if cache, ok := i.foundCollections[col]; ok {
    		if result, ok2 := cache[k]; ok2 {
    			return result
    		}
    	}
    	colschema, ok := collections.All.FindByGroupVersionKind(col)
    	if !ok {
    		log.Warnf("collection %s could not be found", col.String())
    		return nil
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 08:32:06 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/TestOptionsIntegrationSpec.groovy

        }
    
        @Test
        public void ok2() {
        }
    }
            """
            file("src/integTest/java/org/example/SomeIntegTestClass.java") << """
    package org.example;
    
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.api.Tag;
    
    @Tag("fast")
    public class SomeIntegTestClass {
        @Test
        public void ok1() {
        }
    
        @Test
        public void ok2() {
        }
    }
            """
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  9. platforms/jvm/testing-jvm-infrastructure/src/testFixtures/groovy/org/gradle/api/internal/tasks/testing/testng/TestNGTestClassProcessorData.groovy

        @Test(expectedExceptions = RuntimeException)
        public void ok() {
            throw new RuntimeException()
        }
    }
    
    public class ATestNGClassWithManyMethods {
        @Test public void ok() {}
        @Test public void ok2() {}
        @Test public void another() {}
        @Test public void yetAnother() {}
    }
    
    public class ATestNGClassWithGroups {
        @Test(groups="group1") public void group1() {}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  10. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnitTestFailureIntegrationTest.groovy

                        fail("failed");
                    }
    
                    @Test
                    public void ok() {
                    }
    
                    @Test
                    public void ok2() {
                    }
                }
            """.stripIndent()
            file('src/test/java/org/gradle/UnserializableException.java') << """
                package org.gradle;
    
                ${testFrameworkImports}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 18K bytes
    - Viewed (0)
Back to top