Closed laugengebaeck closed 3 years ago
Totals | |
---|---|
Change from base Build 949369331: | 6.1% |
Covered Lines: | 1124 |
Relevant Lines: | 1435 |
I found a really weird code duplication in ICFolder>>retrieveBodyFor:
and ICEmail>>retrieveBody
. Which one is the "right" one and which one shoud be tested?
Does someone know more about this (@jannikgro or @elenagensch maybe)?
Edit: Jan said the ICFolder
one was the right one and the other is dead code (now removed)
Most of the remaining untested methods in ICConnectionHandler
, ICEndpoint
and ICFolder
cover server interaction. We already have an ICMockServer
which we could use for that, but it seems complicated to implement. As our focus isn't TDD, we should probably stop here. What do you think?
I agree. These aren't methods we implemented ourself and it would take too much time to understand ICMockServer
as we haven't worked intensively with the IMAP protocol yet. Let's leave the remaining methods untested for now and come back to them if we have more time in another sprint.
Would also merge this today (maybe somebody wants to do a quick review again :)
What does this change?
This adds missing tests for classes with poor test coverage. Currently finished are:
ICAccountInfo
ICConnectionHandler
ICEmail
ICEndPoint
ICFolder
ICStreamWrapper
(wrapper class with only non-testable methods left)Co-authored-by: Smilla Fox foxsmilla@gmail.com Co-authored-by: Lukas Rost lukas.rost@student.hpi.de
Checklist