Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

CodeCoverage again#335

Merged
mrward merged 2 commits intoicsharpcode:masterfrom
ddur:master
Feb 3, 2014
Merged

CodeCoverage again#335
mrward merged 2 commits intoicsharpcode:masterfrom
ddur:master

Conversation

@ddur
Copy link
Copy Markdown

@ddur ddur commented Feb 3, 2014

  1. Removed CodeCoverageStringTextSource debug assertions/failures.
    Why?
    Running SD5 in debug mode large number of assertions is revealed.
    Why?
    When using CodeContract ContractClass/ContractClassFor attributes,
    ccrewrite inserts in "ContractClass" attributed class/interface SequencePoints from "ContractClassFor" attributed class. If "ContractClassFor" class is in another file, CodeCoverageStringTextSource.GetText(..) receives invalid line/column/endline/endcolumn arguments that fails or do not exists in file containing "ContractClass" attributed class/interface.
    Why?
    Afaik, cannot avoid invalid requests, because to filter them out, first need GetText() for all SequencePoints.

  2. CodeCoverageMethodElement.cs changes & refactoring
    Why?
    While trying to fix 1), in some rare cases SequencePoints are omitted.

  3. I certify that I own, and have sufficient rights to contribute, all source code and related material intended to be compiled or integrated with the source code for the #develop open source product (the "Contribution"). My Contribution is licensed under the MIT License.

Dragan added 2 commits February 2, 2014 23:15
By ccrewrite inserted alien SequencePoints
GetText() receives lots of invalid calls
@ddur
Copy link
Copy Markdown
Author

ddur commented Feb 3, 2014

Btw, how often is StringResource.resx updated from database to GitHub and how/where can I see that database or UI access?

http://www.youtube.com/watch?v=PFrufPxjwX0&feature=player_detailpage#t=163

@mrward
Copy link
Copy Markdown
Member

mrward commented Feb 3, 2014

Usually it is updated when a developer adds new string resources and also before a new release. There is a web site for reading/updating the string resources which you will need an account to use.

mrward added a commit that referenced this pull request Feb 3, 2014
@mrward mrward merged commit 5752cd3 into icsharpcode:master Feb 3, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants