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

Function mockWorkflowUpdateDeps

pkg/cli/update_workflows_test.go:13–17  ·  view source on GitHub ↗
(mockFn func(context.Context, string) ([]byte, error))

Source from the content-addressed store, hash-verified

11)
12
13func mockWorkflowUpdateDeps(mockFn func(context.Context, string) ([]byte, error)) workflowUpdateDeps {
14 deps := defaultWorkflowUpdateDeps()
15 deps.runReleasesAPI = mockFn
16 return deps
17}
18
19// TestResolveLatestRelease_PrereleaseTagsSkipped verifies that prerelease tags are
20// not selected as the upgrade target even when they have a higher base version than

Calls 1

Tested by

no test coverage detected