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

Function TestGetGitHubReleaseURL

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

Source from the content-addressed store, hash-verified

127}
128
129func TestGetGitHubReleaseURL(t *testing.T) {
130 url := GetGitHubReleaseURL()
131 expectedURL := fmt.Sprintf("https://github.com/%s/%s/releases", GitHubUser, ProjectName)
132
133 if url == "" {
134 t.Error("GetGitHubReleaseURL() should not return empty string")
135 }
136
137 if url != expectedURL {
138 t.Errorf("GetGitHubReleaseURL() returned unexpected URL: %s, expected: %s", url, expectedURL)
139 }
140}
141
142func TestAuthorConstant(t *testing.T) {
143 if Author == "" {

Callers

nothing calls this directly

Calls 2

GetGitHubReleaseURLFunction · 0.85
ErrorMethod · 0.65

Tested by

no test coverage detected