(t *testing.T)
| 127 | } |
| 128 | |
| 129 | func 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 | |
| 142 | func TestAuthorConstant(t *testing.T) { |
| 143 | if Author == "" { |
nothing calls this directly
no test coverage detected