mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
![]() NewTestEndpoint() function must only send the HTTP request to the server and return the code, response and an error. This serves cases where the response cannot be compared with a predefined message e.g. when a new user is added we should not assume its assigned ID beforehand. The assertions of probable error, non-200 codes and non expected response bodies should be done inside the test function. |
||
---|---|---|
.. | ||
amqpclient.go | ||
database.go | ||
database_test.go | ||
models.go | ||
requests.go | ||
responses.go | ||
roles.go | ||
serializers.go | ||
testdata.go | ||
utilities.go |