Documentation ¶
Overview ¶
Package record provides functionality for recording and managing test cases and mocks.
Index ¶
- type Config
- type FrameChan
- type Instrumentation
- type MockDB
- type Recorder
- func (r *Recorder) GetContainerIP(ctx context.Context, id uint64) (string, error)
- func (r *Recorder) GetNextTestSetID(ctx context.Context) (string, error)
- func (r *Recorder) GetTestAndMockChans(ctx context.Context, appID uint64) (FrameChan, error)
- func (r *Recorder) Instrument(ctx context.Context) (uint64, error)
- func (r *Recorder) RunApplication(ctx context.Context, appID uint64, opts models.RunOptions) models.AppError
- func (r *Recorder) Start(ctx context.Context, reRecord bool) error
- type Service
- type Telemetry
- type TestDB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instrumentation ¶
type Instrumentation interface { //Setup prepares the environment for the recording Setup(ctx context.Context, cmd string, opts models.SetupOptions) (uint64, error) //Hook will load hooks and start the proxy server. Hook(ctx context.Context, id uint64, opts models.HookOptions) error GetIncoming(ctx context.Context, id uint64, opts models.IncomingOptions) (<-chan *models.TestCase, error) GetOutgoing(ctx context.Context, id uint64, opts models.OutgoingOptions) (<-chan *models.Mock, error) // Run is blocking call and will execute until error Run(ctx context.Context, id uint64, opts models.RunOptions) models.AppError GetContainerIP(ctx context.Context, id uint64) (string, error) }
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
func (*Recorder) GetContainerIP ¶
func (*Recorder) GetNextTestSetID ¶
func (*Recorder) GetTestAndMockChans ¶
func (*Recorder) RunApplication ¶
type Service ¶
Click to show internal directories.
Click to hide internal directories.