testutil

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMockEntity

func GetMockEntity(t gomock.TestReporter) (*domain.Entity, error)

GetMockEntity returns a fake entity to be used only for testing

func GetMockEntityWithId

func GetMockEntityWithId(t gomock.TestReporter, entityId string) (*domain.Entity, error)

GetMockEntity returns a fake entity to be used only for testing specifying the entity id

func GetMockRecordData

func GetMockRecordData(
	t gomock.TestReporter,
	mockValues ...interface{},
) (*domain.Entity, *pubdomain.Record, error)

GetMockRecordData returns a fake record to be used only for testing

Types

This section is empty.

Jump to

Keyboard shortcuts

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