Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 497 for testF (0.03 sec)

  1. test/typeparam/issue44688.go

    	m1v("")
    	m2v := b1.m2
    	m2v("")
    	b2v := b2.m2
    	b2v("")
    }
    
    // actual test case from issue
    
    type A[T any] struct{}
    
    func (*A[T]) f(T) {}
    
    type B[T any] struct{ A[T] }
    
    func test3() {
    	var b B[string]
    	b.A.f("")
    	b.f("")
    }
    
    func main() {
    	test1[string]("")
    	test2()
    	test3()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  2. test/typeparam/geninline.dir/main.go

    package main
    
    import "./a"
    
    // Testing inlining of functions that refer to instantiated exported and non-exported
    // generic types.
    
    func main() {
    	a.Test1()
    	a.Test2()
    	a.Test3()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 342 bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/ResolvedConfigurationApiIntegrationTest.groovy

            run 'show'
    
            then:
            outputContains("files: [test-1.0, test-1.0, test-1.0-classy]")
            outputContains("display-names: [test-1.0 (org:test:1.0), test-1.0 (org:test:1.0), test-1.0-classy (org:test:1.0)]")
            outputContains("ids: [test-1.0 (org:test:1.0), test-1.0 (org:test:1.0), test-1.0-classy (org:test:1.0)]")
            outputContains("names: [test::jar, test::, test::]")
            outputContains("classifiers: [null, null, classy]")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 30 18:17:47 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  4. test/fixedbugs/issue5470.dir/a.go

    package a
    
    type Foo interface {
    	Hi() string
    }
    
    func Test1() Foo { return make(tst1) }
    
    type tst1 map[string]bool
    
    func (r tst1) Hi() string { return "Hi!" }
    
    func Test2() Foo { return make(tst2, 0) }
    
    type tst2 []string
    
    func (r tst2) Hi() string { return "Hi!" }
    
    func Test3() Foo { return make(tst3) }
    
    type tst3 chan string
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 07:01:43 UTC 2013
    - 532 bytes
    - Viewed (0)
  5. src/cmd/go/internal/gover/gover_test.go

    	in2 In2
    	in3 In3
    	out Out
    }
    
    func test1[In, Out any](t *testing.T, tests []testCase1[In, Out], name string, f func(In) Out) {
    	t.Helper()
    	for _, tt := range tests {
    		if out := f(tt.in); !reflect.DeepEqual(out, tt.out) {
    			t.Errorf("%s(%v) = %v, want %v", name, tt.in, out, tt.out)
    		}
    	}
    }
    
    func test2[In1, In2, Out any](t *testing.T, tests []testCase2[In1, In2, Out], name string, f func(In1, In2) Out) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 23:20:32 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  6. src/cmd/go/internal/gover/mod_test.go

    	"testing"
    
    	"golang.org/x/mod/module"
    )
    
    func TestIsToolchain(t *testing.T) { test1(t, isToolchainTests, "IsToolchain", IsToolchain) }
    
    var isToolchainTests = []testCase1[string, bool]{
    	{"go", true},
    	{"toolchain", true},
    	{"anything", false},
    	{"golang.org/toolchain", false},
    }
    
    func TestModCompare(t *testing.T) { test3(t, modCompareTests, "ModCompare", ModCompare) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 17:51:28 UTC 2023
    - 2K bytes
    - Viewed (0)
  7. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGPreserveOrderIntegrationTest.groovy

                        System.out.println("Test2.afterClass()");
                    }
                }
            """
    
            when: succeeds "test"
    
            then:
            outputContains("""
    Test1.beforeClass()
    Test1.test1()
    Test1.test2()
    Test1.afterClass()
    """)
            outputContains("""
    Test2.beforeClass()
    Test2.test1()
    Test2.test2()
    Test2.afterClass()
    """)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  8. test/typeparam/geninline.dir/a.go

    }
    
    type Val[T comparable] struct {
    	val T
    }
    
    //go:noinline
    func (l *Val[T]) check(want T) {
    	if l.val != want {
    		panic("hi")
    	}
    }
    
    func Test1() {
    	var l Val[int]
    	if l.val != 0 {
    		panic("hi")
    	}
    	_ = IVal[int](&l)
    }
    
    func Test2() {
    	var l Val[float64]
    	l.val = 3.0
    	l.check(float64(3))
    	_ = IVal[float64](&l)
    }
    
    type privateVal[T comparable] struct {
    	val T
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 15 16:57:36 UTC 2021
    - 799 bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/test_skip.txt

    go test -v -run Test -skip T skip_test.go
    ! stdout RUN
    stdout '^ok.*\[no tests to run\]'
    
    go test -v -skip T skip_test.go
    ! stdout RUN
    
    go test -v -skip 1 skip_test.go
    ! stdout Test1
    stdout RUN.*Test2
    stdout RUN.*Test2/3
    
    go test -v -skip 2/3 skip_test.go
    stdout RUN.*Test1
    stdout RUN.*Test2
    stdout RUN.*ExampleTest1
    ! stdout Test2/3
    
    go test -v -skip 2/4 skip_test.go
    stdout RUN.*Test1
    stdout RUN.*Test2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 17:40:22 UTC 2023
    - 755 bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ResolvedFileOrderingIntegrationTest.groovy

            outputContains("files 7: [test-lib.jar, a.jar, a-lib.jar, test-1.0.jar, test-1.0-from-main.jar, test-1.0-from-a.jar, test-1.0-from-c.jar, c.jar, c-lib.jar, test3-1.0.jar, b.jar, b-lib.jar, test2-1.0.jar]")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 18:18:46 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top