Documentation
¶
Index ¶
- Constants
- func Config(t *testing.T) config.Chanoodle
- func Date() time.Time
- func Seed(t *testing.T, d Dependencies)
- func SeedChannels(t *testing.T, d Dependencies, genres []entity.Genre) []entity.Channel
- func SeedEvents(t *testing.T, d Dependencies, genres []entity.Genre, channels []entity.Channel) []entity.Event
- func SeedGenres(t *testing.T, d Dependencies) []entity.Genre
- type Dependencies
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func Seed ¶
func Seed(t *testing.T, d Dependencies)
func SeedChannels ¶
func SeedEvents ¶
func SeedGenres ¶
func SeedGenres(t *testing.T, d Dependencies) []entity.Genre
Types ¶
type Dependencies ¶
type Dependencies struct {
Router *echo.Echo
ChannelRepository repository.ChannelRepository
EventRepository repository.EventRepository
GenreRepository repository.GenreRepository
}
func NewDependencies ¶
func NewDependencies(t *testing.T, config config.Chanoodle) Dependencies
Click to show internal directories.
Click to hide internal directories.