Closed matheusgomes28 closed 5 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.
AddPost(...)
This can help reach specific branches in unit tests.
Part of this was done in #46
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.