add unit tests for internal/service/categories for retrieval methods
Closed this issue · 2 comments
danielblagy commented
- GetAll
- Get
Similar to #15
- install mockery
go install github.com/vektra/mockery/v2@v2.28.2
- similar to tests in
internal/service/categories/service_create.go
danielblagy commented
is blocked by #15
mrnkslv commented
Created 2 unit tests for testing Get and GetAll methods.
Their paths:
- internal/service/categories/service_get_test.go
- internal/service/categories/service_get_all_test.go