mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-07-29 19:08:54 +00:00
17 lines
452 B
Go
17 lines
452 B
Go
package flags
|
|
|
|
import "flag"
|
|
|
|
var (
|
|
// Database enables database-integration tests when the `-database` flag is passed to `go test`.
|
|
Database bool
|
|
|
|
// Filesystem enables filesystem-integration tests when the `-filesystem` flag is passed to `go test`.
|
|
Filesystem bool
|
|
)
|
|
|
|
func init() {
|
|
flag.BoolVar(&Database, "database", false, "run database integration tests")
|
|
flag.BoolVar(&Filesystem, "filesystem", false, "run filesystem integration tests")
|
|
}
|