TestSpec_PublicAPI_SetVersionInfo validates that SetVersionInfo stores the version returned by GetVersion. Spec: "Sets the version at startup"
(t *testing.T)
| 76 | // TestSpec_PublicAPI_SetVersionInfo validates that SetVersionInfo stores the version returned by GetVersion. |
| 77 | // Spec: "Sets the version at startup" |
| 78 | func TestSpec_PublicAPI_SetVersionInfo(t *testing.T) { |
| 79 | original := cli.GetVersion() |
| 80 | t.Cleanup(func() { cli.SetVersionInfo(original) }) |
| 81 | |
| 82 | cli.SetVersionInfo("v99.99.99-spec-test") |
| 83 | assert.Equal(t, "v99.99.99-spec-test", cli.GetVersion(), "GetVersion should return the value set by SetVersionInfo") |
| 84 | } |
| 85 | |
| 86 | // TestSpec_PublicAPI_IsRunningInCI validates that IsRunningInCI returns a bool without panicking. |
| 87 | // Spec: "Detects CI environment" |
nothing calls this directly
no test coverage detected