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) } }