otter-space-sdk/pkg/models/scrape_history_test.go
SoXX 4312cbdff5
All checks were successful
Gitea Build Check / Build (pull_request) Successful in 3m4s
feat(database): added model
- added model
- added test for model
2024-10-15 11:23:42 +02:00

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