func newTestRequest(method, path string, body io.Reader, matchedPath string) (*http.Request, error) {
	r, err := http.NewRequest(method, path, body)
	if err != nil {
		return nil, err
	}
	r = SetDetails(r, matchedPath, map[string]string{})
	return r, nil
}
// newTestRequest creates a new *http.Request, that has the kit framework request details
// inside the requests context. This request should be used for all tests to mimic the
// real execution path.
newTestRequest creates a new *http.Request, that has the kit framework request details
inside the requests context. This request should be used for all tests to mimic the
real execution path.
// newTestRequest creates a new * http . Request that has the kit framework request details // inside the requests context . This request should be used for all tests to mimic the // real execution path .
func newTestRequest(method, path string, body io.Reader, matchedPath string) (*http.Request, error) {
	r, err := http.NewRequest(method, path, body)
	if err != nil {
		return nil, err
	}
	r = SetDetails(r, matchedPath, map[string]string{})
	return r, nil
}
func newTestRequest ( method , path string , body io . Reader , matchedPath string ) ( * http . Request , error ) { r , err := http . NewRequest ( method , path , body ) if err != nil { return nil , err } r = SetDetails ( r , matchedPath , map [ string ] string { } ) return r , nil }
newTestRequest creates a new *http.Request, that has the kit framework request details
inside the requests context.
newTestRequest creates a new * http . Request that has the kit framework request details inside the requests context .