//go:build test_db_postgres && !test_db_sqlite package firewalldb import ( "testing" "github.com/lightninglabs/lightning-terminal/db" "github.com/lightningnetwork/lnd/clock" ) // isSqlite is true if the test_db_sqlite build flag is set. var isSqlite = false // NewTestDB is a helper function that creates an BBolt database for testing. func NewTestDB(t *testing.T, clock clock.Clock) FirewallDBs { return createStore(t, db.NewTestPostgresDB(t).BaseDB, clock) } // NewTestDBFromPath is a helper function that creates a new BoltStore with a // connection to an existing BBolt database for testing. func NewTestDBFromPath(t *testing.T, _ string, clock clock.Clock) FirewallDBs { return createStore(t, db.NewTestPostgresDB(t).BaseDB, clock) }