1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-07-24 20:19:39 +02:00
forgejo/models/unittest
Gusted 87de43ba60 [v7.0/forgejo] chore: replace github.com/go-testfixtures/testfixtures (#7730)
**Backport:** #7715

- Replaces `github.com/go-testfixtures/testfixtures` with a homebrew solution that is fully compatible.
- The reason to replace this library is that it pulls in a lot of other libraries which is causing issues: (1) the test binary becomes bigger than necessary which really shows in incremental build times (this patch removes 27.6MiB of the integration test binary) (2) it pulls in libraries (mainly database drivers) that are not used and are not easy to upgrade in case of a security vulnerability, causing CI failures.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7730
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-04-30 14:48:56 +00:00
..
consistency.go enable linter testifylint on v7 (#4572) 2024-07-30 19:42:06 +00:00
fixture_loader.go [v7.0/forgejo] chore: replace github.com/go-testfixtures/testfixtures (#7730) 2025-04-30 14:48:56 +00:00
fixtures.go [v7.0/forgejo] chore: replace github.com/go-testfixtures/testfixtures (#7730) 2025-04-30 14:48:56 +00:00
fscopy.go Use ErrInvalidArgument in packages (#22268) 2022-12-31 12:49:37 +01:00
mock_http.go enable linter testifylint on v7 (#4572) 2024-07-30 19:42:06 +00:00
reflection.go Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
testdb.go enable linter testifylint on v7 (#4572) 2024-07-30 19:42:06 +00:00
unit_tests.go enable linter testifylint on v7 (#4572) 2024-07-30 19:42:06 +00:00