0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-04-02 08:51:34 -05:00
forgejo/tests
wxiaoguang c5901b622d
Avoid unnecessary 500 panic when a commit doesn't exist ()
In , it assumed that `Commit` always exists when
`PageIsDiff==true`.

But for a 404 page, the `Commit` doesn't exist, so the following code
would cause panic because nil value can't be passed as string parameter
to `IsMultilineCommitMessage(string)` (or the StringUtils.Cut in later
PRs)
2024-01-07 18:20:22 +08:00
..
e2e Require MySQL 8.0, PostgreSQL 12, MSSQL 2012 () 2023-10-03 13:27:57 -04:00
fuzz Move fuzz tests into tests/fuzz () 2023-01-09 15:30:14 +08:00
gitea-lfs-meta Test views of LFS files () 2022-12-23 07:41:56 +08:00
gitea-repositories-meta Allow get release download files and lfs files with oauth2 token format () 2023-10-01 10:41:52 +00:00
integration Avoid unnecessary 500 panic when a commit doesn't exist () 2024-01-07 18:20:22 +08:00
testdata/data/attachments/a/0 Allow get release download files and lfs files with oauth2 token format () 2023-10-01 10:41:52 +00:00
mssql.ini.tmpl Disable query token param in integration tests () 2023-12-23 11:29:51 +08:00
mysql.ini.tmpl Disable query token param in integration tests () 2023-12-23 11:29:51 +08:00
pgsql.ini.tmpl Disable query token param in integration tests () 2023-12-23 11:29:51 +08:00
sqlite.ini.tmpl Disable query token param in integration tests () 2023-12-23 11:29:51 +08:00
test_utils.go Allow get release download files and lfs files with oauth2 token format () 2023-10-01 10:41:52 +00:00