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

Function TestGetGitHubURL

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

Source from the content-addressed store, hash-verified

114}
115
116func TestGetGitHubURL(t *testing.T) {
117 url := GetGitHubURL()
118 expectedURL := fmt.Sprintf("https://github.com/%s/%s", GitHubUser, ProjectName)
119
120 if url == "" {
121 t.Error("GetGitHubURL() should not return empty string")
122 }
123
124 if url != expectedURL {
125 t.Errorf("GetGitHubURL() returned unexpected URL: %s, expected: %s", url, expectedURL)
126 }
127}
128
129func TestGetGitHubReleaseURL(t *testing.T) {
130 url := GetGitHubReleaseURL()

Callers

nothing calls this directly

Calls 2

GetGitHubURLFunction · 0.85
ErrorMethod · 0.65

Tested by

no test coverage detected