1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-05 15:34:25 +00:00
gitea/tests
delvh 778ad795fd
Refactor deletion ()
Introduce the new generic deletion methods
- `func DeleteByID[T any](ctx context.Context, id int64) (int64, error)`
- `func DeleteByIDs[T any](ctx context.Context, ids ...int64) error`
- `func Delete[T any](ctx context.Context, opts FindOptions) (int64,
error)`

So, we no longer need any specific deletion method and can just use
the generic ones instead.

Replacement of 

Closes 

---------

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2023-12-25 21:25:29 +01: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 Refactor deletion () 2023-12-25 21:25:29 +01: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