Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 91 for testFoo (0.32 sec)

  1. src/testing/match_test.go

    		// Skipping a non-existent test doesn't change anything.
    		{"", "TestFoo/skipped", "", "TestFoo", true, false},
    		{"TestFoo", "TestFoo/skipped", "", "TestFoo", true, false},
    		{"TestFoo/", "TestFoo/skipped", "", "TestFoo", true, true},
    		{"TestFoo/bar/baz", "TestFoo/skipped", "", "TestFoo", true, true},
    		{"TestFoo", "TestFoo/skipped", "", "TestBar", false, false},
    		{"TestFoo/", "TestFoo/skipped", "", "TestBar", false, false},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 14:48:54 UTC 2022
    - 8K bytes
    - Viewed (0)
  2. pkg/test/framework/resource/matcher_test.go

    			matches: []string{"TestFoo/with_space"},
    		},
    		{
    			name:      "regex",
    			input:     []string{"Foo/.*/Baz"},
    			matches:   []string{"TestFoo/something/TestBaz"},
    			nomatches: []string{"TestFoo", "TestFoo/TestBaz", "TestFoo/something/TestBar"},
    		},
    		{
    			name:      "multiple",
    			input:     []string{"TestFoo/subset", "TestBar"},
    			matches:   []string{"TestBar", "TestBar/subtest", "TestFoo/subset"},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 12 23:30:37 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/import_main.txt

    package main_test
    
    import (
    	"testing"
    	xmain "x"
    )
    
    var _ = xmain.X
    
    func TestFoo(t *testing.T) {}
    -- p1/p.go --
    package p1
    
    import xmain "x"
    
    var _ = xmain.X
    -- p2/p.go --
    package p2
    -- p2/p_test.go --
    package p2
    
    import (
    	"testing"
    	xmain "x"
    )
    
    var _ = xmain.X
    
    func TestFoo(t *testing.T) {}
    -- p3/p.go --
    package p
    -- p3/p_test.go --
    package p_test
    
    import (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 18 21:48:16 UTC 2019
    - 1.7K bytes
    - Viewed (0)
  4. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/integtests/JavaProjectIntegrationTest.groovy

            testFile("src/main/java/Main.java") << "class Main {}"
            testFile("src/test/resources/test.resource") << "test resource"
            testFile("src/test/java/TestFoo.java") << """
            public class TestFoo {
                @org.junit.Test
                public void test() {}
            }
            """
    
            when:
            executer.withTasks("build").run()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 20:01:36 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/AbstractJUnit4FilteringIntegrationTest.groovy

        }
    
        void theSuiteFiles() {
            file("src/test/java/FooTest.java") << """
                ${testFrameworkImports}
                public class FooTest {
                    @Test
                    public void testFoo() { }
                }
            """
            file("src/test/java/FooServerTest.java") << """
                ${testFrameworkImports}
                public class FooServerTest {
                    @Test
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  6. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdRelocationIntegrationTest.groovy

                package org.gradle;
    
                import static org.junit.Assert.assertTrue;
    
                import org.junit.Test;
    
                public class Class1Test {
                    @Test
                    public void testFoo() {
                        Class1 c = new Class1();
                        assertTrue(c.isFoo("foo"));
                    }
                }
                """
    
    
            projectDir.file("build.gradle") << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 21 12:23:38 UTC 2023
    - 2K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/JacocoIntegrationTest.kt

            withFile(
                "src/test/kotlin/fooTest.kt",
                """
                import org.junit.Test
                class FooTest {
                    @Test fun testFoo() { }
                }
                """.trimIndent()
            )
    
            build("test", "jacocoTestCoverageVerification")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Sep 24 17:45:43 UTC 2023
    - 2K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/cover_pkgall_imports.txt

    package notest
    
    func Foo() {}
    
    -- $GOPATH/src/example.com/cov/onlytest/onlytest_test.go --
    package onlytest_test
    
    import (
    	"testing"
    
    	"example.com/cov/notest"
    )
    
    func TestFoo(t *testing.T) {
    	notest.Foo()
    }
    
    -- $GOPATH/src/example.com/cov/withtest/withtest.go --
    package withtest
    
    func Bar() {}
    
    -- $GOPATH/src/example.com/cov/withtest/withtest_test.go --
    package withtest
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 23 18:14:47 UTC 2021
    - 870 bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/test_overlay.txt

    [short] skip
    
    cd $WORK/gopath/src/foo
    go test -list=. -overlay=overlay.json .
    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)
  10. src/cmd/go/testdata/script/cover_pkgall_multiple_mains.txt

    package main
    
    func main() {}
    
    func Foo() {}
    
    -- $GOPATH/src/example.com/cov/mainwithtest/mainwithtest_test.go --
    package main
    
    import "testing"
    
    func TestFoo(t *testing.T) {
      Foo()
    }
    
    -- $GOPATH/src/example.com/cov/xtest/x.go --
    package x
    
    -- $GOPATH/src/example.com/cov/xtest/x_test.go --
    package x_test
    
    import "testing"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 13 16:25:00 UTC 2019
    - 883 bytes
    - Viewed (0)
Back to top