matheusgomes28 / urchin

Headless CMS written in Golang
MIT License
60 stars 19 forks source link

Change Mocked Database to accept different handlers #47

Closed matheusgomes28 closed 5 months ago

matheusgomes28 commented 6 months ago

Change the mocked database so it can accept random handler functions in tests. Motivation is that we can set the function that would be handling the AddPost(...) interface function.

This can help reach specific branches in unit tests.

matheusgomes28 commented 5 months ago

Part of this was done in #46