Documentation
¶
Index ¶
- func CreateMockBlog(t *testing.T, storage *storage.Storage) bloggulus.Blog
- func CreateMockPost(t *testing.T, storage *storage.Storage) bloggulus.Post
- func NewConfig(t *testing.T) config.Config
- func NewLogger(t *testing.T) *log.Logger
- func NewMockBlog() bloggulus.Blog
- func NewMockPost(blog bloggulus.Blog) bloggulus.Post
- func RandomString(n int) string
- func RandomTime() time.Time
- func RandomURL(n int) string
- type CloserFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMockBlog ¶ added in v0.0.5
mocks a blog and creates it in the database
func CreateMockPost ¶ added in v0.0.5
mocks a post and creates it in the database
func NewMockBlog ¶
func RandomString ¶
func RandomTime ¶
Types ¶
type CloserFunc ¶ added in v0.1.0
type CloserFunc func()
func NewDatabase ¶ added in v0.1.0
func NewDatabase(t *testing.T) (database.Conn, CloserFunc)
func NewStorage ¶ added in v0.1.0
func NewStorage(t *testing.T) (*storage.Storage, CloserFunc)
Click to show internal directories.
Click to hide internal directories.