fake

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Fail bool
	// contains filtered or unexported fields
}

Server runs a demographics test fake

func New

func New(filename string) (server *Server)

New creates a new test fake. If filename is left blank, the standard test file is used

func (*Server) Close

func (server *Server) Close()

Close closes the underlying httptest fake

func (*Server) URL

func (server *Server) URL() string

URL returns the URL of the underling httptest fake

Jump to

Keyboard shortcuts

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