test

package
v6.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrWrongResponse will be thrown when the api's response does not match what we expect
	ErrWrongResponse = errors.New("Test api response doesn't equal 'pong'")
)

Functions

This section is empty.

Types

type APITest

type APITest struct {
	// response string of the api-test endpoint
	Response string `json:"ping"`
}

APITest struct contains a response from the server

type Repository

type Repository repository.RestRepository

Repository can be used to test the api, do a simple ping and retrieve pong from the server

func (*Repository) Test

func (r *Repository) Test() error

Test will execute an api test and respond with an error if the test failed

Jump to

Keyboard shortcuts

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