Documentation ¶
Index ¶
- Variables
- func AssertJSONEquals(t *testing.T, m1 map[string]interface{}, m2 map[string]interface{})
- func FixturePath(req *http.Request) (int, string, error)
- func Keys() (string, string)
- func LogObj(t *testing.T, obj interface{})
- func Main(m *testing.M)
- func Require(t *testing.T, env string)
- type FixturesTransport
- type RecorderTransport
- type TestClient
Constants ¶
This section is empty.
Variables ¶
View Source
var FixtureBasePath = filepath.Join( build.Default.GOPATH, "src", "github.com/omise/omise-go", "testdata/fixtures", )
Functions ¶
func AssertJSONEquals ¶
Types ¶
type FixturesTransport ¶
type FixturesTransport struct {
// contains filtered or unexported fields
}
func NewFixturesTransport ¶
func NewFixturesTransport() (*FixturesTransport, error)
type RecorderTransport ¶
type RecorderTransport struct {
// contains filtered or unexported fields
}
func NewRecorderTransport ¶
func NewRecorderTransport() (*RecorderTransport, error)
type TestClient ¶
func NewFixedClient ¶
func NewFixedClient(t *testing.T) *TestClient
func NewTestClient ¶
func NewTestClient(t *testing.T) *TestClient
func (*TestClient) MustDo ¶
func (tc *TestClient) MustDo(result interface{}, op internal.Operation)
Click to show internal directories.
Click to hide internal directories.