DEV Community

Discussion on: Intro to automated testing in Go

Collapse
 
molson82 profile image
molson82

This was awesome content. What I'm currently struggling with though is testing with the httptest package. Is there a way to test REST endpoints without actually changing or manipulating the database? Some way to do if istest() return mockData?