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

Function TestInputFlagSignature

pkg/cli/run_command_test.go:174–181  ·  view source on GitHub ↗

TestInputFlagSignature tests that the inputs parameter is supported

(t *testing.T)

Source from the content-addressed store, hash-verified

172
173// TestInputFlagSignature tests that the inputs parameter is supported
174func TestInputFlagSignature(t *testing.T) {
175 // Test that RunWorkflowOnGitHub accepts inputs parameter
176 // This is a compile-time check that ensures the inputs parameter exists
177 _ = RunWorkflowOnGitHub(context.Background(), "test", RunOptions{Inputs: []string{"key=value"}})
178
179 // Test that RunWorkflowsOnGitHub accepts inputs parameter
180 _ = RunWorkflowsOnGitHub(context.Background(), []string{"test"}, RunOptions{Inputs: []string{"key=value"}})
181}
182
183// TestInputValidation tests that input validation works correctly
184func TestInputValidation(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