Closed vitorestevam closed 1 year ago
By now we only have a single test doing a request. We need to create a structure to make easier for the mainteners to create new cases. Probably using table driven tests would be a good option to keep it simple, but robust.
a few links as reference: https://yourbasic.org/golang/table-driven-unit-test/ https://www.codementor.io/@cyantarek15/how-table-driven-tests-makes-writing-unit-tests-exciting-and-fun-in-go-15g1wzdf7g https://dev.to/boncheff/table-driven-unit-tests-in-go-407b
If no one is currently working on this one, I can take a look at it 🙂
By now we only have a single test doing a request. We need to create a structure to make easier for the mainteners to create new cases. Probably using table driven tests would be a good option to keep it simple, but robust.
a few links as reference: https://yourbasic.org/golang/table-driven-unit-test/ https://www.codementor.io/@cyantarek15/how-table-driven-tests-makes-writing-unit-tests-exciting-and-fun-in-go-15g1wzdf7g https://dev.to/boncheff/table-driven-unit-tests-in-go-407b