Create main.go CLI entry point at cmd/testbed2/main.go #10

Merged
fjadmin merged 2 commits from issue-6-main-cli into scaffold-go-cli 2026-05-21 15:01:28 +00:00
Showing only changes of commit b16de316e4 - Show all commits

View file

@ -48,13 +48,13 @@ func TestRunOutput(t *testing.T) {
r, w, _ := os.Pipe()
os.Stdout = w
Run([]string{})
_ = Run([]string{})
w.Close()
os.Stdout = oldStdout
buf := new(bytes.Buffer)
buf.ReadFrom(r)
_, _ = buf.ReadFrom(r)
if buf.Len() == 0 {
t.Fatal("expected output")
}