testutils

package
v3.2.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func After

func After[S ~[]E, E comparable](t *testing.T, sl S, a, b E)

After asserts that element a is ordered after element b in the slice sl.

func SliceIdx

func SliceIdx[S ~[]E, E comparable](t *testing.T, sl S, v E) int

SliceIdx returns the index of the element v in the slice sl. If the element is not found t.Fatal is called.

Types

This section is empty.

Jump to

Keyboard shortcuts

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