package testutil

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

Index

Functions

func ErrorContains

func ErrorContains(t require.TestingT, err error, expectedError string, msgAndArgs ...interface{})

ErrorContains checks that the error is not nil, and contains the expected substring.

Source Files

helpers.go

Version
v17.10.0-ce-rc1+incompatible
Published
Oct 4, 2017
Platform
linux/amd64
Imports
2 packages
Last checked
4 minutes ago

Tools for package owners.