backend: added unit tests for main.go

Unit tests are testing all routes and Handlers
This commit is contained in:
Patryk Hegenberg 2023-12-06 19:28:26 +01:00 committed by Patryk Hegenberg
parent 2d0d0697fb
commit eda80cf0f0
3 changed files with 194 additions and 0 deletions

8
go.mod
View file

@ -1,3 +1,11 @@
module ddServer
go 1.21.4
require github.com/stretchr/testify v1.8.4
require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)