Affected by GO-2022-0390
and 3 other vulnerabilities
GO-2022-0390: Moby (Docker Engine) started with non-empty inheritable Linux process capabilities in github.com/docker/docker
GO-2024-2914: Moby (Docker Engine) is vulnerable to Ambiguous OCI manifest parsing in github.com/docker/docker
GO-2024-3304: Moby Race Condition vulnerability in github.com/moby/moby
GO-2024-3305: Moby Race Condition vulnerability in github.com/moby/moby
package
Version:
v1.13.0
Opens a new window with list of versions in this module.
Published: Jan 17, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package assert contains functions for making assertions in unit tests
-
func Contains(t TestingT, actual, contains string)
-
func DeepEqual(t TestingT, actual, expected interface{})
-
func Equal(t TestingT, actual, expected interface{})
-
func EqualStringSlice(t TestingT, actual, expected []string)
-
func Error(t TestingT, err error, contains string)
-
func NilError(t TestingT, err error)
-
func NotNil(t TestingT, obj interface{})
-
type TestingT
Contains asserts that the string contains a substring, otherwise it fails the
test.
func DeepEqual(t TestingT, actual, expected interface{})
DeepEqual compare the actual value to the expected value and fails the test if
they are not "deeply equal".
func Equal(t TestingT, actual, expected interface{})
Equal compare the actual value to the expected value and fails the test if
they are not equal.
EqualStringSlice compares two slices and fails the test if they do not contain
the same items.
Error asserts that error is not nil, and contains the expected text,
otherwise it fails the test.
NilError asserts that the error is nil, otherwise it fails the test.
func NotNil(t TestingT, obj interface{})
NotNil fails the test if the object is nil
type TestingT interface {
Fatalf(string, ...interface{})
}
TestingT is an interface which defines the methods of testing.T that are
required by this package
Source Files
¶
Click to show internal directories.
Click to hide internal directories.