Documentation ¶
Index ¶
- Constants
- func Errorf(t *testing.T, txt string, a ...interface{})
- func Fatalf(t *testing.T, txt string, a ...interface{})
- func Given(t *testing.T, txt string)
- func GivenF(t *testing.T, txt string, a ...interface{})
- func Successf(t *testing.T, txt string, a ...interface{})
- func WhenF(t *testing.T, txt string, a ...interface{})
- type Server
Constants ¶
View Source
const TestChannelPoint1 = TestFundingTransactionHash1 + ":3"
View Source
const TestChannelPoint2 = TestFundingTransactionHash2 + ":3"
View Source
const TestChannelPoint3 = TestFundingTransactionHash3 + ":3"
View Source
const TestChannelPoint4 = TestFundingTransactionHash4 + ":3"
View Source
const TestChannelPoint5_NOTINDB = TestFundingTransactionHash5_NOTINDB + ":3"
View Source
const TestFundingTransactionHash1 = "0101010101010101010101010101010101010101010101010101010101010101"
View Source
const TestFundingTransactionHash2 = "0101010101010101010101010101010101010101010101010101010101010102"
View Source
const TestFundingTransactionHash3 = "0101010101010101010101010101010101010101010101010101010101010103"
View Source
const TestFundingTransactionHash4 = "0101010101010101010101010101010101010101010101010101010101010104"
View Source
const TestFundingTransactionHash5_NOTINDB = "0101010101010101010101010101010101010101010101010101010101010105"
View Source
const TestPublicKey1 = "PublicKey1"
View Source
const TestPublicKey2 = "PublicKey2"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
A Server represents a running PostgreSQL server.
func InitTestDBConn ¶
InitTestDBConn creates a connection to the postgres user and creates the Server struct. This is used to create all other test databases and should be executed once at the top of a test file (in the Main function).
func (*Server) Cleanup ¶
Cleanup closes the connection to the connection to the postgres server used to create new test databases. This should only be used once for each test file.
func (*Server) NewTestDatabase ¶
NewTestDatabase opens a connection to a freshly created database on the server.
Click to show internal directories.
Click to hide internal directories.