diff options
Diffstat (limited to 'model/modeltestlib.go')
-rw-r--r-- | model/modeltestlib.go | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/model/modeltestlib.go b/model/modeltestlib.go deleted file mode 100644 index 2734b3ead..000000000 --- a/model/modeltestlib.go +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) 2017 Mattermost, Inc. All Rights Reserved. -// See License.txt for license information. - -package model - -import ( - "runtime/debug" - "testing" -) - -func CheckInt(t *testing.T, got int, expected int) { - if got != expected { - debug.PrintStack() - t.Fatalf("Got: %v, Expected: %v", got, expected) - } -} - -func CheckInt64(t *testing.T, got int64, expected int64) { - if got != expected { - debug.PrintStack() - t.Fatalf("Got: %v, Expected: %v", got, expected) - } -} - -func CheckString(t *testing.T, got string, expected string) { - if got != expected { - debug.PrintStack() - t.Fatalf("Got: %v, Expected: %v", got, expected) - } -} - -func CheckTrue(t *testing.T, test bool) { - if !test { - debug.PrintStack() - t.Fatal("Expected true") - } -} - -func CheckFalse(t *testing.T, test bool) { - if test { - debug.PrintStack() - t.Fatal("Expected true") - } -} - -func CheckBool(t *testing.T, got bool, expected bool) { - if got != expected { - debug.PrintStack() - t.Fatalf("Got: %v, Expected: %v", got, expected) - } -} |