tassert

package
v1.3.19 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package tassert provides common asserts for tests

  • Copyright (c) 2018-2021, 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 Errorf

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

func Fatalf

func Fatalf(tb testing.TB, cond bool, msg 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