Gentle suggestion: put each step you want to be testable into its own function.
AAA BBB www() CCC if xxx() { yyy() } DDD zzz() -- 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/1666164a-1e66-4f30-893a-2af118280616%40googlegroups.com.