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

Function TestRefFlagSignature

pkg/cli/run_command_test.go:149–156  ·  view source on GitHub ↗

TestRefFlagSignature tests that the ref flag is supported

(t *testing.T)

Source from the content-addressed store, hash-verified

147
148// TestRefFlagSignature tests that the ref flag is supported
149func TestRefFlagSignature(t *testing.T) {
150 // Test that RunWorkflowOnGitHub accepts refOverride parameter
151 // This is a compile-time check that ensures the refOverride parameter exists
152 _ = RunWorkflowOnGitHub(context.Background(), "test", RunOptions{RefOverride: "main"})
153
154 // Test that RunWorkflowsOnGitHub accepts refOverride parameter
155 _ = RunWorkflowsOnGitHub(context.Background(), []string{"test"}, RunOptions{RefOverride: "main"})
156}
157
158// TestRunWorkflowOnGitHubWithRef tests that the ref parameter is handled correctly
159func TestRunWorkflowOnGitHubWithRef(t *testing.T) {

Callers

nothing calls this directly

Calls 3

RunWorkflowOnGitHubFunction · 0.85
RunWorkflowsOnGitHubFunction · 0.85
BackgroundMethod · 0.80

Tested by

no test coverage detected