Documentation ¶
Index ¶
- func DatabaseDSN(tb testing.TB) string
- func DatabaseURL(tb testing.TB) string
- func MakeContext(testing.TB) context.Context
- func MakeString(tb testing.TB) string
- func MakeTestEntityFunc(tb testing.TB) func() TestEntity
- func MigrateTestEntity(tb testing.TB, cm postgresql.Connection)
- func TestEntityMapping() postgresql.Mapper[TestEntity, string]
- type TestEntity
- type TestEntityDTO
- type TestEntityJSONMapping
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DatabaseDSN ¶
func DatabaseURL ¶
func MakeString ¶
func MakeTestEntityFunc ¶
func MakeTestEntityFunc(tb testing.TB) func() TestEntity
func MigrateTestEntity ¶
func MigrateTestEntity(tb testing.TB, cm postgresql.Connection)
func TestEntityMapping ¶
func TestEntityMapping() postgresql.Mapper[TestEntity, string]
Types ¶
type TestEntityDTO ¶
type TestEntityJSONMapping ¶
type TestEntityJSONMapping struct{}
func (TestEntityJSONMapping) ToDTO ¶
func (n TestEntityJSONMapping) ToDTO(ent TestEntity) (TestEntityDTO, error)
func (TestEntityJSONMapping) ToEnt ¶
func (n TestEntityJSONMapping) ToEnt(dto TestEntityDTO) (TestEntity, error)
Click to show internal directories.
Click to hide internal directories.