Documentation ¶
Index ¶
- func AssertError(t testing.TB, err error, expected string)
- func AssertErrorAndCode(t testing.TB, err error, code string, msg string)
- func AssertErrorCode(t testing.TB, err error, expected string)
- func BudgetAuthContext(t testing.TB, userID beans.ID, budget *beans.Budget) *beans.BudgetAuthContext
- func HTTP(t testing.TB, f http.HandlerFunc, user *beans.User, budget *beans.Budget, ...) string
- func HTTPWithOptions(t testing.TB, f http.HandlerFunc, options *HTTPOptions, user *beans.User, ...) string
- func MakeAccount(tb testing.TB, pool *pgxpool.Pool, name string, budgetID beans.ID) *beans.Account
- func MakeBudget(tb testing.TB, pool *pgxpool.Pool, name string, userID beans.ID) *beans.Budget
- func MakeCategory(tb testing.TB, pool *pgxpool.Pool, name string, groupID beans.ID, ...) *beans.Category
- func MakeCategoryGroup(tb testing.TB, pool *pgxpool.Pool, name string, budgetID beans.ID) *beans.CategoryGroup
- func MakeIncomeCategoryGroup(tb testing.TB, pool *pgxpool.Pool, name string, budgetID beans.ID) *beans.CategoryGroup
- func MakeMonth(tb testing.TB, pool *pgxpool.Pool, budgetID beans.ID, date beans.Date) *beans.Month
- func MakeMonthCategory(tb testing.TB, pool *pgxpool.Pool, monthID beans.ID, categoryID beans.ID, ...) *beans.MonthCategory
- func MakePayee(tb testing.TB, pool *pgxpool.Pool, name string, budgetID beans.ID) *beans.Payee
- func MakeUser(tb testing.TB, pool *pgxpool.Pool, username string) beans.ID
- func MustExec(t testing.TB, pool *pgxpool.Pool, sql string)
- func MustRollback(t testing.TB, tx beans.Tx)
- func NewDate(t testing.TB, date string) beans.Date
- func NewEmptyID() beans.ID
- func NewMonthDate(t testing.TB, date string) beans.MonthDate
- func StartPool(tb testing.TB) (*pgxpool.Pool, func())
- type HTTPOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BudgetAuthContext ¶
func HTTPWithOptions ¶
func MakeAccount ¶
func MakeBudget ¶
func MakeCategory ¶
func MakeCategoryGroup ¶
func MakeIncomeCategoryGroup ¶
func MakeMonthCategory ¶
func NewEmptyID ¶
Types ¶
type HTTPOptions ¶
Click to show internal directories.
Click to hide internal directories.