testhelper

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestDataDir = "../testhelper/test_data"
)

Variables

View Source
var TestDBFiles = map[string]string{
	constants.DBTypeCity:    filepath.Join(TestDataDir, "GeoLite2-City.tar.gz"),
	constants.DBTypeCountry: filepath.Join(TestDataDir, "GeoLite2-Country.tar.gz"),
	constants.DBTypeASN:     filepath.Join(TestDataDir, "GeoLite2-ASN.tar.gz"),
}
View Source
var TestDBSHA256Files = map[string]string{
	constants.DBTypeCity:    filepath.Join(TestDataDir, "GeoLite2-City.tar.gz.sha256"),
	constants.DBTypeCountry: filepath.Join(TestDataDir, "GeoLite2-Country.tar.gz.sha256"),
	constants.DBTypeASN:     filepath.Join(TestDataDir, "GeoLite2-ASN.tar.gz.sha256"),
}

Functions

func LoadTestDB

func LoadTestDB() error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL