test

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2020 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callback

type Callback func(w http.ResponseWriter, filename string, repo string, arch string)

Callback is the function to use the HTTP Server

type Server

type Server struct {
	URL string
	// contains filtered or unexported fields
}

Server is a simple local HTTP server listening on the given URL

func NewServer

func NewServer(t *testing.T, f Callback) *Server

NewServer creates a server used for testing

func (*Server) StopServer

func (s *Server) StopServer(t *testing.T)

StopServer stops the server

Jump to

Keyboard shortcuts

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