fake

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RegistrationToken = "fake-registration-token"

	RunnersListBody = `` /* 178-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func NewServer

func NewServer(opts ...Option) *httptest.Server

NewServer creates a fake server for running unit tests

Types

type FixedResponse added in v0.6.0

type FixedResponse struct {
	Status int
	Body   string
}

type FixedResponses added in v0.6.0

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

type Option added in v0.6.0

type Option func(responses *FixedResponses)

func WithListRepositoryWorkflowRunsResponse added in v0.6.0

func WithListRepositoryWorkflowRunsResponse(status int, body string) Option

Jump to

Keyboard shortcuts

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