Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 110 for booltest (0.32 sec)

  1. pkg/kubelet/util/sliceutils/sliceutils_test.go

    		{buildPodsByCreationTime(), 2, 1},
    	}
    
    	for _, fooTest := range fooTests {
    		fooi := fooTest.pods[fooTest.i]
    		fooj := fooTest.pods[fooTest.j]
    		fooTest.pods.Swap(fooTest.i, fooTest.j)
    		if fooi.GetName() != fooTest.pods[fooTest.j].GetName() || fooj.GetName() != fooTest.pods[fooTest.i].GetName() {
    			t.Errorf("failed to swap for %v", fooTest)
    		}
    	}
    }
    
    func TestPodsByCreationTimeLess(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 13 08:27:42 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  2. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGFilteringIntegrationTest.groovy

                                'class' (name: 'FooTest')
                                'class' (name: 'BarTest')
                            }
                        }
                    }
                  }
                }
            """
    
            file("src/test/java/FooTest.java") << """
                ${testFrameworkImports}
                public class FooTest {
                    @Test public void pass() {}
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  3. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/filter/DefaultTestFilterTest.groovy

            expect: spec.includePatterns.isEmpty()
    
            when:
            spec.includeTestsMatching("*fooMethod")
            spec.includeTestsMatching("*.FooTest.*")
    
            then: spec.includePatterns == ["*fooMethod", "*.FooTest.*"] as Set
    
            when: spec.setIncludePatterns("x")
    
            then: spec.includePatterns == ["x"] as Set
        }
    
        def "allows configuring by test class and methodname"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/AbstractJUnit4FilteringIntegrationTest.groovy

            then:
            def result = new DefaultTestExecutionResult(testDirectory)
    
            result.assertTestClassesExecuted("FooTest", "FooServerTest")
            result.testClass("FooTest").assertTestCount(1, 0, 0);
            result.testClass("FooTest").assertTestOutcomes(passedTestOutcome, "testFoo")
            result.testClass("FooServerTest").assertTestCount(1, 0, 0);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnit3FilteringIntegrationTest.groovy

            result.assertTestClassesExecuted("FooTest")
            result.testClass("FooTest").assertTestsExecuted("testPass")
    
            when:
            fails("test", "--tests", "FooTest.unknown")
    
            then:
            failure.assertHasCause("No tests found for given includes: [FooTest.unknown]")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/test/divconst_test.go

    func BenchmarkDivisiblePow2constI32(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		boolres = int32(i)%16 == 0
    	}
    }
    
    func BenchmarkDivisibleconstI32(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		boolres = int32(i)%7 == 0
    	}
    }
    
    func BenchmarkDivisibleWDivconstI32(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		i32res = int32(i) / 7
    		boolres = int32(i)%7 == 0
    	}
    }
    
    var u32res uint32
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 29 00:07:35 UTC 2020
    - 7.7K bytes
    - Viewed (0)
  7. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGSuiteIntegrationTest.groovy

        }
        test {
            useTestNG {
                systemProperty 'name', 'value'
            }
        }
    """
            file("src/test/java/FooTest.java") << """
                import org.testng.annotations.*;
    
                public class FooTest {
                    @Test public void foo() {
                      assert System.getProperty("name").equals("value");
                    }
                }
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  8. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGSuiteInitialisationIntegrationTest.groovy

        @Issue("GRADLE-1710")
        def "reports suite fatal failure"() {
            TestNGCoverage.enableTestNG(buildFile, '6.3.1')
            file("src/test/java/FooTest.java") << """
                import org.testng.annotations.*;
    
                public class FooTest {
                    public FooTest() { throw new NullPointerException(); }
                    @Test public void foo() {}
                }
            """
    
            expect:
            fails("test")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  9. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest-typed-test.h

    typedef testing::Types<char, int, unsigned int> MyTypes;
    TYPED_TEST_CASE(FooTest, MyTypes);
    
    // If the type list contains only one type, you can write that type
    // directly without Types<...>:
    //   TYPED_TEST_CASE(FooTest, int);
    
    // Then, use TYPED_TEST() instead of TEST_F() to define as many typed
    // tests for this test case as you want.
    TYPED_TEST(FooTest, DoesBlah) {
      // Inside a test, refer to TypeParam to get the type parameter.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 10K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/test_overlay.txt

    stdout 'TestBar'
    
    -- go.mod --
    module test.pkg
    -- foo/foo_test.go --
    package foo
    
    import "testing"
    
    func TestFoo(t *testing.T) { }
    -- tmp/bar_test.go --
    package foo
    
    import "testing"
    
    func TestBar(t *testing.T) {
    	t.Fatal("dummy failure")
    }
    -- foo/overlay.json --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 31 16:39:16 UTC 2021
    - 393 bytes
    - Viewed (0)
Back to top