gitforge/routers/api
limiting-factor 77139f051e [v15.0/forgejo] chore(refactor): clarify REST API permissions tests (#13311)
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/13271

- separate test cases from fixtures
  - testcase.go: A `testCase` describes a test using `testData`
  - fixture.go: `fixture*` are function that creates the conditions for this test  case to run
- move the testData closer to the beginning
- update the README.md

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/13271
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
(cherry picked from commit c1351e62d4)

```
Conflicts:
	routers/api/v1/permissions/tests/README.md
   one line because coverage targets are not the same in v15, keep the
   non coverage documentation
	routers/api/v1/permissions/tests/check_fork_destination.go
   ignore as it only exists in the main branch
```

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/13311
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
2026-07-06 00:11:20 +02:00
..
actions [v15.0/forgejo] fix: introduce lint-single-response to prevent control flow continuing past a ctx.Error(...)-style method (#13092) 2026-06-14 22:43:53 +02:00
forgejo/v1 fix: /api/forgejo/v1/version Content-Type error (#9897) 2025-11-05 17:35:50 +01:00
packages [v15.0/forgejo] fix: Update swift package registry to use the metadata schema from the official Swift docs (#13209) 2026-06-27 23:53:56 +02:00
shared [v15.0/forgejo] chore(refactor): add getter/setter to APIContext data members (#13214) 2026-06-27 21:15:08 +02:00
v1 [v15.0/forgejo] chore(refactor): clarify REST API permissions tests (#13311) 2026-07-06 00:11:20 +02:00