Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestAnyHijacking_Check (0.18 sec)

  1. src/cmd/compile/internal/types2/api_test.go

    	if got != want {
    		t.Errorf("A.Rhs = %s, want %s", got, want)
    	}
    }
    
    // Test the hijacking described of "any" described in golang/go#66921, for
    // (concurrent) type checking.
    func TestAnyHijacking_Check(t *testing.T) {
    	for _, enableAlias := range []bool{false, true} {
    		t.Run(fmt.Sprintf("EnableAlias=%t", enableAlias), func(t *testing.T) {
    			var wg sync.WaitGroup
    			for i := 0; i < 10; i++ {
    				wg.Add(1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  2. src/go/types/api_test.go

    	if got != want {
    		t.Errorf("A.Rhs = %s, want %s", got, want)
    	}
    }
    
    // Test the hijacking described of "any" described in golang/go#66921, for type
    // checking.
    func TestAnyHijacking_Check(t *testing.T) {
    	for _, enableAlias := range []bool{false, true} {
    		t.Run(fmt.Sprintf("EnableAlias=%t", enableAlias), func(t *testing.T) {
    			setGotypesalias(t, enableAlias)
    			var wg sync.WaitGroup
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
Back to top