Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestEmptyServeMux (0.1 sec)

  1. src/net/http/server_test.go

    		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) {
    	// Verify that a ServeMux with nothing registered
    	// doesn't panic.
    	mux := NewServeMux()
    	var r Request
    	r.Method = "GET"
    	r.Host = "example.com"
    	r.URL = &url.URL{Path: "/"}
    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