package testutil

import "github.com/docker/cli/components/cli/internal/test/testutil"

Index

Functions

func ErrorContains

func ErrorContains(t require.TestingT, err error, expectedError string)

ErrorContains checks that the error is not nil, and contains the expected substring. TODO: replace with testify if https://github.com/stretchr/testify/pull/486 is accepted.

Source Files

assert.go

Version
v17.12.0-ce-rc3+incompatible
Published
Dec 14, 2017
Platform
js/wasm
Imports
2 packages
Last checked
1 minute ago

Tools for package owners.