Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testTestHelper (0.19 sec)

  1. src/testing/helperfuncs_test.go

    	t.Helper()
    	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")
    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. src/testing/helper_test.go

    package testing_test
    
    import (
    	"internal/testenv"
    	"os"
    	"regexp"
    	"strings"
    	"testing"
    )
    
    func TestTBHelper(t *testing.T) {
    	if os.Getenv("GO_WANT_HELPER_PROCESS") == "1" {
    		testTestHelper(t)
    
    		// Check that calling Helper from inside a top-level test function
    		// has no effect.
    		t.Helper()
    		t.Error("8")
    		return
    	}
    
    	testenv.MustHaveExec(t)
    	t.Parallel()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 17:24:47 UTC 2023
    - 2.6K bytes
    - Viewed (0)
Back to top