Enforce runtime report contracts and recoverable session exports

This commit is contained in:
2026-10-20 16:02:38 +01:00
parent 1d9cb80cdb
commit fdf0369ede
36 changed files with 1636 additions and 177 deletions
+19
View File
@@ -0,0 +1,19 @@
package cli
import (
"bytes"
"testing"
)
func TestOutputFormatFlag(t *testing.T) {
for _, format := range []string{"html", "markdown"} {
app := App{Out: &bytes.Buffer{}, Err: &bytes.Buffer{}}
f, o := app.flags("run")
if err := parse(f, []string{"--output-format", format}); err != nil {
t.Fatal(err)
}
if o.outputFormat != format {
t.Fatalf("%q", o.outputFormat)
}
}
}