Documentation ¶
Index ¶
- func DeepEqual(t *testing.T, want, got interface{})
- func Diff(t *testing.T, want, got interface{})
- func ExecuteCommand(t *testing.T, cmd *cobra.Command, command, in string) string
- func FatalIfErrIsUnexpected(t *testing.T, wantErr bool, gotErr error) bool
- func MustNewTag(id model.TagID, name string, index int) *model.Tag
- func MustNewUnindexedTag(id model.TagID, name string) *model.UnindexedTag
- func MustNewUnregisteredTag(name string, index int) *model.UnregisteredTag
- func MustNewUnregisteredUnindexedTag(name string) *model.UnregisteredUnindexedTag
- func NewMockDispatcher(t *testing.T) *mockDispatcher
- func NewTempBoltDB(t *testing.T) (db *bolt.DB, closeF func() error, removeF func())
- func NewTempDBFile(t *testing.T) (file *os.File, closeF func(), removeF func())
- func PanicIfErrExist(err error)
- func ReadAllAssetsFromCh(ch <-chan *model.Asset) (assets []*model.Asset)
- func UseTempBoltDB(t *testing.T, f func(db *bolt.DB) error) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Diff ¶
Diff tests want and got are equals. If there are difference, fail test and print diff. See https://pkg.go.dev/github.com/google/go-cmp/cmp#Diff
func ExecuteCommand ¶
func FatalIfErrIsUnexpected ¶ added in v0.1.4
func MustNewTag ¶ added in v0.1.4
MustNewTag construct and returns Tag. Panic if invalid parameters are provided.
func MustNewUnindexedTag ¶ added in v0.1.4
func MustNewUnindexedTag(id model.TagID, name string) *model.UnindexedTag
MustNewUnindexedTag construct and returns UnindexedTag. Panic if invalid parameters are provided.
func MustNewUnregisteredTag ¶ added in v0.1.4
func MustNewUnregisteredTag(name string, index int) *model.UnregisteredTag
MustNewUnregisteredTag construct and returns Tag. Panic if invalid parameters are provided.
func MustNewUnregisteredUnindexedTag ¶ added in v0.1.4
func MustNewUnregisteredUnindexedTag(name string) *model.UnregisteredUnindexedTag
MustNewUnregisteredUnindexedTag construct and returns UnindexedTag. Panic if invalid parameters are provided.
func NewMockDispatcher ¶ added in v0.1.6
func NewTempBoltDB ¶ added in v0.1.4
func NewTempDBFile ¶
func PanicIfErrExist ¶ added in v0.1.4
func PanicIfErrExist(err error)
func ReadAllAssetsFromCh ¶ added in v0.1.6
ReadAllAssetsFromCh read all assets from channel
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.