(t *testing.T)
| 71 | } |
| 72 | |
| 73 | func TestLogsCommandHelp(t *testing.T) { |
| 74 | // Test that the logs command help includes patch information |
| 75 | cmd := NewLogsCommand() |
| 76 | helpText := cmd.Long |
| 77 | |
| 78 | // Verify that the help text mentions the git patch (new naming convention) |
| 79 | if !strings.Contains(helpText, "aw-{branch}.patch") { |
| 80 | t.Error("Expected logs command help to mention 'aw-{branch}.patch' artifact") |
| 81 | } |
| 82 | |
| 83 | if !strings.Contains(helpText, "Git patch of changes made during execution") { |
| 84 | t.Error("Expected logs command help to describe the git patch artifact") |
| 85 | } |
| 86 | |
| 87 | // Verify the help text mentions all expected artifacts |
| 88 | expectedArtifacts := []string{ |
| 89 | "Workflow metadata", |
| 90 | "safe_output.jsonl", |
| 91 | "aw-{branch}.patch", |
| 92 | } |
| 93 | |
| 94 | for _, artifact := range expectedArtifacts { |
| 95 | if !strings.Contains(helpText, artifact) { |
| 96 | t.Errorf("Expected logs command help to mention artifact: %s", artifact) |
| 97 | } |
| 98 | } |
| 99 | } |
nothing calls this directly
no test coverage detected