Documentation
¶
Index ¶
- Variables
- type AgeSetupUIStub
- func (u *AgeSetupUIStub[T]) CollectRecipientDraft(ctx context.Context, recipientPath string) (*T, error)
- func (u *AgeSetupUIStub[T]) ConfirmAddAnotherRecipient(ctx context.Context, currentCount int) (bool, error)
- func (u *AgeSetupUIStub[T]) ConfirmOverwriteExistingRecipient(ctx context.Context, recipientPath string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAgeSetupUIStubAborted = errors.New("age setup ui stub aborted")
Functions ¶
This section is empty.
Types ¶
type AgeSetupUIStub ¶
type AgeSetupUIStub[T any] struct { Overwrite bool Drafts []*T AddMore []bool AbortErr error OverwriteCalls int CollectCalls int AddCalls int }
AgeSetupUIStub is a reusable scripted UI double for age recipient setup flows.
func (*AgeSetupUIStub[T]) CollectRecipientDraft ¶
func (u *AgeSetupUIStub[T]) CollectRecipientDraft(ctx context.Context, recipientPath string) (*T, error)
func (*AgeSetupUIStub[T]) ConfirmAddAnotherRecipient ¶
func (*AgeSetupUIStub[T]) ConfirmOverwriteExistingRecipient ¶
Click to show internal directories.
Click to hide internal directories.