You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/tests
Lunny Xiao dd30d9d5c0
Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220)
The function `GetByBean` has an obvious defect that when the fields are
empty values, it will be ignored. Then users will get a wrong result
which is possibly used to make a security problem.

To avoid the possibility, this PR removed function `GetByBean` and all
references.
And some new generic functions have been introduced to be used.

The recommand usage like below.

```go
// if query an object according id
obj, err := db.GetByID[Object](ctx, id)
// query with other conditions
obj, err := db.Get[Object](ctx, builder.Eq{"a": a, "b":b})
```
1 year ago
..
e2e Require MySQL 8.0, PostgreSQL 12, MSSQL 2012 (#27337) 1 year ago
fuzz Move fuzz tests into tests/fuzz (#22376) 2 years ago
gitea-lfs-meta Test views of LFS files (#22196) 2 years ago
gitea-repositories-meta Allow get release download files and lfs files with oauth2 token format (#26430) 1 year ago
integration Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 1 year ago
testdata/data/attachments/a/0 Allow get release download files and lfs files with oauth2 token format (#26430) 1 year ago
mssql.ini.tmpl Remove duplicated notify mail configuration on tests (#26912) 1 year ago
mysql.ini.tmpl Remove duplicated notify mail configuration on tests (#26912) 1 year ago
pgsql.ini.tmpl Remove duplicated notify mail configuration on tests (#26912) 1 year ago
sqlite.ini.tmpl Do not use deprecated log config options by default (#26592) 1 year ago
test_utils.go Allow get release download files and lfs files with oauth2 token format (#26430) 1 year ago