api

package
v0.0.0-...-a509fbf Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package api provides testing facilities for the api package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiTest

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

ApiTest simulates an http API

func NewApiTest

func NewApiTest(t *testing.T) *ApiTest

func (*ApiTest) App

func (apiTest *ApiTest) App() *app.App

func (*ApiTest) Close

func (apiTest *ApiTest) Close()

func (*ApiTest) ServeHTTP

func (apiTest *ApiTest) ServeHTTP(req *http.Request) *httptest.ResponseRecorder

Jump to

Keyboard shortcuts

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