code: func PathHandler(t *testing.T, reqPath string, respStatus int, respBody string) http.Handler {
  	var meth, path string
  
  	s := strings.SplitN(reqPath, " ", 2)
  	if len(s) == 1 {
  		t.Fatal("reqPath must be of the form `<METHOD> <PATH>`")
  	}
  
  	meth = s[0]
  	path = s[1]
  
  	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
  		if meth == r.Method && path == r.URL.Path {
  			w.WriteHeader(respStatus)
  			w.Write([]byte(respBody))
  		} else {
  			w.WriteHeader(http.StatusNotFound)
  			t.Errorf("http request => %s %s; want %s %s", r.Method, r.URL.Path, meth, path)
  		}
  	})
  }
docs: // PathHandler will fail if the request doesn't match based on reqPath.
  // If it matches it returns the given response status and body.
  //
  // reqPath should be of the form `<METHOD> <PATH>`. For example: `GET /foo`.