Convert assert.Check with

git grep -l -P '^\s+assert\.Check\(t, ' | \
    xargs perl -pi -e 's/^(\s+assert)\.Check(\(t, (?!is).*(\.Execute\(|\.Set\(|\.Write\(|\.Close\(|\.Untar\(|\.WriteFile\(|Validate\().*\)$)/\1.NilError\2/'

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 078cbc9c4b
Component: cli
This commit is contained in:
Daniel Nephin
2018-03-06 15:13:00 -05:00
parent dd7eb35a89
commit b52b42c8db
70 changed files with 183 additions and 183 deletions

View File

@ -18,7 +18,7 @@ func TestValidate(t *testing.T) {
},
}
assert.Check(t, Validate(config, "3.0"))
assert.NilError(t, Validate(config, "3.0"))
}
func TestValidateUndefinedTopLevelOption(t *testing.T) {
@ -99,7 +99,7 @@ func TestValidatePlacement(t *testing.T) {
},
}
assert.Check(t, Validate(config, "3.3"))
assert.NilError(t, Validate(config, "3.3"))
}
func TestValidateIsolation(t *testing.T) {
@ -112,5 +112,5 @@ func TestValidateIsolation(t *testing.T) {
},
},
}
assert.Check(t, Validate(config, "3.5"))
assert.NilError(t, Validate(config, "3.5"))
}