Documentation
¶
Index ¶
Constants ¶
View Source
const (
TestDataDir = "../testhelper/test_data"
)
Variables ¶
View Source
var TestDBFiles = []string{ filepath.Join(TestDataDir, "GeoLite2-City.tar.gz"), filepath.Join(TestDataDir, "GeoLite2-Country.tar.gz"), filepath.Join(TestDataDir, "GeoLite2-ASN.tar.gz"), }
View Source
var TestDBSHA256Files = []string{ filepath.Join(TestDataDir, "GeoLite2-City.tar.gz.sha256"), filepath.Join(TestDataDir, "GeoLite2-Country.tar.gz.sha256"), filepath.Join(TestDataDir, "GeoLite2-ASN.tar.gz.sha256"), }
Functions ¶
func LoadTestDB ¶
func LoadTestDB() error
func PopulateSeeds ¶
PopulateSeeds populates the test database with seed data from SQL files. This data is used by tests and provides a consistent baseline for testing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.