3 ms·
Take a look at the Ginkgo testing framework to see the horrors of shoe horning FP into Go https://onsi.github.io/ginkgo/#writing-specs https://onsi.github.io/g
by ojhughes 2y ago
Take a look at the Ginkgo testing framework to see the horrors of shoe horning FP into Go
https://onsi.github.io/ginkgo/#writing-specs https://onsi.github.io/ginkgo/#writing-specs
- ljm 2y agoI don't think this is functional programming as much as it is just a DSL for behaviour driven testing. It doesn't feel like Go, really, but there is still a place for high level testing like that. Personally, I prefer it for integration testing and other situations where you might be asserting on multiple steps of functionality as part of a wider piece (like transactional business logic).
- arunix 2y agoWhat's horrible about that?