Discover Packages
github.com/cloudwego/kitex
pkg
protocol
bthrift
internal
test
package
Version:
v0.11.3-generic-streaming
Opens a new window with list of versions in this module.
Published: Nov 18, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Jump to ...
README
Documentation
Index
Constants
Variables
Functions
Assert(t, cond, val)
Assertf(t, cond, format, val)
DeepEqual(t, a, b)
Panic(t, fn)
PanicAt(t, fn, expect)
Types
Source Files
README Documentation Source Files test Index Constants Variables Functions Types Assert(t, cond, val) Assertf(t, cond, format, val) DeepEqual(t, a, b) Panic(t, fn) PanicAt(t, fn, expect)
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
Expand ▾
Collapse ▴
Documentation
¶
func Assert(t testingTB, cond bool, val ...interface{})
func Assertf(t testingTB, cond bool, format string, val ...interface{})
func DeepEqual(t testingTB, a, b interface{})
func Panic(t testingTB, fn func())
func PanicAt(t testingTB, fn func(), expect func(err interface{}) bool)
func Assert(t testingTB, cond bool , val ...interface{})
Assert asserts cond is true, otherwise fails the test.
func Assertf(t testingTB, cond bool , format string , val ...interface{})
Assertf asserts cond is true, otherwise fails the test.
func DeepEqual(t testingTB, a, b interface{})
DeepEqual asserts a and b are deep equal, otherwise fails the test.
func Panic(t testingTB, fn func())
Panic asserts fn should panic and recover it, otherwise fails the test.
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.