Elektrine lite

← Feed

@jsecure@skyhaven.social

2026-10-07 20:34 UTC

@MaddieM4@raphus.social Yes I think testing is so crucial for any Go codebase. I use really nice Ginkgo / gomega tests which describe what is happening ie: When("the user enters some stuff and", func() { When("the users input is invalid and", func() { When("the validator spots the issue", func() { It("should output an error", func() { I find this a lot more intuitive than the bare tests which come with the core libraries. Go is very opinionated and idiomatic so it kind of keeps codebases looking similar but when tests are easy to follow it can really help readability.

Replies (0)

No replies.