test

package
v0.14.4 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2019 License: MIT Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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