feat: tests

This commit is contained in:
2025-11-09 16:39:29 +01:00
parent e57185b057
commit 7913e6b900
4 changed files with 189 additions and 1 deletions

View File

@@ -25,6 +25,22 @@ Alternatively, you can use Docker for a containerized environment:
docker-compose up --build
```
## Writing Tests
All tests are written using the go standard library and are table driven.
In this application no libraries like testify are used. Mocks are written in
the test file using this schema:
```go
type Mock struct {
Foo func (string) string
}
func (m Mock) Foo(in string) string {
return m.Foo(in)
}
```
## Running Tests
To run all tests for the project, use the following command: