gitea/services/repository
singuliere fb2dc95623
services/repository: fix ListUnadoptedRepositories incorrect total count (#17865)
The total count returned by ListUnadoptedRepositories is incorrectly
calculated.

The code snippet within ListUnadoptedRepositories used to verify
unadopted repositories is repeated three times in the function. It is
moved in the checkUnadoptedRepositories function and a unit test is
added to verify it works as expected.

A unit test is added to verify the total count returned by
ListUnadoptedRepositories is as expected.

Signed-off-by: singuliere <singuliere@autistici.org>
2022-01-01 10:52:00 +08:00
..
archiver Move keys to models/asymkey (#17917) 2021-12-10 16:14:24 +08:00
files Simplify parameter types (#18006) 2021-12-20 04:41:31 +00:00
adopt.go services/repository: fix ListUnadoptedRepositories incorrect total count (#17865) 2022-01-01 10:52:00 +08:00
adopt_test.go services/repository: fix ListUnadoptedRepositories incorrect total count (#17865) 2022-01-01 10:52:00 +08:00
avatar.go Some repository refactors (#17950) 2021-12-12 23:48:20 +08:00
avatar_test.go Some repository refactors (#17950) 2021-12-12 23:48:20 +08:00
branch.go
cache.go
check.go
fork.go Some repository refactors (#17950) 2021-12-12 23:48:20 +08:00
fork_test.go Some repository refactors (#17950) 2021-12-12 23:48:20 +08:00
hooks.go Some repository refactors (#17950) 2021-12-12 23:48:20 +08:00
main_test.go
push.go Set HeadCommit when creating tags. (#18116) 2021-12-29 19:40:57 +08:00
repository.go Move keys to models/asymkey (#17917) 2021-12-10 16:14:24 +08:00
template.go Some repository refactors (#17950) 2021-12-12 23:48:20 +08:00
transfer.go Fix rename notification bug (#18008) 2021-12-17 14:24:47 +08:00
transfer_test.go