-
Bug
-
Resolution: Won't Fix
-
Minor
-
None
-
Coverage Plugin 1.1.0.0
When the Cobertura recorder encounters a method a duplicate name, an error occurs:
There is already a child [METHOD] op_Implicit(X.Y.Z.ConversationIdentifier) <0> with the name op_Implicit(X.Y.Z.ConversationIdentifier) in [CLASS] X.Y.Z.ConversationIdentifier <19, LINE: 60.81% (45/74)>
The code generating the report is as follows, using implicit operators in C#:
public static implicit operator Guid(ConversationIdentifier conversation) => conversation.Id; public static implicit operator string(ConversationIdentifier conversation) => conversation.Id.ToString();
The Cobertura XML file contains the following:
<method name="op_Implicit" signature="(X.Y.Z.ConversationIdentifier)" line-rate="1" branch-rate="1" complexity="1"> <lines> <line number="193" hits="41" branch="False" /> </lines> </method> <method name="op_Implicit" signature="(X.Y.Z.ConversationIdentifier)" line-rate="0" branch-rate="1" complexity="1"> <lines> <line number="195" hits="0" branch="False" /> </lines> </method>