rcov 0.9.3-java → 0.9.4-java
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rcov/formatters/base_formatter.rb +10 -9
- data/lib/rcov/version.rb +2 -2
- metadata +1 -1
@@ -1,15 +1,16 @@
|
|
1
1
|
module Rcov
|
2
2
|
class BaseFormatter # :nodoc:
|
3
3
|
require 'pathname'
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
4
|
+
require 'rbconfig'
|
5
|
+
RCOV_IGNORE_REGEXPS = [ /\A#{Regexp.escape(Pathname.new(::RbConfig::CONFIG['libdir']).cleanpath.to_s)}/,
|
6
|
+
/\btc_[^.]*.rb/,
|
7
|
+
/_test\.rb\z/,
|
8
|
+
/\btest\//,
|
9
|
+
/\bvendor\//,
|
10
|
+
/\A#{Regexp.escape(__FILE__)}\z/
|
11
|
+
]
|
12
|
+
|
13
|
+
DEFAULT_OPTS = { :ignore => RCOV_IGNORE_REGEXPS, :sort => :name, :sort_reverse => false,
|
13
14
|
:output_threshold => 101, :dont_ignore => [], :callsite_analyzer => nil, \
|
14
15
|
:comments_run_by_default => false }
|
15
16
|
|
data/lib/rcov/version.rb
CHANGED