vitorestevam / FluentRequest

A friendly http wrapper
3 stars 1 forks source link

Start creating unity tests #2

Closed vitorestevam closed 1 year ago

vitorestevam commented 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

ArmoryNode commented 1 year ago

If no one is currently working on this one, I can take a look at it 🙂