Documentation
¶
Overview ¶
Package scenario parses markdown rehearse scenario files: body metadata (`**Verifies:**` / `**Status:**`) and fenced step blocks with info-string params (REQ: scenario-shape). Parsing only — no execution.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct {
// Kind is the first info-string token (e.g. "bash", "sql"). Empty for a
// bare “` fence.
Kind string
// Params holds the remaining info-string tokens as key=value pairs; a
// bare token maps to the empty string.
Params map[string]string
// Body is the verbatim block content (without the fence lines).
Body string
// Line is the 1-based line number of the opening fence.
Line int
}
Block is one fenced block extracted from a scenario file.
type Scenario ¶
type Scenario struct {
// Path is the file the scenario was parsed from.
Path string
// Verifies lists the AC ids from the `**Verifies:**` body metadata,
// parenthetical annotations stripped. Never nil.
Verifies []string
// Status is the `**Status:**` body metadata value (e.g. "pending").
Status string
// Blocks are all fenced blocks in document order.
Blocks []Block
}
Scenario is one parsed scenario file.
Click to show internal directories.
Click to hide internal directories.