SoXX
4312cbdff5
All checks were successful
Gitea Build Check / Build (pull_request) Successful in 3m4s
- added model - added test for model
12 lines
305 B
Go
12 lines
305 B
Go
package models
|
|
|
|
import "testing"
|
|
|
|
func TestScrapeHistory_TableName(t *testing.T) {
|
|
scrapeHistory := ScrapeHistory{}
|
|
expectedTableName := "ScrapeHistory"
|
|
if tableName := scrapeHistory.TableName(); tableName != expectedTableName {
|
|
t.Fatalf("expected %s, but got %s", expectedTableName, tableName)
|
|
}
|
|
}
|