ryshoooo / food-me

Finally a GOOD Database Middleware
MIT License
0 stars 0 forks source link

Feat/sqlhandler #26

Closed ryshoooo closed 1 month ago

github-actions[bot] commented 1 month ago

Merging this branch will increase overall coverage

Impacted Packages Coverage Δ :robot:
github.com/ryshoooo/food-me/api 79.25% (+32.02%) :star2:
github.com/ryshoooo/food-me/cmd 0.00% (ø)
github.com/ryshoooo/food-me/internal 49.01% (+19.74%) :tada:

Coverage by file ### Changed files (no unit tests) | Changed File | Coverage Δ | Total | Covered | Missed | :robot: | |--------------|------------|-------|---------|--------|---------| | github.com/ryshoooo/food-me/api/routes.go | 96.55% (**+7.08%**) | 87 (+68) | 84 (+67) | 3 (+1) | :thumbsup: | | github.com/ryshoooo/food-me/api/schemas.go | 0.00% (ø) | 0 | 0 | 0 | | | github.com/ryshoooo/food-me/api/server.go | 0.00% (ø) | 19 (+2) | 0 | 19 (+2) | | | github.com/ryshoooo/food-me/cmd/main.go | 0.00% (ø) | 8 | 0 | 8 | | | github.com/ryshoooo/food-me/internal/config.go | 100.00% (ø) | 59 | 59 | 0 | | | github.com/ryshoooo/food-me/internal/handler.go | 0.00% (ø) | 11 (+6) | 0 | 11 (+6) | | | github.com/ryshoooo/food-me/internal/interfaces.go | 0.00% (ø) | 0 | 0 | 0 | | | github.com/ryshoooo/food-me/internal/opa.go | 100.00% (**+100.00%**) | 148 (+148) | 148 (+148) | 0 | :star2: | | github.com/ryshoooo/food-me/internal/permission_agent.go | 100.00% (**+100.00%**) | 3 (+3) | 3 (+3) | 0 | :star2: | | github.com/ryshoooo/food-me/internal/postgres.go | 14.85% (**+14.85%**) | 505 (+9) | 75 (+75) | 430 (-66) | :tada: | | github.com/ryshoooo/food-me/internal/postgres_sql_handler.go | 100.00% (ø) | 52 (+2) | 52 (+2) | 0 | | | github.com/ryshoooo/food-me/internal/server.go | 4.55% (ø) | 22 | 1 | 21 | | _Please note that the "Total", "Covered", and "Missed" counts above refer to ***code statements*** instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code._ ### Changed unit test files - github.com/ryshoooo/food-me/api/routes_test.go - github.com/ryshoooo/food-me/internal/opa_test.go - github.com/ryshoooo/food-me/internal/permission_agent_test.go - github.com/ryshoooo/food-me/internal/postgres_sql_handler_test.go - github.com/ryshoooo/food-me/internal/postgres_test.go