gitea/models/db
Nick 52e24167e5
Test renderReadmeFile ()
Add test coverage to the important features of
[`routers.web.repo.renderReadmeFile`](067b0c2664/routers/web/repo/view.go (L273));
namely that:

- it can handle looking in docs/, .gitea/, and .github/
- it can handle choosing between multiple competing READMEs
- it prefers the localized README to the markdown README to the
plaintext README
- it can handle broken symlinks when processing all the options
- it uses the name of the symlink, not the name of the target of the
symlink
..
install Implement FSFE REUSE for golang files ()
paginator Implement FSFE REUSE for golang files ()
common.go Refactor `setting.Database.UseXXX` to methods ()
consistency.go Implement FSFE REUSE for golang files ()
context.go Remove all package data after tests ()
context_committer_test.go Fix halfCommitter and WithTx ()
context_test.go Always reuse transaction ()
convert.go Implement FSFE REUSE for golang files ()
engine.go Refactor `setting.Database.UseXXX` to methods ()
engine_test.go Check primary keys for all tables and drop ForeignReference ()
error.go Always reuse transaction ()
index.go Refactor `setting.Database.UseXXX` to methods ()
index_test.go Implement FSFE REUSE for golang files ()
iterate.go Implement FSFE REUSE for golang files ()
iterate_test.go Test renderReadmeFile ()
list.go Fix db.Find bug ()
list_test.go Test renderReadmeFile ()
log.go Implement FSFE REUSE for golang files ()
main_test.go Implement FSFE REUSE for golang files ()
name.go Implement FSFE REUSE for golang files ()
search.go Show all projects, not just repo projects and open/closed projects ()
sequence.go Refactor `setting.Database.UseXXX` to methods ()
sql_postgres_with_schema.go Fix .golangci.yml ()