Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestEnv ¶
type TestEnv struct {
Logger *slog.Logger
Service taxcode.Service
Adapter taxcode.Repository
Client *entdb.Client
// contains filtered or unexported fields
}
func NewTestEnv ¶
func NewTestEnvFromClient ¶
func (*TestEnv) CreateTaxCode ¶
func (e *TestEnv) CreateTaxCode(t *testing.T, namespace string, opts ...taxcode.CreateTaxCodeInput) taxcode.TaxCode
CreateTaxCode creates a tax code; if opts is provided its first element overrides the input — Namespace, Key, and Name are generated when empty.
func (*TestEnv) DBSchemaMigrate ¶
Click to show internal directories.
Click to hide internal directories.