Call it mock TestResponse

This commit is contained in:
Asim 2016-04-06 18:38:33 +01:00
parent 9d060bf6e1
commit 7739e23401

View File

@ -9,13 +9,13 @@ import (
)
func TestClient(t *testing.T) {
type TestRequest struct {
type TestResponse struct {
Param string
}
response := []MockResponse{
{Method: "Foo.Bar", Response: map[string]interface{}{"foo": "bar"}},
{Method: "Foo.Struct", Response: &TestRequest{Param: "aparam"}},
{Method: "Foo.Struct", Response: &TestResponse{Param: "aparam"}},
{Method: "Foo.Fail", Error: errors.InternalServerError("go.mock", "failed")},
}