Documentation
¶
Index ¶
- Constants
- func AccessToken(db *gorm.DB, user models.User) string
- func BookData(db *gorm.DB, user models.User) models.Book
- func ChapterData(db *gorm.DB, book models.Book) models.Chapter
- func CloseTestDatabase(db *gorm.DB)
- func ConvertDateTime(timeObj time.Time) string
- func CreateSingleTable(db *gorm.DB, model interface{})
- func CreateTempImageFile(t *testing.T) string
- func DropAndCreateSingleTable(db *gorm.DB, model interface{})
- func GenreData(db *gorm.DB) models.Genre
- func JwtData(db *gorm.DB, user models.User) models.AuthToken
- func NotificationData(db *gorm.DB, sender models.User, receiver models.User) models.Notification
- func ParagraphCommentData(db *gorm.DB, paragraph models.Paragraph, user models.User) models.Comment
- func ParseResponseBody(t *testing.T, b io.ReadCloser) interface{}
- func ProcessJsonTestBody(t *testing.T, app *fiber.App, url string, method string, body interface{}, ...) *http.Response
- func ProcessMultipartTestBody(t *testing.T, app *fiber.App, url string, method string, body interface{}, ...) *http.Response
- func ProcessTestGetOrDelete(app *fiber.App, url string, method string, access ...string) *http.Response
- func RemoveCreatedAndUpdated(body map[string]interface{}, dataType string)
- func ReplyData(db *gorm.DB, review models.Comment, user models.User) models.Comment
- func ReviewData(db *gorm.DB, book models.Book, user models.User) models.Comment
- func Setup(t *testing.T, app *fiber.App) *gorm.DB
- func SetupTestDatabase(t *testing.T) *gorm.DB
- func TagData(db *gorm.DB) models.Tag
- func TestAdmin(db *gorm.DB) models.User
- func TestAuthor(db *gorm.DB, another ...bool) models.User
- func TestCoin(db *gorm.DB) models.Coin
- func TestSubscriber(db *gorm.DB) models.User
- func TestSubscriptionPlan(db *gorm.DB) models.SubscriptionPlan
- func TestTransaction(db *gorm.DB, user models.User) models.Transaction
- func TestUser(db *gorm.DB) models.User
- func TestVerifiedUser(db *gorm.DB, activeSub ...bool) models.User
Constants ¶
View Source
const MASTER_PASSWORD = "testpassword"
Variables ¶
This section is empty.
Functions ¶
func CloseTestDatabase ¶
func ConvertDateTime ¶
func CreateSingleTable ¶
func CreateTempImageFile ¶
func NotificationData ¶
func ParagraphCommentData ¶
func ParseResponseBody ¶
func ParseResponseBody(t *testing.T, b io.ReadCloser) interface{}
func ProcessJsonTestBody ¶
func ProcessTestGetOrDelete ¶
func RemoveCreatedAndUpdated ¶
func TestSubscriptionPlan ¶
func TestSubscriptionPlan(db *gorm.DB) models.SubscriptionPlan
func TestTransaction ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.