Versions in this module Expand all Collapse all v0 v0.18.0 Nov 24, 2026 v0.17.0 Nov 21, 2026 Changes in this version + const OutcomeFound + const OutcomeNotFound + const OutcomeUnreachable + const PolicyAll + const PolicyAtLeast + const PolicyFirst + var ErrNoAnswer = errors.New("vectorcases: a read the replay file does not hold") + var ErrUnreachable = errors.New("vectorcases: the replayed answer is unreachable") + var Steps = []string + func Dir() string + func Path(relative string) string + func StepIndex(step string) int + type Answer struct + Outcome string + Reason string + Value map[string]any + type Case struct + Config Config + Expected Expected + ID string + Proof string + func Load() ([]Case, error) + func (c Case) Family() string + func (c Case) ProofPath() string + type Config struct + Environment string + ExpectedHash *string + Keyring *string + Networks Networks + Online *string + Sources map[string]map[string]NetworkSources + type Expected struct + Code string + Label string + Rows []Row + SubReason string + SubmittedAfter jsontext.Value + SubmittedBefore jsontext.Value + Trace string + func (e Expected) Bare() bool + type NetworkSources struct + Policy string + Required *int + Sources []string + type Networks struct + Commitment map[string]string + Entropy map[string]string + type Record struct + Kind string + Network string + Source string + type Replay struct + func LoadCaseReplay(c Case) (*Replay, error) + func LoadReplay(relative string) (*Replay, error) + func ParseReplay(data []byte) (*Replay, error) + func (r *Replay) Answer(read map[string]any, source string) (Answer, bool) + func (r *Replay) Identity(chain, network, source string) (string, error) + func (r *Replay) Keyring(url string) (any, error) + func (r *Replay) Records() []Record + func (r *Replay) Sources() []Source + type Row struct + Code *string + Part *string + Status string + Step string + func (r *Row) UnmarshalJSON(data []byte) error + func (r Row) String() string + type Source struct + Chain string + Name string + Network string