Discover Packages
github.com/APACHE/trafficcontrol
traffic_ops
testing
api
assert
package
Version:
v7.0.1+incompatible
Opens a new window with list of versions in this module.
Published: Aug 25, 2022
License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: ? 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.
Opens a new window with list of known importers.
Jump to ...
Documentation
Index
Constants
Variables
Functions
Equal(t, a, b, msgAndArgs)
Error(t, err, msgAndArgs)
Exactly(t, a, b, msgAndArgs)
GreaterOrEqual(t, a, b, msgAndArgs)
NoError(t, err, msgAndArgs)
NotEqual(t, a, b, msgAndArgs)
NotNil(t, a, msgAndArgs)
RequireEqual(t, a, b, msgAndArgs)
RequireGreaterOrEqual(t, a, b, msgAndArgs)
RequireNoError(t, err, msgAndArgs)
RequireNotEqual(t, a, b, msgAndArgs)
RequireNotNil(t, a, msgAndArgs)
Types
Source Files
Documentation
Documentation
¶
func Equal(t *testing.T, a, b interface{}, msgAndArgs ...interface{}) bool
func Error(t *testing.T, err error, msgAndArgs ...interface{}) bool
func Exactly(t *testing.T, a, b interface{}, msgAndArgs ...interface{}) bool
func GreaterOrEqual(t *testing.T, a, b int, msgAndArgs ...interface{}) bool
func NoError(t *testing.T, err error, msgAndArgs ...interface{}) bool
func NotEqual(t *testing.T, a, b interface{}, msgAndArgs ...interface{}) bool
func NotNil(t *testing.T, a interface{}, msgAndArgs ...interface{}) bool
func RequireEqual(t *testing.T, a, b interface{}, msgAndArgs ...interface{})
func RequireGreaterOrEqual(t *testing.T, a, b int, msgAndArgs ...interface{})
func RequireNoError(t *testing.T, err error, msgAndArgs ...interface{})
func RequireNotEqual(t *testing.T, a, b interface{}, msgAndArgs ...interface{})
func RequireNotNil(t *testing.T, a interface{}, msgAndArgs ...interface{})
func Equal(t *testing .T , a, b interface{}, msgAndArgs ...interface{}) bool
Equal asserts that two objects are equal.
Error asserts that a function returned an error (i.e. not `nil`).
func Exactly(t *testing .T , a, b interface{}, msgAndArgs ...interface{}) bool
Exactly asserts that two objects are equal in value and type.
func GreaterOrEqual(t *testing .T , a, b int , msgAndArgs ...interface{}) bool
GreaterOrEqual asserts that the first element is greater than or equal to the second
NoError asserts that a function returned no error (i.e. `nil`).
func NotEqual(t *testing .T , a, b interface{}, msgAndArgs ...interface{}) bool
NotEqual asserts that two objects are NOT equal.
func NotNil(t *testing .T , a interface{}, msgAndArgs ...interface{}) bool
NotNil asserts that the specified object is not nil.
func RequireEqual(t *testing .T , a, b interface{}, msgAndArgs ...interface{})
RequireEqual asserts that two objects are equal.
It marks the test as failed and stops execution.
func RequireGreaterOrEqual(t *testing .T , a, b int , msgAndArgs ...interface{})
RequireGreaterOrEqual asserts that the first element is greater than or equal to the second
It marks the test as failed and stops execution.
func RequireNoError(t *testing .T , err error , msgAndArgs ...interface{})
RequireNoError asserts that a function returned no error (i.e. `nil`).
It marks the test as failed and stops execution.
func RequireNotEqual(t *testing .T , a, b interface{}, msgAndArgs ...interface{})
RequireNotEqual asserts that two objects are NOT equal.
It marks the test as failed and stops execution.
func RequireNotNil(t *testing .T , a interface{}, msgAndArgs ...interface{})
RequireNotNil asserts that the specified object is not nil.
It marks the test as failed and stops execution.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.