Documentation ¶
Index ¶
- Constants
- func BuildApplicationEnv(db *pgxpool.Pool) *base.ApplicationEnv
- func BuildInlineQuery() *tgbotapi.InlineQuery
- func BuildRequestEnv() *base.RequestEnv
- func CheckRowsCount(t *testing.T, db *pgxpool.Pool, expected int, uid int64, alias *string)
- func InsertTestData(db *pgxpool.Pool)
- func InsertTestLocation(db *pgxpool.Pool, uid int)
- func InsertTestPackages(db *pgxpool.Pool)
- func NewTextField(name string, data interface{}) *wizard.Field
Constants ¶
View Source
const ( User = "test" Password = "testpw" DB = "testdb" ExposedDBPort = "5432" UID = 123456 UID2 = UID + 1 UID3 = UID + 2 UIDPhoto = UID + 3 Alias = "alias" AliasCI = "AliAS" AliasID = 1 Alias2 = Alias + "'2" Alias2ID = 2 AliasPhoto = "photo" AliasPhotoID = 3 Type = wizard.Sticker FileID = "FileID" FileID2 = "FileID_2" FileIDPhoto = "FileID_Photo" UniqueFileID = "FileUniqueID" UniqueFileID2 = "FileUniqueID_2" Text = "test_text" TextID = 1 CaptionPhoto = AliasPhoto CaptionPhotoID = 2 Latitude = 1.1 Longitude = 2.2 Package = "package/test" PackageFullName = "123456@package/test" PackageID = 1 PackageUUID = "a97a8b56-d461-47b5-a740-651bf14c501f" )
Variables ¶
This section is empty.
Functions ¶
func BuildApplicationEnv ¶
func BuildApplicationEnv(db *pgxpool.Pool) *base.ApplicationEnv
func BuildInlineQuery ¶
func BuildInlineQuery() *tgbotapi.InlineQuery
func BuildRequestEnv ¶
func BuildRequestEnv() *base.RequestEnv
func CheckRowsCount ¶
func InsertTestData ¶
func InsertTestLocation ¶ added in v1.1.0
func InsertTestPackages ¶
func NewTextField ¶ added in v1.1.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.