mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	* Fix redirect with non-ascii branch names (#4764) * Add integration tests for non-ascii branch redirect * Fix mysql test and coverage test
This commit is contained in:
		| @@ -147,10 +147,10 @@ func TestSearchRepositoryByName(t *testing.T) { | ||||
| 			count: 14}, | ||||
| 		{name: "AllPublic/PublicRepositoriesOfUserIncludingCollaborative", | ||||
| 			opts:  &SearchRepoOptions{Page: 1, PageSize: 10, OwnerID: 15, AllPublic: true}, | ||||
| 			count: 16}, | ||||
| 			count: 17}, | ||||
| 		{name: "AllPublic/PublicAndPrivateRepositoriesOfUserIncludingCollaborative", | ||||
| 			opts:  &SearchRepoOptions{Page: 1, PageSize: 10, OwnerID: 15, Private: true, AllPublic: true}, | ||||
| 			count: 20}, | ||||
| 			count: 21}, | ||||
| 		{name: "AllPublic/PublicAndPrivateRepositoriesOfUserIncludingCollaborativeByName", | ||||
| 			opts:  &SearchRepoOptions{Keyword: "test", Page: 1, PageSize: 10, OwnerID: 15, Private: true, AllPublic: true}, | ||||
| 			count: 13}, | ||||
| @@ -159,7 +159,7 @@ func TestSearchRepositoryByName(t *testing.T) { | ||||
| 			count: 11}, | ||||
| 		{name: "AllPublic/PublicRepositoriesOfOrganization", | ||||
| 			opts:  &SearchRepoOptions{Page: 1, PageSize: 10, OwnerID: 17, AllPublic: true, Collaborate: util.OptionalBoolFalse}, | ||||
| 			count: 16}, | ||||
| 			count: 17}, | ||||
| 	} | ||||
|  | ||||
| 	for _, testCase := range testCases { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user