Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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

Repository files navigation

npmmit licensebuild statuscoverage status

Regular expression (regex) for matching ugly code that coverage tools add during the test process.Like this one__cov_Ejgcx$XN18CSfmeWn$f7vQ.f['2']++;

Install

npm i --save coverage-code-regexnpmtest

Usage

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

Author

Charlike Mike Reagent

LicenseMIT license

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

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp