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

Function TestGetVersionDelegatesToWorkflowVersion

pkg/cli/version_test.go:12–18  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func TestGetVersionDelegatesToWorkflowVersion(t *testing.T) {
13 originalVersion := workflow.GetVersion()
14 defer workflow.SetVersion(originalVersion)
15
16 workflow.SetVersion("workflow-direct")
17 assert.Equal(t, "workflow-direct", GetVersion(), "cli.GetVersion should read workflow version")
18}
19
20func TestSetVersionInfoUpdatesWorkflowVersion(t *testing.T) {
21 originalVersion := workflow.GetVersion()

Callers

nothing calls this directly

Calls 3

GetVersionFunction · 0.92
SetVersionFunction · 0.92
GetVersionFunction · 0.70

Tested by

no test coverage detected