Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APITest ¶
APITest struct for out test framework
func NewAPITest ¶
NewAPITest creates and return new ApiTest initialized with given httptest.Server
func (*APITest) DoTest ¶
func (t *APITest) DoTest(cs TestCase) TestCaseResult
DoTest run a single given test case
func (*APITest) DoTests ¶
func (t *APITest) DoTests(cases []TestCase) []TestCaseResult
DoTests run all given test cases
type TestCase ¶
type TestCase struct { ID string Method string URL string Expected string Match MatchType PostPutContentType string PostPutPayload io.Reader }
TestCase allow to set URL calling parameters
type TestCaseResult ¶
TestCaseResult containd error (if any) of given test case
Click to show internal directories.
Click to hide internal directories.