Documentation
¶
Index ¶
- Variables
- func ExtractProcfile(ctx context.Context, img image.Image, w io.Writer) ([]byte, error)
- func NewEmpire(t testing.TB) *empire.Empire
- func NewServer(t testing.TB, e *empire.Empire) *httptest.Server
- func NewTestServer(t testing.TB, e *empire.Empire, opts server.Options) *httptest.Server
- func Run(m *testing.M)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DatabaseURL is a connection string for the postgres database to use // during integration tests. DatabaseURL = "postgres://localhost/empire?sslmode=disable" )
Functions ¶
func ExtractProcfile ¶ added in v0.10.0
ExtractProcfile extracts a fake Procfile.
func NewEmpire ¶
NewEmpire returns a new Empire instance suitable for testing. It ensures that the database is clean before returning.
func NewServer ¶
NewServer builds a new empire.Empire instance and returns an httptest.Server running the empire API.
func NewTestServer ¶ added in v0.10.1
NewTestServer returns a new httptest.Server for testing empire's http server.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.