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

Function TestGetFullVersionString

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

Source from the content-addressed store, hash-verified

45}
46
47func TestGetFullVersionString(t *testing.T) {
48 fullVersion := GetFullVersionString()
49
50 if fullVersion == "" {
51 t.Error("GetFullVersionString() should not return empty string")
52 }
53
54 if fullVersion[0] != 'v' {
55 t.Error("GetFullVersionString() should start with 'v'")
56 }
57}
58
59func TestGetBuildDate(t *testing.T) {
60 info := GetBuildInfo()

Callers

nothing calls this directly

Calls 2

GetFullVersionStringFunction · 0.85
ErrorMethod · 0.65

Tested by

no test coverage detected