how to test main function coverage with different args to enhance
coverage rate
how to cover the red part ? for you can set args once a time
func Test_main(m *testing.T) {
main2()
}
go test -coverprofile coverage.cov -args xxx.conf go tool cover
-html=coverage.cov -o coverage.html
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.