slicetest

package
v1.89.2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package slicetest provides utilities for testing slices.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindOrFail

func FindOrFail[T any](t *testing.T, s []T, f func(T) bool) T

FindOrFail will find an element in a slice or fail the test.

Types

This section is empty.

Jump to

Keyboard shortcuts

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