12 lines
290 B
Go
12 lines
290 B
Go
|
package models
|
||
|
|
||
|
import "testing"
|
||
|
|
||
|
func TestPostReport_TableName(t *testing.T) {
|
||
|
postReport := PostReport{}
|
||
|
expectedTableName := "PostReport"
|
||
|
if tableName := postReport.TableName(); tableName != expectedTableName {
|
||
|
t.Fatalf("expected %s, but got %s", expectedTableName, tableName)
|
||
|
}
|
||
|
}
|