Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Simple Gin Unit Tests #24

Merged
merged 1 commit into from
Feb 24, 2024
Merged

Adding Simple Gin Unit Tests #24

merged 1 commit into from
Feb 24, 2024

Conversation

matheusgomes28
Copy link
Owner

Add a very basic gin test example where we
get the index page and check it contains
a particular post in the mock database.

To complete this, I had to mock the database
by turning the previous declaration into
an interface, and moving the concrete types
into SqlDatabase. The mock is done in DatabaseMock.

where we get the index page and check it contains
a particular post in the mock database.

To complete this, I had to mock the database
by turning the previous declaration into
an interface, and moving the concrete types
into SqlDatabase. The mock is done in DatabaseMock.
@matheusgomes28 matheusgomes28 merged commit 082e970 into main Feb 24, 2024
3 checks passed
@matheusgomes28 matheusgomes28 deleted the add-unit-tests branch February 24, 2024 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant