MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / TestGetVersionString

Function TestGetVersionString

internal/version/version_test.go:35–45  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

33}
34
35func TestGetVersionString(t *testing.T) {
36 versionStr := GetVersionString()
37
38 if versionStr == "" {
39 t.Error("GetVersionString() should not return empty string")
40 }
41
42 if versionStr[0] != 'v' {
43 t.Error("GetVersionString() should start with 'v'")
44 }
45}
46
47func TestGetFullVersionString(t *testing.T) {
48 fullVersion := GetFullVersionString()

Callers

nothing calls this directly

Calls 2

GetVersionStringFunction · 0.85
ErrorMethod · 0.65

Tested by

no test coverage detected