mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-05 02:51:30 +02:00
wip
This commit is contained in:
@@ -68,6 +68,12 @@ func CheckError(t *testing.T, shouldErr bool, err error) {
|
||||
}
|
||||
}
|
||||
|
||||
func CheckNoError(t *testing.T, err error) {
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
}
|
||||
|
||||
func checkErr(shouldErr bool, err error) error {
|
||||
if err == nil && shouldErr {
|
||||
return fmt.Errorf("Expected error, but returned none")
|
||||
|
||||
Reference in New Issue
Block a user