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

Function TestSetVersionInfoUpdatesWorkflowVersion

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

Source from the content-addressed store, hash-verified

18}
19
20func TestSetVersionInfoUpdatesWorkflowVersion(t *testing.T) {
21 originalVersion := workflow.GetVersion()
22 defer workflow.SetVersion(originalVersion)
23
24 SetVersionInfo("set-version-info")
25 assert.Equal(t, "set-version-info", workflow.GetVersion(), "SetVersionInfo should set workflow version")
26 assert.Equal(t, "set-version-info", GetVersion(), "cli.GetVersion should return workflow version")
27}

Callers

nothing calls this directly

Calls 4

GetVersionFunction · 0.92
SetVersionFunction · 0.92
SetVersionInfoFunction · 0.85
GetVersionFunction · 0.70

Tested by

no test coverage detected