I'm kind of new to unit testing so please excuse a naive question.
I've heard the idea of not testing anything that has a cyclomatic complexity of 1. This is interesting to me b/c I do a lot of interaction testing between events. For example, button is pressed, fires an event, raises event on presenter, presenter modifies the model, and presenter calls method on the view. So I test to make sure that when the button event is raised, the right method on the view is called.
Each method in this sequence may have a cyclomatic complexity of 1. There is no branching. But if I want to test it as a "system" (i.e. view, presenter, model) cyclomatic complexity is higher -- adding up all the 1-valued methods in the event sequence.
So my question is when people suggest that I don't need to test methods that have a cyclomatic complexity of 1, are they not talking about interaction tests for testing interactions between classes like I've described above?
I've come across this idea twice this week - once in a Mark Seemann Pluralsight video and once here: http://webquali.com/blog/67/15-ways-to-write-beautiful-code.html.