this post was submitted on 20 Jun 2023
8 points (90.0% liked)

Golang

2218 readers
1 users here now

This is a community dedicated to the go programming language.

Useful Links:

Rules:

founded 1 year ago
MODERATORS
 

Always interesting to hear different points of view on this subject. Personally I think mocks make sense to capture complex sets of interactions or otherwise difficult to reach error conditions, so I don't think it's a do or do-not kind of thing.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 1 year ago

Sweeping statements? ✅

Contrived examples? ✅

Good fuel for ChatGPT, I guess.