mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Cleanup errorOut remove errorOut functions
Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
This commit is contained in:
parent
66ac7420a9
commit
5af7facf18
1 changed files with 0 additions and 13 deletions
|
@ -13,7 +13,6 @@ import (
|
|||
"reflect"
|
||||
"strings"
|
||||
"syscall"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar"
|
||||
|
@ -113,18 +112,6 @@ func stripTrailingCharacters(target string) string {
|
|||
return target
|
||||
}
|
||||
|
||||
func errorOut(err error, t *testing.T, message string) {
|
||||
if err != nil {
|
||||
t.Fatal(message)
|
||||
}
|
||||
}
|
||||
|
||||
func errorOutOnNonNilError(err error, t *testing.T, message string) {
|
||||
if err == nil {
|
||||
t.Fatalf(message)
|
||||
}
|
||||
}
|
||||
|
||||
func nLines(s string) int {
|
||||
return strings.Count(s, "\n")
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue