test

package
v0.0.0-...-87999fc Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestClient

func NewTestClient() *tfl.Client

NewTestClient creates a new client for integration tests.

func RequireBikePointsEqual

func RequireBikePointsEqual(t *testing.T, expectedBikePoint *tfl.Place, bikePoint *tfl.Place)

RequireBikePointsEqual ensures that two bike points are equal. This uses a shallow comparison, leaving out additional properties which have modification timestamps and would cause tests to be more brittle.

func SkipIfShort

func SkipIfShort(t *testing.T)

SkipIfShort can be used to skip a test if the tests are run with the `-short` flag.

Types

This section is empty.

Jump to

Keyboard shortcuts

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