(t *testing.T)
| 114 | } |
| 115 | |
| 116 | func 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 | |
| 129 | func TestGetGitHubReleaseURL(t *testing.T) { |
| 130 | url := GetGitHubReleaseURL() |
nothing calls this directly
no test coverage detected