Documentation ¶
Overview ¶
Package mock provides a mock implementation for the accounting interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAccounting ¶
func NewAccounting(opts ...Option) accounting.Interface
NewAccounting creates the mock accounting implementation
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option is the option passed to the mock accounting service
func WithCreditFunc ¶
WithCreditFunc sets the mock Credit function
func WithDebitFunc ¶
WithDebitFunc sets the mock Debit function
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the mock Accounting service.
Click to show internal directories.
Click to hide internal directories.