Documentation
¶
Overview ¶
Package providerfixture owns governed provider-response fixtures for tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateRequested ¶
func UpdateRequested() bool
UpdateRequested reports whether the caller explicitly selected fixture refresh with the test binary's -update flag.
Types ¶
type Fixture ¶
Fixture identifies one provider capture and its adjacent metadata.
func (Fixture) Capture ¶
Capture replaces the payload and metadata after an explicit live refresh. It preserves the fixture's reviewed maximum-age policy.
type FixtureMetadata ¶
type FixtureMetadata struct {
Version uint64 `json:"version"`
Provider string `json:"provider"`
FetchedAt time.Time `json:"fetched_at"`
SourceRevision evidence.ObservationRevision `json:"source_revision"`
Payload FixturePayload `json:"payload"`
MaxAge string `json:"max_age"`
}
FixtureMetadata binds a provider fixture to its source revision and freshness policy.
type FixturePayload ¶
FixturePayload identifies the exact fixture bytes governed by metadata.
Click to show internal directories.
Click to hide internal directories.