View definition

(*TestSuite).NewTestRequest

Defined in github.com/revel/revel/testing/testsuite.go

Description

NewTestRequest returns an initialized *TestRequest. It is used for extending testsuite package making it possibe to define own methods. Example:

type MyTestSuite struct {
	testing.TestSuite
}

func (t *MyTestSuite) PutFormCustom(...) {
	req := http.NewRequest(...)
	...
	return t.NewTestRequest(req)
}

NewTestRequest is referenced in 1 repository

github.com/revel/revel