jsonl

package
v0.14.8 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package jsonl provides functionality for atomically appending test execution results to a JSON-Lines ledger file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddProperty

func AddProperty(test, name, value string)

AddProperty processes a name-value property and sets the plan ID if the key matches. Note: test parameter is ignored as test.plan_id is suite-scoped (last write wins).

func AppendResult

func AppendResult(path string, status opb.TestStatus, details string) error

AppendResult creates a TestResult with the resolved plan ID, current timestamp, status, and details, and atomically appends it to the specified JSON-Lines file.

func RecordResult

func RecordResult(path string, rerr error, exitCode *int) error

RecordResult evaluates the raw test execution outcome and writes the record to disk.

func ResolvePlanID

func ResolvePlanID() string

ResolvePlanID resolves the test plan ID from explicitly configured values (such as ondatra.Report().AddSuiteProperty("test.plan_id", ...)), or falls back to the executable base name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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