test

package
v0.0.0-...-30428b5 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

test

test is copied from kitex/internal/test for preparing adding go.mod under bthrift in the future. bthrift will not import kitex other packages, vice versa.

for more details, see README.md of bthrift

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(t testingTB, cond bool, val ...interface{})

Assert asserts cond is true, otherwise fails the test.

func Assertf

func Assertf(t testingTB, cond bool, format string, val ...interface{})

Assertf asserts cond is true, otherwise fails the test.

func DeepEqual

func DeepEqual(t testingTB, a, b interface{})

DeepEqual asserts a and b are deep equal, otherwise fails the test.

func Panic

func Panic(t testingTB, fn func())

Panic asserts fn should panic and recover it, otherwise fails the test.

func PanicAt

func PanicAt(t testingTB, fn func(), expect func(err interface{}) bool)

PanicAt asserts fn should panic and recover it, otherwise fails the test. The expect function can be provided to do further examination of the error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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