courtney icon indicating copy to clipboard operation
courtney copied to clipboard

Option to exclude returns by context

Open imsodin opened this issue 6 years ago • 0 comments

When using contexts extensively, coverage tends to be flaky because different exit paths may be taken. Some sentry type selects look like this:

	select {
	case <-ctx.Done():
		return ctx.Err()
	default:
	}

however in the general case it's just on case in a bigger select statement:

	select {
	[...]
	case <-ctx.Done():
		return ctx.Err()
	}

Being able to filter that out would be really nice.

imsodin avatar Mar 31 '20 09:03 imsodin