(t *testing.T)
| 281 | } |
| 282 | |
| 283 | func TestHooksRunsCommandRequiresSession(t *testing.T) { |
| 284 | t.Parallel() |
| 285 | |
| 286 | code, _, stderr := executeRootCommandWithExit(t, newTestDeps(t, &stubClient{}), "hooks", "runs") |
| 287 | if code != 1 { |
| 288 | t.Fatalf("executeRootCommandWithExit() code = %d, want 1", code) |
| 289 | } |
| 290 | if !strings.Contains(stderr, "--session is required") { |
| 291 | t.Fatalf("stderr = %q, want session validation message", stderr) |
| 292 | } |
| 293 | } |
| 294 | |
| 295 | func TestHooksRunsCommandParsesSinceAndRendersFormats(t *testing.T) { |
| 296 | t.Parallel() |
nothing calls this directly
no test coverage detected