Documentation ¶
Overview ¶
package picker provided structures and method to manage injected variable system for Godog.
It allows an user to pick value into a store and inject them in steps through a variable replacement.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrUnmatched = errors.New("some conditions are not met")
ErrUnmatched indicates that some expected assertions are not met.
Functions ¶
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB provides a structure to manage postgres databases.
func Database ¶
Database initializes a DB instance for postgres. It will persist instance using provided name to be injectable through {{pg.name}} in gherkin steps. Providing an empty picker does not impact initialization. It will just not picked the instance. You can always call DB.Persist to save database instance in a picker store.
func (DB) AssertData ¶
AssertData asserts provided data from godog table matches provided conditions in database.