I am covering my project with unit tests, and there are some lines which obviously will never be reached. E.g.:
constructor TSomeClass.Create;
begin
inherited Create;
raise ENotSupportedException.Create('This class does not support parameterless Create') at ReturnAddress;
end;//<- this line generates code but is unreachable
To measure coverage I am using Delphi-code-coverage
As far as I googled, and browsed its code I found no way to mark this end;
as one which cannot be covered.
So, is there any way to mark such lines?