tassert

package
v1.3.31 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package tassert provides common asserts for tests

  • Copyright (c) 2018-2025, NVIDIA CORPORATION. All rights reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckError

func CheckError(tb testing.TB, err error)

func CheckFatal

func CheckFatal(tb testing.TB, err error)

func DoAndCheckResp

func DoAndCheckResp(tb testing.TB, client *http.Client, req *http.Request, statusCode ...int)

func Error added in v1.3.24

func Error(tb testing.TB, cond bool, msg string)

func Errorf

func Errorf(tb testing.TB, cond bool, format string, args ...any)

func Fatal added in v1.3.24

func Fatal(tb testing.TB, cond bool, msg string)

func Fatalf

func Fatalf(tb testing.TB, cond bool, format string, args ...any)

func SelectErr

func SelectErr(tb testing.TB, errCh chan error, verb string, errIsFatal bool)

TODO: Make this a range over `errCh` post closing it ?

Types

This section is empty.

Jump to

Keyboard shortcuts

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