(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func 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 | |
| 20 | func TestSetVersionInfoUpdatesWorkflowVersion(t *testing.T) { |
| 21 | originalVersion := workflow.GetVersion() |
nothing calls this directly
no test coverage detected