debian-forge-composer/internal/test
Ondřej Budai ad5a135b56 internal/test: add small library for tests
Yeah, we have TestRoute. It has one issue though: It doesn't have support
for passing a custom context. One option is to extend the method with yet
argument but since it already has 9 (!!!), this seems like a huge mess.

Therefore, I decided to invent a new small library for writing API tests.
It uses structs heavily which means that adding features to it doesn't
mean changing 100 lines of code (like adding another arg to TestRoute does).

I hope that we can start using this library more in our tests as it was
designed to be very flexible and powerfule.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2022-03-08 12:07:00 +01:00
..
apicall.go internal/test: add small library for tests 2022-03-08 12:07:00 +01:00
helpers.go gosec: G204 - Subproccess launched as function arg 2021-12-13 12:17:30 +02:00
request.go internal/test: add small library for tests 2022-03-08 12:07:00 +01:00
validator.go internal/test: add small library for tests 2022-03-08 12:07:00 +01:00