github.com/mattermosttest/mattermost-server/v5@v5.0.0-20200917143240-9dfa12e121f9/model/modeltestlib_test.go (about)

     1  // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
     2  // See LICENSE.txt for license information.
     3  
     4  package model
     5  
     6  import (
     7  	"testing"
     8  
     9  	"github.com/stretchr/testify/assert"
    10  )
    11  
    12  func CheckInt(t *testing.T, got int, expected int) {
    13  	assert.Equal(t, got, expected)
    14  }
    15  
    16  func CheckInt64(t *testing.T, got int64, expected int64) {
    17  	assert.Equal(t, got, expected)
    18  }
    19  
    20  func CheckString(t *testing.T, got string, expected string) {
    21  	assert.Equal(t, got, expected)
    22  }
    23  
    24  func CheckTrue(t *testing.T, test bool) {
    25  	assert.True(t, test)
    26  }
    27  
    28  func CheckFalse(t *testing.T, test bool) {
    29  	assert.False(t, test)
    30  }
    31  
    32  func CheckBool(t *testing.T, got bool, expected bool) {
    33  	assert.Equal(t, got, expected)
    34  }