27 lines
497 B
Go
27 lines
497 B
Go
package model
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
func TestNote_BeforeCreate_Cov1(t *testing.T) {
|
|
n := &Note{}
|
|
_ = n.BeforeCreate(&gorm.DB{})
|
|
}
|
|
|
|
func TestReportingEventsRollup_TableName_Cov1(t *testing.T) {
|
|
r := ReportingEventsRollup{}
|
|
if r.TableName() != "reporting_events_rollups" {
|
|
t.Error("unexpected table name")
|
|
}
|
|
}
|
|
|
|
func TestSlaPolicyInbox_TableName_Cov1(t *testing.T) {
|
|
s := SlaPolicyInbox{}
|
|
if s.TableName() != "sla_policy_inboxes" {
|
|
t.Error("unexpected table name")
|
|
}
|
|
}
|