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

Function TestSpec_PublicAPI_GetVersion

pkg/cli/spec_test.go:71–74  ·  view source on GitHub ↗

TestSpec_PublicAPI_GetVersion validates that GetVersion returns a non-empty string. Spec: "Returns the current CLI version"

(t *testing.T)

Source from the content-addressed store, hash-verified

69// TestSpec_PublicAPI_GetVersion validates that GetVersion returns a non-empty string.
70// Spec: "Returns the current CLI version"
71func TestSpec_PublicAPI_GetVersion(t *testing.T) {
72 version := cli.GetVersion()
73 assert.NotEmpty(t, version, "GetVersion should return a non-empty version string")
74}
75
76// TestSpec_PublicAPI_SetVersionInfo validates that SetVersionInfo stores the version returned by GetVersion.
77// Spec: "Sets the version at startup"

Callers

nothing calls this directly

Calls 1

GetVersionFunction · 0.92

Tested by

no test coverage detected