Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for TestBar (0.18 sec)

  1. pkg/test/framework/resource/matcher_test.go

    			input:     []string{"Foo"},
    			matches:   []string{"TestFoo", "TestMyFooBar", "TestFoo/TestBar"},
    			nomatches: []string{"baz", "baz/foo", "TestBar/TestFoo"},
    		},
    		{
    			name:      "double",
    			input:     []string{"Foo/Bar"},
    			matches:   []string{"TestFoo/TestBar", "TestFoo/TestBar/TestBaz"},
    			nomatches: []string{"TestFoo", "TestBar", "TestMyFooBar"},
    		},
    		{
    			name:    "space",
    			input:   []string{"TestFoo/with space"},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 12 23:30:37 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  2. src/testing/match_test.go

    		{"TestFoo/bar/baz", "", "", "TestFoo", true, true},
    		{"TestFoo", "", "", "TestBar", false, false},
    		{"TestFoo/", "", "", "TestBar", false, false},
    		{"TestFoo/bar/baz", "", "", "TestBar/bar/baz", false, false},
    		{"", "TestBar", "", "TestFoo", true, false},
    		{"", "TestBar", "", "TestBar", false, false},
    
    		// Skipping a non-existent test doesn't change anything.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 14:48:54 UTC 2022
    - 8K bytes
    - Viewed (0)
  3. 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)
  4. src/cmd/go/testdata/script/cover_pkgall_imports.txt

    }
    
    -- $GOPATH/src/example.com/cov/withtest/withtest.go --
    package withtest
    
    func Bar() {}
    
    -- $GOPATH/src/example.com/cov/withtest/withtest_test.go --
    package withtest
    
    import "testing"
    
    func TestBar(t *testing.T) {
    	Bar()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 23 18:14:47 UTC 2021
    - 870 bytes
    - Viewed (0)
  5. test/fixedbugs/issue5755.dir/main.go

    import "./a"
    
    func main() {
    	a.Test1("frumious")
    	a.Test2("frumious")
    	a.Test3("frumious")
    	a.Test4("frumious")
    
    	a.Test5(nil)
    	a.Test6(nil)
    	a.Test7(nil)
    	a.Test8(nil)
    	a.Test9(0)
    
    	a.TestBar()
    	a.IsBaz(nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 28 21:29:13 UTC 2013
    - 385 bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/cover_var_init_order.txt

    func notOK() string {
    	return "not OK"
    }
    
    -- m_test.go --
    
    package main
    
    import (
    	"testing"
    )
    
    func TestFoo(t *testing.T) {
    	if foo == nil {
    		t.Fatal()
    	}
    }
    
    func TestBar(t *testing.T) {
    	if bar == nil {
    		t.Fatal()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 18 18:14:15 UTC 2022
    - 784 bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/cover_test_pkgselect.txt

    package bar
    
    import "example/foo"
    
    func BarFunc() int {
    	return foo.FooFunc2()
    }
    
    -- bar/bar_test.go --
    package bar_test
    
    import (
    	"example/bar"
    	"testing"
    )
    
    func TestBar(t *testing.T) {
    	if bar.BarFunc() != 42 {
    		t.Fatalf("bad")
    	}
    }
    
    -- baz/baz.go --
    package baz
    
    func BazFunc() int {
    	return -42
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 11:50:58 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  8. test/fixedbugs/issue5755.dir/a.go

    func Test7(s []uint8) I { return foo7(s) }
    func Test8(s []int32) I { return foo8(s) }
    func Test9(s int) I     { return foo9(s) }
    
    type bar map[int]int
    
    func (b bar) F() { return }
    
    func TestBar() I { return bar{1: 2} }
    
    type baz int
    
    func IsBaz(x interface{}) bool { _, ok := x.(baz); return ok }
    
    type baz2 int
    
    func IsBaz2(x interface{}) bool {
    	switch x.(type) {
    	case baz2:
    		return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 28 21:29:13 UTC 2013
    - 1.3K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/beans/impl/MethodDescTest.java

            assertThat(foo.isStatic(), is(not(true)));
            foo.invokeStatic();
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testBar() throws Exception {
            final BeanDesc beanDesc = new BeanDescImpl(MyBean.class);
            final MethodDesc bar = beanDesc.getMethodDesc("bar", String.class);
            assertThat(bar, is(notNullValue()));
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/AbstractJUnit4FilteringIntegrationTest.groovy

                }
            """
            file("src/test/java/BarTest.java") << """
                ${testFrameworkImports}
                public class BarTest {
                    @Test
                    public void testBar() { }
                }
            """
            file("src/test/java/AllFooTests.java") << """
                ${testFrameworkImports}
                import org.junit.runners.Suite;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 5.7K bytes
    - Viewed (0)
Back to top