MCPcopy Create free account
hub / github.com/github/gh-aw / TestLogsCommandHelp

Function TestLogsCommandHelp

pkg/cli/logs_patch_test.go:73–99  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

71}
72
73func 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}

Callers

nothing calls this directly

Calls 3

NewLogsCommandFunction · 0.85
ErrorMethod · 0.45
ErrorfMethod · 0.45

Tested by

no test coverage detected