On Wed, 2024-02-14 at 15:31 -0800, Jeremy French wrote:
> I really think the testability issue is the biggest one.  Generally,
> testing the main package is....cumbersome at least.  So it's
> reasonable to say, "I'm not going to test the main package, but I
> will keep it so simple that it is impossible for a bug to exist in
> there."  Then everything else in your application can be easily and
> thoroughly tested with the built-in testing tools.

It's stronger than this. With a Main() int, you can use e.g.
https://pkg.go.dev/github.com/rogpeppe/go-internal/testscript for
testing complete application behaviour.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/9cab6b0ce8791aed8c85afb0458c007e401ec257.camel%40kortschak.io.

Reply via email to