testutils

package
v1.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBotUserID added in v1.2.0

func GetBotUserID() string

GetBotUserID returns a static bot user ID.

func GetBundle added in v1.5.0

func GetBundle() *utils.Bundle

func GetLocalizer added in v1.1.0

func GetLocalizer() *i18n.Localizer

GetLocalizer return an localizer with an empty bundle

func GetMockArgumentsWithType added in v1.4.0

func GetMockArgumentsWithType(typeString string, num int) []interface{}

func GetPoll

func GetPoll() *poll.Poll

GetPoll returns a Poll with three Options, no votes and no Poll Settings.

func GetPollID

func GetPollID() string

GetPollID returns a static Poll ID.

func GetPollTwoOptions

func GetPollTwoOptions() *poll.Poll

GetPollTwoOptions returns a Poll with two Options, "Yes" and "No", no votes and no Poll Settings.

func GetPollWithSettings

func GetPollWithSettings(settings poll.Settings) *poll.Poll

GetPollWithSettings returns a Poll with three Options, no votes and given Poll Settings.

func GetPollWithVoteUnknownUser added in v1.6.0

func GetPollWithVoteUnknownUser() *poll.Poll

GetPollWithVoteUnknownUser returns a Poll with three Options, one unknown voter and no Poll Settings.

func GetPollWithVotes

func GetPollWithVotes() *poll.Poll

GetPollWithVotes returns a Poll with three Options, some votes and no Poll Settings.

func GetPollWithVotesAndSettings

func GetPollWithVotesAndSettings(settings poll.Settings) *poll.Poll

GetPollWithVotesAndSettings returns a Poll with three Options, some votes and given Poll Settings.

func GetPollWithoutPostID added in v1.4.0

func GetPollWithoutPostID() *poll.Poll

GetPollWithoutPostID returns a Poll with three Options, without PostID.

func GetServerConfig added in v1.2.0

func GetServerConfig() *model.Config

GetServerConfig return a static server config.

func GetSiteURL

func GetSiteURL() string

GetSiteURL returns a static Site URL.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL