test

package
v6.7.2 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoOpLogger restql.Logger = noOpLogger{}

Functions

func Equal

func Equal(t *testing.T, got, expected interface{})

func NotEqual

func NotEqual(t *testing.T, got, expected interface{})

func Unmarshal

func Unmarshal(body string) interface{}

func VerifyError

func VerifyError(t *testing.T, err error)

Types

type MockServer

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

func NewMockServer

func NewMockServer(port int) *MockServer

func (*MockServer) Mux

func (ms *MockServer) Mux() *http.ServeMux

func (*MockServer) Server

func (ms *MockServer) Server() *httptest.Server

func (*MockServer) Start

func (ms *MockServer) Start()

func (*MockServer) Teardown

func (ms *MockServer) Teardown()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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