Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for gotch (0.09 sec)

  1. src/cmd/compile/internal/noder/lex_test.go

    		}...)
    
    	}
    
    	var p noder
    	var nopos syntax.Pos
    	for _, tt := range tests {
    
    		p.err = make(chan syntax.Error)
    		gotch := make(chan [][]string, 1)
    		go func() {
    			p.pragcgobuf = nil
    			p.pragcgo(nopos, tt.in)
    			if p.pragcgobuf != nil {
    				gotch <- p.pragcgobuf
    			}
    		}()
    
    		select {
    		case e := <-p.err:
    			want := tt.want[0]
    			if e.Error() != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:39:06 UTC 2020
    - 3.6K bytes
    - Viewed (0)
  2. src/net/http/server_test.go

    		{"CONNECT", "/bar", `&http.redirectHandler{url:"/bar/", code:301}`},
    	} {
    		var r Request
    		r.Method = test.method
    		r.Host = "example.com"
    		r.URL = &url.URL{Path: test.path}
    		gotH, _, _, _ := mux.findHandler(&r)
    		got := fmt.Sprintf("%#v", gotH)
    		if got != test.wantHandler {
    			t.Errorf("%s %q: got %q, want %q", test.method, test.path, got, test.wantHandler)
    		}
    	}
    }
    
    func TestEmptyServeMux(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 13 13:54:22 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top