Documentation
¶
Index ¶
- func BinPath() string
- func Disable(t *testing.T, dir string)
- func Enable(t *testing.T, dir, agent string)
- func Explain(t *testing.T, dir, checkpointID string) string
- func ExplainCommit(dir, ref string) (string, error)
- func ExplainGenerate(dir, checkpointID string) (string, error)
- func Resume(dir, branch string) (string, error)
- func Rewind(t *testing.T, dir, id string) error
- func RewindLogsOnly(t *testing.T, dir, id string) error
- type ExecError
- type RewindPoint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BinPath ¶
func BinPath() string
BinPath returns the path to the entire binary from E2E_ENTIRE_BIN. The mise test:e2e tasks set this automatically via `mise run build`.
func ExplainCommit ¶
ExplainCommit runs `entire explain --commit <ref>`. Returns (output, error) — for testing failure cases.
func ExplainGenerate ¶
ExplainGenerate runs `entire explain --checkpoint <id> --generate`. Returns (output, error) — doesn't fail test since callers may test failure cases.
Types ¶
type RewindPoint ¶
type RewindPoint struct {
ID string `json:"id"`
Message string `json:"message"`
MetadataDir string `json:"metadata_dir"`
Date string `json:"date"`
IsLogsOnly bool `json:"is_logs_only"`
CondensationID string `json:"condensation_id"`
SessionID string `json:"session_id"`
}
RewindPoint represents a single entry from `entire rewind --list`.
func RewindList ¶
func RewindList(t *testing.T, dir string) []RewindPoint
RewindList runs `entire rewind --list` and parses the JSON output.
Click to show internal directories.
Click to hide internal directories.