Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SlowTestingModel ¶
type SlowTestingModel struct {
Delay time.Duration
Response jpf.ModelResponse
}
SlowTestingModel is a testing model that simulates slow operations and respects context cancellation
func (*SlowTestingModel) Respond ¶
func (s *SlowTestingModel) Respond(ctx context.Context, msgs []jpf.Message, opts ...jpf.ModelResponseOpt) (jpf.ModelResponse, error)
type TestStruct ¶
type TestingModel ¶
func (*TestingModel) Respond ¶
func (t *TestingModel) Respond(ctx context.Context, msgs []jpf.Message, opts ...jpf.ModelResponseOpt) (jpf.ModelResponse, error)
func (*TestingModel) Tokens ¶
func (t *TestingModel) Tokens() (int, int)
Click to show internal directories.
Click to hide internal directories.