testtrace

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package testtrace transports canonical test-run events over a private endpoint installed by the external process owner. It owns only instrumentation transport; process containment and correlation semantics remain independent.

Index

Constants

View Source
const (
	EventFDEnvironment     = "WINDSHARE_TEST_EVENT_FD"
	EventHandleEnvironment = "WINDSHARE_TEST_EVENT_HANDLE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EventSink

type EventSink struct {
	// contains filtered or unexported fields
}

EventSink binds one authenticated endpoint to one immutable operation. The identity check is intentionally repeated for WriteEvent: a Recorder supplies data, but possession of a Recorder must not bypass endpoint authentication.

func OpenEventSink

func OpenEventSink(identity testrun.Identity) (*EventSink, error)

OpenEventSink adopts the private inherited event endpoint installed by the process owner. It fails closed when called outside an owned child.

func (*EventSink) Close

func (sink *EventSink) Close() error

func (*EventSink) Emit

func (sink *EventSink) Emit(component, milestone, outcome string, payload any) error

Emit is the compact child-process API for code that does not otherwise need a Recorder. Its output still passes through the same canonical writer and identity check as Recorder-originated events.

func (*EventSink) WriteEvent

func (sink *EventSink) WriteEvent(event testrun.Event) error

WriteEvent implements testrun.EventSink without trusting the caller to bind correlation correctly.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL