- Notifications
You must be signed in to change notification settings - Fork0
Regular expression (regex) for matching ugly code that coverage tools add during the test process. Like this one `__cov_Ejgcx$XN18CSfmeWn$f7vQ.f['2']++;`
License
NotificationsYou must be signed in to change notification settings
regexhq/coverage-code-regex
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Regular expression (regex) for matching ugly code that coverage tools add during the test process.Like this one
__cov_Ejgcx$XN18CSfmeWn$f7vQ.f['2']++;
npm i --save coverage-code-regexnpmtest
For more use-cases see thetests
varcoverageCodeRegex=require('coverage-code-regex');varfixture='var a = [1,2,3];__cov_Ejgcx$XN18CSfmeWn$f7vQ.f['2']++;var b = 123;';coverageCodeRegex().test(fixture);//=> truecoverageCodeRegex().test('var a = [1,2,3]; var b = 123;');//=> false
Charlike Mike Reagent
Copyright (c) 2014-2015Charlike Mike Reagent,contributors.
Released under theMIT
license.
Powered and automated bykdf, January 28, 2015
About
Regular expression (regex) for matching ugly code that coverage tools add during the test process. Like this one `__cov_Ejgcx$XN18CSfmeWn$f7vQ.f['2']++;`
Resources
License
Stars
Watchers
Forks
Packages0
No packages published