repositorytest

package
v0.0.0-...-3fe7dee Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Seeder

type Seeder struct {
	// contains filtered or unexported fields
}

Seeder is a helper for seeding habit data. It always generates the same random data for testing.

func NewSeeder

func NewSeeder() *Seeder

func (*Seeder) SeedArchivedHabit

func (s *Seeder) SeedArchivedHabit(userID auth.UserID, f func(h *repository.DynamoHabit)) *repository.DynamoHabit

func (*Seeder) SeedCheck

func (s *Seeder) SeedCheck(userID auth.UserID, habitID, date string, f func(c *repository.DynamoCheck)) *repository.DynamoCheck

func (*Seeder) SeedHabit

func (s *Seeder) SeedHabit(userID auth.UserID, f func(h *repository.DynamoHabit)) *repository.DynamoHabit

Jump to

Keyboard shortcuts

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