tests

package
v3.0.0-...-576cf03 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2016 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRequest

type MockRequest struct {
	Url    string
	Method string
	Data   map[string]interface{}
}

type MockResponse

type MockResponse struct {
	Status  int         `json:"status"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
	Error   error
}

type MockServer

type MockServer struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer() *MockServer

func (*MockServer) Close

func (self *MockServer) Close()

func (*MockServer) Test

func (self *MockServer) Test(request *MockRequest, equality func(response *MockResponse))

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL