Let's say I have some piece of code like this:

type Foo struct {

func (this *Foo) Do() {

If I want to test that method Foo will pass in a certain scenario and fail
in another scenario should I have a test for each scenario or should I have
all scenarios tested in a method TestFoo_Do()?

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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 4 | next ›
Discussion Overview
groupgolang-nuts @
postedJun 16, '16 at 2:04p
activeJun 17, '16 at 1:32p

3 users in discussion

Paraiso Marc: 2 posts Rayland: 1 post Henry: 1 post



site design / logo © 2021 Grokbase