Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for LookupFieldOrMethod (0.25 sec)

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

    }
    
    func TestLookupFieldOrMethodOnNil(t *testing.T) {
    	// LookupFieldOrMethod on a nil type is expected to produce a run-time panic.
    	defer func() {
    		const want = "LookupFieldOrMethod on nil type"
    		p := recover()
    		if s, ok := p.(string); !ok || s != want {
    			t.Fatalf("got %v, want %s", p, want)
    		}
    	}()
    	LookupFieldOrMethod(nil, false, nil, "")
    }
    
    func TestLookupFieldOrMethod(t *testing.T) {
    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

    }
    
    func TestLookupFieldOrMethodOnNil(t *testing.T) {
    	// LookupFieldOrMethod on a nil type is expected to produce a run-time panic.
    	defer func() {
    		const want = "LookupFieldOrMethod on nil type"
    		p := recover()
    		if s, ok := p.(string); !ok || s != want {
    			t.Fatalf("got %v, want %s", p, want)
    		}
    	}()
    	LookupFieldOrMethod(nil, false, nil, "")
    }
    
    func TestLookupFieldOrMethod(t *testing.T) {
    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