Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for testHelper (0.14 sec)

  1. src/testing/helperfuncs_test.go

    	helper(t, msg)
    }
    
    func genericHelper[G any](t *testing.T, msg string) {
    	t.Helper()
    	t.Error(msg)
    }
    
    var genericIntHelper = genericHelper[int]
    
    func testTestHelper(t *testing.T) {
    	testHelper(t)
    }
    
    func testHelper(t *testing.T) {
    	// Check combinations of directly and indirectly
    	// calling helper functions.
    	notHelper(t, "0")
    	helper(t, "1")
    	notHelperCallingHelper(t, "2")
    	helperCallingHelper(t, "3")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 17:24:47 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  2. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnitTestClassDetectionIntegrationTest.groovy

                    }
                }
                test.${configureTestFramework}
            """.stripIndent()
    
            and:
            file("src/test/java/TestHelper.java") << """
                public class TestHelper {
                    public void helperMethod(String foo, int bar) {
                        // this method shouldn't cause failure due to API version check
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  3. test/defer.go

    func test1helper() {
    	for i := 0; i < 10; i++ {
    		defer addInt(i)
    	}
    }
    
    func test1() {
    	result = ""
    	test1helper()
    	if result != "9876543210" {
    		fmt.Printf("test1: bad defer result (should be 9876543210): %q\n", result)
    		panic("defer")
    	}
    }
    
    func addDotDotDot(v ...interface{}) { result += fmt.Sprint(v...) }
    
    func test2helper() {
    	for i := 0; i < 10; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 12 18:17:49 UTC 2013
    - 875 bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/cgo_test.go

    func TestFpVar(t *testing.T)                 { testFpVar(t) }
    func TestGCC68255(t *testing.T)              { testGCC68255(t) }
    func TestHandle(t *testing.T)                { testHandle(t) }
    func TestHelpers(t *testing.T)               { testHelpers(t) }
    func TestLibgcc(t *testing.T)                { testLibgcc(t) }
    func TestMultipleAssign(t *testing.T)        { testMultipleAssign(t) }
    func TestNaming(t *testing.T)                { testNaming(t) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  5. pkg/kubelet/kubeletconfig/util/files/files_test.go

    	errs := c.expect(nil, fs, dir)
    	for _, err := range errs {
    		utiltest.ExpectError(t, err, c.err)
    	}
    }
    
    // simple test of the above helper functions
    func TestHelpers(t *testing.T) {
    	// omitting the test.fn means test.err is compared to errors from test.expect
    	cases := []test{
    		{
    			desc:    "regular file",
    			writes:  []file{{name: "foo", data: "bar"}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 07 11:36:13 UTC 2022
    - 11.7K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/test.go

    	{"GoString", C.GoString(C.greeting), greeting},
    	{"GoStringN", C.GoStringN(C.greeting, 5), greeting[:5]},
    	{"GoBytes", C.GoBytes(unsafe.Pointer(C.greeting), 5), []byte(greeting[:5])},
    }
    
    func testHelpers(t *testing.T) {
    	for _, pair := range testPairs {
    		if !reflect.DeepEqual(pair.Got, pair.Want) {
    			t.Errorf("%s: got %#v, want %#v", pair.Name, pair.Got, pair.Want)
    		}
    	}
    }
    
    // basic test cases
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 48.5K bytes
    - Viewed (0)
Back to top