mirror of
https://github.com/docker/cli.git
synced 2026-09-28 02:06:53 -04:00
Move ConvertNetworks to composetransform package.
Signed-off-by: Daniel Nephin <dnephin@docker.com> Upstream-commit: 6b778c96336fe9c0bcfea477092aab8cdfc0c896 Component: engine
This commit is contained in:
@@ -7,6 +7,8 @@ import (
|
||||
"reflect"
|
||||
"runtime"
|
||||
"strings"
|
||||
|
||||
"github.com/davecgh/go-spew/spew"
|
||||
)
|
||||
|
||||
// TestingT is an interface which defines the methods of testing.T that are
|
||||
@@ -49,7 +51,8 @@ func NilError(t TestingT, err error) {
|
||||
// they are not "deeply equal".
|
||||
func DeepEqual(t TestingT, actual, expected interface{}) {
|
||||
if !reflect.DeepEqual(actual, expected) {
|
||||
fatal(t, "Expected '%v' (%T) got '%v' (%T)", expected, expected, actual, actual)
|
||||
fatal(t, "Expected (%T):\n%v\n\ngot (%T):\n%s\n",
|
||||
expected, spew.Sdump(expected), actual, spew.Sdump(actual))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user