-
Notifications
You must be signed in to change notification settings - Fork 433
[dead-code] chore: remove dead functions — 3 functions removed #34469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -465,27 +465,6 @@ jobs: | |
|
|
||
| // TestExtractWorkflowCallInputsFromParsed tests the parsing of workflow_call inputs | ||
| // from an already-parsed workflow map | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [/zoom-out] Orphaned comment left behind after deleting the test function. Lines 466–467 still reference 💡 Note on coverageNo coverage gap here — the underlying |
||
| func TestExtractWorkflowCallInputsFromParsed(t *testing.T) { | ||
| workflow := map[string]any{ | ||
| "on": map[string]any{ | ||
| "workflow_call": map[string]any{ | ||
| "inputs": map[string]any{ | ||
| "payload": map[string]any{ | ||
| "type": "string", | ||
| "required": false, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| } | ||
|
|
||
| inputs := extractWorkflowCallInputsFromParsed(workflow) | ||
| assert.Contains(t, inputs, "payload", "Should extract payload input") | ||
|
|
||
| payloadInput, ok := inputs["payload"].(map[string]any) | ||
| require.True(t, ok, "payload input should be a map") | ||
| assert.Equal(t, "string", payloadInput["type"], "payload should be string type") | ||
| } | ||
|
|
||
| // TestCallWorkflowConfig_WithGeneratedYAML tests that the compiled YAML for a gateway workflow | ||
| // includes the expected call-workflow fan-out jobs structure | ||
|
Comment on lines
466
to
470
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dangling comment left after the test function was deleted.
💡 Suggested fix
Remove the orphaned comment (lines 464–465):
Since the function it described no longer exists, this comment misleads readers about what the next function tests.