test

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestingCaddy

func NewTestingCaddy(configurationName string) io.Closer

NewTestingCaddy creates a new instance of a caddy with a testing resource for testing purposes.

func TestingPathOfResource

func TestingPathOfResource(name string) string

TestingPathOfResource returns a path for a testing resource by resources/test/<name>

func TestingResourceContentOf

func TestingResourceContentOf(name string) []byte

TestingResourceContentOf load the content of a named testing resource from resources/test/<name>

func TestingResourceOf

func TestingResourceOf(name string) *os.File

TestingResourceOf load testing resource as stream from resources/test/<name>

Types

type TestingFcgiServer

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

TestingFcgiServer represents a http server for testing purposes

func NewTestingFcgiServer

func NewTestingFcgiServer(port int) *TestingFcgiServer

NewTestingFcgiServer creates a new http server for testing purposes

func (*TestingFcgiServer) Close

func (instance *TestingFcgiServer) Close()

Close closes the testing server graceful.

type TestingHttpServer

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

TestingHttpServer represents a http server for testing purposes

func NewTestingHttpServer

func NewTestingHttpServer(port int, gzipEnabled bool) *TestingHttpServer

NewTestingHttpServer creates a new http server for testing purposes

func (*TestingHttpServer) Close

func (instance *TestingHttpServer) Close()

Close closes the testing server graceful.

Jump to

Keyboard shortcuts

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