Fix typo in gitea downloader test and add missing codebase in ToGitServiceType (#33146)

This commit is contained in:
yp05327 2025-01-09 03:34:53 +09:00 committed by GitHub
parent 9c00e065a1
commit e177239529
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 3 deletions

View file

@ -30,10 +30,10 @@ func TestGiteaDownloadRepo(t *testing.T) {
downloader, err := NewGiteaDownloader(context.Background(), "https://gitea.com", "gitea/test_repo", "", "", giteaToken)
if downloader == nil {
t.Fatal("NewGitlabDownloader is nil")
t.Fatal("NewGiteaDownloader is nil")
}
if !assert.NoError(t, err) {
t.Fatal("NewGitlabDownloader error occur")
t.Fatal("NewGiteaDownloader error occur")
}
repo, err := downloader.GetRepoInfo()