Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InProcessCallbacks ¶
type InProcessCallbacks struct {
Started func(lifecycle.MockContext) error
FullConsumption func()
CloseStreams func(error) error
StopCause func() error
}
InProcessCallbacks connect replay progress and caller-owned cleanup to the public run handle.
type InProcessStreams ¶
type InProcessStreams struct {
Reader io.ReadCloser
Writer io.WriteCloser
Stderr io.Writer
}
InProcessStreams are the fixture-side endpoints transferred to one run.
type Prepared ¶
type Prepared struct {
FixtureDir string
Connection string
ExecutionID string
Agent string
Artifact corpus.Material
Timeout time.Duration
ResultFD int
ProgressFD int
NativeArgs []string
}
Prepared is the validated current-material contract for one replay policy.
type Result ¶
type Result = lifecycle.MockResult
func RunInProcess ¶
func RunInProcess(ctx context.Context, prepared Prepared, streams InProcessStreams, callbacks InProcessCallbacks) (*Result, error)
RunInProcess reuses the normal mock execution transaction with a replay policy backed by caller-owned closeable streams.