test_utils

package
v0.0.0-...-1513131 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEqual

func AssertEqual(t *testing.T, expected, actual interface{}, message string)

AssertEqual checks if two values are equal and reports an error if not.

func AssertTrue

func AssertTrue(t *testing.T, b bool, message string)

func GiveCrossingLine

func GiveCrossingLine(line []float64, length int, direction IntersectionDirection) []float64

func NewMockMetricsCollector

func NewMockMetricsCollector(t *testing.T) *mock_monitor.MockMonitoring

Types

type IntersectionDirection

type IntersectionDirection string
const (
	Above IntersectionDirection = "above"
	Below IntersectionDirection = "below"
)

Jump to

Keyboard shortcuts

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