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

Function TestProgressFlagSignature

pkg/cli/run_command_test.go:134–146  ·  view source on GitHub ↗

TestProgressFlagSignature tests that the progress flag has been removed

(t *testing.T)

Source from the content-addressed store, hash-verified

132
133// TestProgressFlagSignature tests that the progress flag has been removed
134func TestProgressFlagSignature(t *testing.T) {
135 // Test that functions no longer accept the progress parameter
136 // This is a compile-time check more than a runtime check
137
138 // RunWorkflowOnGitHub uses RunOptions now
139 _ = RunWorkflowOnGitHub(context.Background(), "test", RunOptions{})
140
141 // RunWorkflowsOnGitHub uses RunOptions now
142 _ = RunWorkflowsOnGitHub(context.Background(), []string{"test"}, RunOptions{})
143
144 // getLatestWorkflowRunWithRetry should NOT accept progress parameter anymore
145 _, _ = getLatestWorkflowRunWithRetry("test.lock.yml", "", false)
146}
147
148// TestRefFlagSignature tests that the ref flag is supported
149func TestRefFlagSignature(t *testing.T) {

Callers

nothing calls this directly

Calls 4

RunWorkflowOnGitHubFunction · 0.85
RunWorkflowsOnGitHubFunction · 0.85
BackgroundMethod · 0.80

Tested by

no test coverage detected