Documentation
¶
Index ¶
- func CheckForUserIDIssues(tcName string, userID uuid.UUID, c *gin.Context)
- func CheckHTTPResponse(t *testing.T, w *httptest.ResponseRecorder, expErr string, expStatus int, ...)
- func ConvertResponseFloatToInt(actualResponse map[string]interface{}) map[string]interface{}
- func CreateTestingSchema(t *testing.T, db *sql.DB)
- func GetEmailFromBody(reqBody string) string
- func GetPasswordFromBody(reqBody string) string
- func IsTxFound(t *testing.T, tc testmodels.BaseHTTPTestCase, txID uuid.UUID, ...)
- func ProcessResponse(w *httptest.ResponseRecorder, t *testing.T) map[string]interface{}
- func SeedCreateTxTestData(t *testing.T, db *sql.DB, userQ database.UserQuerier, userID uuid.UUID)
- func SeedMultipleTestTransactions[T interfaces.TxPageRow](t *testing.T, txQ database.TransactionQuerier, rows []T)
- func SeedTestCategories(t *testing.T, db *sql.DB)
- func SeedTestDeviceInfo(t *testing.T, deviceQ database.DeviceQuerier, userID uuid.UUID)
- func SeedTestTransaction(t *testing.T, txQ database.TransactionQuerier, userID, txID uuid.UUID, ...)
- func SeedTestUser(t *testing.T, userQ database.UserQuerier, userID uuid.UUID, requiresHash bool)
- func SetupTestEnv(t *testing.T) *testmodels.TestEnv
- func StrPtr(s string) *string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckForUserIDIssues ¶
func CheckHTTPResponse ¶
func GetEmailFromBody ¶
func GetPasswordFromBody ¶
func IsTxFound ¶
func IsTxFound(t *testing.T, tc testmodels.BaseHTTPTestCase, txID uuid.UUID, env *testmodels.TestEnv)
func ProcessResponse ¶
func ProcessResponse(w *httptest.ResponseRecorder, t *testing.T) map[string]interface{}
func SeedCreateTxTestData ¶
func SeedMultipleTestTransactions ¶
func SeedMultipleTestTransactions[T interfaces.TxPageRow](t *testing.T, txQ database.TransactionQuerier, rows []T)
func SeedTestDeviceInfo ¶
func SeedTestTransaction ¶
func SeedTestTransaction(t *testing.T, txQ database.TransactionQuerier, userID, txID uuid.UUID, req *models.NewTxRequest)
func SeedTestUser ¶
func SetupTestEnv ¶
func SetupTestEnv(t *testing.T) *testmodels.TestEnv
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.