2019-11-29 06:59:40 -05:00
|
|
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
|
|
|
// See LICENSE.txt for license information.
|
2017-04-20 09:58:54 -04:00
|
|
|
|
|
|
|
|
package model
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"testing"
|
2019-10-11 05:58:19 -04:00
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
2017-04-20 09:58:54 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func CheckInt(t *testing.T, got int, expected int) {
|
2019-10-11 05:58:19 -04:00
|
|
|
assert.Equal(t, got, expected)
|
2017-04-20 09:58:54 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func CheckString(t *testing.T, got string, expected string) {
|
2019-10-11 05:58:19 -04:00
|
|
|
assert.Equal(t, got, expected)
|
2017-04-20 09:58:54 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func CheckTrue(t *testing.T, test bool) {
|
2019-10-11 05:58:19 -04:00
|
|
|
assert.True(t, test)
|
2017-04-20 09:58:54 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func CheckFalse(t *testing.T, test bool) {
|
2019-10-11 05:58:19 -04:00
|
|
|
assert.False(t, test)
|
2017-04-20 09:58:54 -04:00
|
|
|
}
|