rcov 0.8.1.2.0 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- data/BLURB +2 -40
- data/LICENSE +2 -5
- data/Rakefile +32 -106
- data/THANKS +14 -0
- data/bin/rcov +277 -1090
- data/doc/readme_for_api.markdown +22 -0
- data/doc/readme_for_emacs.markdown +52 -0
- data/doc/readme_for_rake.markdown +51 -0
- data/doc/readme_for_vim.markdown +34 -0
- data/{rcov.el → editor-extensions/rcov.el} +0 -0
- data/{rcov.vim → editor-extensions/rcov.vim} +0 -0
- data/ext/rcovrt/1.8/callsite.c +216 -0
- data/ext/rcovrt/1.8/rcovrt.c +287 -0
- data/ext/rcovrt/1.9/callsite.c +234 -0
- data/ext/rcovrt/1.9/rcovrt.c +264 -0
- data/ext/rcovrt/extconf.rb +12 -2
- data/lib/rcov.rb +13 -968
- data/lib/rcov/call_site_analyzer.rb +225 -0
- data/lib/rcov/code_coverage_analyzer.rb +268 -0
- data/lib/rcov/coverage_info.rb +36 -0
- data/lib/rcov/differential_analyzer.rb +116 -0
- data/lib/rcov/file_statistics.rb +334 -0
- data/lib/rcov/formatters.rb +13 -0
- data/lib/rcov/formatters/base_formatter.rb +173 -0
- data/lib/rcov/formatters/failure_report.rb +15 -0
- data/lib/rcov/formatters/full_text_report.rb +48 -0
- data/lib/rcov/formatters/html_coverage.rb +274 -0
- data/lib/rcov/formatters/html_erb_template.rb +62 -0
- data/lib/rcov/formatters/text_coverage_diff.rb +193 -0
- data/lib/rcov/formatters/text_report.rb +32 -0
- data/lib/rcov/formatters/text_summary.rb +11 -0
- data/lib/rcov/lowlevel.rb +16 -17
- data/lib/rcov/rcovtask.rb +21 -22
- data/lib/rcov/templates/detail.html.erb +64 -0
- data/lib/rcov/templates/index.html.erb +93 -0
- data/lib/rcov/templates/jquery-1.3.2.min.js +19 -0
- data/lib/rcov/templates/jquery.tablesorter.min.js +15 -0
- data/lib/rcov/templates/print.css +12 -0
- data/lib/rcov/templates/rcov.js +42 -0
- data/lib/rcov/templates/screen.css +270 -0
- data/lib/rcov/version.rb +5 -8
- data/setup.rb +5 -2
- data/test/{sample_01.rb → assets/sample_01.rb} +0 -0
- data/test/{sample_02.rb → assets/sample_02.rb} +0 -0
- data/test/{sample_03.rb → assets/sample_03.rb} +0 -0
- data/test/{sample_04.rb → assets/sample_04.rb} +0 -0
- data/test/{sample_05-new.rb → assets/sample_05-new.rb} +0 -0
- data/test/{sample_05-old.rb → assets/sample_05-old.rb} +0 -0
- data/test/{sample_05.rb → assets/sample_05.rb} +0 -0
- data/test/{test_CallSiteAnalyzer.rb → call_site_analyzer_test.rb} +57 -81
- data/test/{test_CodeCoverageAnalyzer.rb → code_coverage_analyzer_test.rb} +71 -35
- data/test/{test_FileStatistics.rb → file_statistics_test.rb} +34 -36
- data/test/{test_functional.rb → functional_test.rb} +21 -35
- metadata +91 -69
- data/CHANGES +0 -177
- data/LEGAL +0 -36
- data/README.API +0 -42
- data/README.emacs +0 -64
- data/README.en +0 -130
- data/README.rake +0 -62
- data/README.rant +0 -68
- data/README.vim +0 -47
- data/Rantfile +0 -76
- data/ext/rcovrt/callsite.c +0 -242
- data/ext/rcovrt/rcovrt.c +0 -329
- data/lib/rcov/rant.rb +0 -87
- data/lib/rcov/report.rb +0 -1236
- data/mingw-rbconfig.rb +0 -174
data/mingw-rbconfig.rb
DELETED
@@ -1,174 +0,0 @@
|
|
1
|
-
|
2
|
-
# This rbconfig.rb corresponds to a Ruby installation for win32 cross-compiled
|
3
|
-
# with mingw under i686-linux. It can be used to cross-compile extensions for
|
4
|
-
# win32 using said toolchain.
|
5
|
-
#
|
6
|
-
# This file assumes that a cross-compiled mingw32 build (compatible with the
|
7
|
-
# mswin32 builds) is installed under $HOME/ruby-mingw32.
|
8
|
-
|
9
|
-
module Config
|
10
|
-
#RUBY_VERSION == "1.8.5" or
|
11
|
-
# raise "ruby lib version (1.8.5) doesn't match executable version (#{RUBY_VERSION})"
|
12
|
-
|
13
|
-
TOPDIR = File.dirname(__FILE__).chomp!("/lib/ruby/1.8/i386-mingw32")
|
14
|
-
DESTDIR = '' unless defined? DESTDIR
|
15
|
-
CONFIG = {}
|
16
|
-
CONFIG["DESTDIR"] = DESTDIR
|
17
|
-
CONFIG["INSTALL"] = "/usr/bin/install -c"
|
18
|
-
CONFIG["prefix"] = (TOPDIR || DESTDIR + "#{ENV["HOME"]}/ruby-mingw32")
|
19
|
-
CONFIG["EXEEXT"] = ".exe"
|
20
|
-
CONFIG["ruby_install_name"] = "ruby"
|
21
|
-
CONFIG["RUBY_INSTALL_NAME"] = "ruby"
|
22
|
-
CONFIG["RUBY_SO_NAME"] = "msvcrt-ruby18"
|
23
|
-
CONFIG["SHELL"] = "/bin/sh"
|
24
|
-
CONFIG["PATH_SEPARATOR"] = ":"
|
25
|
-
CONFIG["PACKAGE_NAME"] = ""
|
26
|
-
CONFIG["PACKAGE_TARNAME"] = ""
|
27
|
-
CONFIG["PACKAGE_VERSION"] = ""
|
28
|
-
CONFIG["PACKAGE_STRING"] = ""
|
29
|
-
CONFIG["PACKAGE_BUGREPORT"] = ""
|
30
|
-
CONFIG["exec_prefix"] = "$(prefix)"
|
31
|
-
CONFIG["bindir"] = "$(exec_prefix)/bin"
|
32
|
-
CONFIG["sbindir"] = "$(exec_prefix)/sbin"
|
33
|
-
CONFIG["libexecdir"] = "$(exec_prefix)/libexec"
|
34
|
-
CONFIG["datadir"] = "$(prefix)/share"
|
35
|
-
CONFIG["sysconfdir"] = "$(prefix)/etc"
|
36
|
-
CONFIG["sharedstatedir"] = "$(prefix)/com"
|
37
|
-
CONFIG["localstatedir"] = "$(prefix)/var"
|
38
|
-
CONFIG["libdir"] = "$(exec_prefix)/lib"
|
39
|
-
CONFIG["includedir"] = "$(prefix)/include"
|
40
|
-
CONFIG["oldincludedir"] = "/usr/include"
|
41
|
-
CONFIG["infodir"] = "$(prefix)/info"
|
42
|
-
CONFIG["mandir"] = "$(prefix)/man"
|
43
|
-
CONFIG["build_alias"] = "i686-linux"
|
44
|
-
CONFIG["host_alias"] = "i586-mingw32msvc"
|
45
|
-
CONFIG["target_alias"] = "i386-mingw32"
|
46
|
-
CONFIG["ECHO_C"] = ""
|
47
|
-
CONFIG["ECHO_N"] = "-n"
|
48
|
-
CONFIG["ECHO_T"] = ""
|
49
|
-
CONFIG["LIBS"] = "-lwsock32 "
|
50
|
-
CONFIG["MAJOR"] = "1"
|
51
|
-
CONFIG["MINOR"] = "8"
|
52
|
-
CONFIG["TEENY"] = "4"
|
53
|
-
CONFIG["build"] = "i686-pc-linux"
|
54
|
-
CONFIG["build_cpu"] = "i686"
|
55
|
-
CONFIG["build_vendor"] = "pc"
|
56
|
-
CONFIG["build_os"] = "linux"
|
57
|
-
CONFIG["host"] = "i586-pc-mingw32msvc"
|
58
|
-
CONFIG["host_cpu"] = "i586"
|
59
|
-
CONFIG["host_vendor"] = "pc"
|
60
|
-
CONFIG["host_os"] = "mingw32msvc"
|
61
|
-
CONFIG["target"] = "i386-pc-mingw32"
|
62
|
-
CONFIG["target_cpu"] = "i386"
|
63
|
-
CONFIG["target_vendor"] = "pc"
|
64
|
-
CONFIG["target_os"] = "mingw32"
|
65
|
-
CONFIG["CC"] = "i586-mingw32msvc-gcc"
|
66
|
-
CONFIG["CFLAGS"] = "-g -O2 "
|
67
|
-
CONFIG["LDFLAGS"] = ""
|
68
|
-
CONFIG["CPPFLAGS"] = ""
|
69
|
-
CONFIG["OBJEXT"] = "o"
|
70
|
-
CONFIG["CPP"] = "i586-mingw32msvc-gcc -E"
|
71
|
-
CONFIG["EGREP"] = "grep -E"
|
72
|
-
CONFIG["GNU_LD"] = "yes"
|
73
|
-
CONFIG["CPPOUTFILE"] = "-o conftest.i"
|
74
|
-
CONFIG["OUTFLAG"] = "-o "
|
75
|
-
CONFIG["YACC"] = "bison -y"
|
76
|
-
CONFIG["RANLIB"] = "i586-mingw32msvc-ranlib"
|
77
|
-
CONFIG["AR"] = "i586-mingw32msvc-ar"
|
78
|
-
CONFIG["NM"] = "i586-mingw32msvc-nm"
|
79
|
-
CONFIG["WINDRES"] = "i586-mingw32msvc-windres"
|
80
|
-
CONFIG["DLLWRAP"] = "i586-mingw32msvc-dllwrap"
|
81
|
-
CONFIG["OBJDUMP"] = "i586-mingw32msvc-objdump"
|
82
|
-
CONFIG["LN_S"] = "ln -s"
|
83
|
-
CONFIG["SET_MAKE"] = ""
|
84
|
-
CONFIG["INSTALL_PROGRAM"] = "$(INSTALL)"
|
85
|
-
CONFIG["INSTALL_SCRIPT"] = "$(INSTALL)"
|
86
|
-
CONFIG["INSTALL_DATA"] = "$(INSTALL) -m 644"
|
87
|
-
CONFIG["RM"] = "rm -f"
|
88
|
-
CONFIG["CP"] = "cp"
|
89
|
-
CONFIG["MAKEDIRS"] = "mkdir -p"
|
90
|
-
CONFIG["LIBOBJS"] = " fileblocks$(U).o crypt$(U).o flock$(U).o acosh$(U).o win32$(U).o"
|
91
|
-
CONFIG["ALLOCA"] = ""
|
92
|
-
CONFIG["DLDFLAGS"] = " -Wl,--enable-auto-import,--export-all"
|
93
|
-
CONFIG["ARCH_FLAG"] = ""
|
94
|
-
CONFIG["STATIC"] = ""
|
95
|
-
CONFIG["CCDLFLAGS"] = ""
|
96
|
-
CONFIG["LDSHARED"] = "i586-mingw32msvc-gcc -shared -s"
|
97
|
-
CONFIG["DLEXT"] = "so"
|
98
|
-
CONFIG["DLEXT2"] = "dll"
|
99
|
-
CONFIG["LIBEXT"] = "a"
|
100
|
-
CONFIG["LINK_SO"] = ""
|
101
|
-
CONFIG["LIBPATHFLAG"] = " -L\"%s\""
|
102
|
-
CONFIG["RPATHFLAG"] = ""
|
103
|
-
CONFIG["LIBPATHENV"] = ""
|
104
|
-
CONFIG["TRY_LINK"] = ""
|
105
|
-
CONFIG["STRIP"] = "strip"
|
106
|
-
CONFIG["EXTSTATIC"] = ""
|
107
|
-
CONFIG["setup"] = "Setup"
|
108
|
-
CONFIG["MINIRUBY"] = "ruby -rfake"
|
109
|
-
CONFIG["PREP"] = "fake.rb"
|
110
|
-
CONFIG["RUNRUBY"] = "$(MINIRUBY) -I`cd $(srcdir)/lib; pwd`"
|
111
|
-
CONFIG["EXTOUT"] = ".ext"
|
112
|
-
CONFIG["ARCHFILE"] = ""
|
113
|
-
CONFIG["RDOCTARGET"] = ""
|
114
|
-
CONFIG["XCFLAGS"] = " -DRUBY_EXPORT"
|
115
|
-
CONFIG["XLDFLAGS"] = " -Wl,--stack,0x02000000 -L."
|
116
|
-
CONFIG["LIBRUBY_LDSHARED"] = "i586-mingw32msvc-gcc -shared -s"
|
117
|
-
CONFIG["LIBRUBY_DLDFLAGS"] = " -Wl,--enable-auto-import,--export-all -Wl,--out-implib=$(LIBRUBY)"
|
118
|
-
CONFIG["rubyw_install_name"] = "rubyw"
|
119
|
-
CONFIG["RUBYW_INSTALL_NAME"] = "rubyw"
|
120
|
-
CONFIG["LIBRUBY_A"] = "lib$(RUBY_SO_NAME)-static.a"
|
121
|
-
CONFIG["LIBRUBY_SO"] = "$(RUBY_SO_NAME).dll"
|
122
|
-
CONFIG["LIBRUBY_ALIASES"] = ""
|
123
|
-
CONFIG["LIBRUBY"] = "lib$(LIBRUBY_SO).a"
|
124
|
-
CONFIG["LIBRUBYARG"] = "$(LIBRUBYARG_SHARED)"
|
125
|
-
CONFIG["LIBRUBYARG_STATIC"] = "-l$(RUBY_SO_NAME)-static"
|
126
|
-
CONFIG["LIBRUBYARG_SHARED"] = "-l$(RUBY_SO_NAME)"
|
127
|
-
CONFIG["SOLIBS"] = "$(LIBS)"
|
128
|
-
CONFIG["DLDLIBS"] = ""
|
129
|
-
CONFIG["ENABLE_SHARED"] = "yes"
|
130
|
-
CONFIG["MAINLIBS"] = ""
|
131
|
-
CONFIG["COMMON_LIBS"] = "m"
|
132
|
-
CONFIG["COMMON_MACROS"] = ""
|
133
|
-
CONFIG["COMMON_HEADERS"] = "windows.h winsock.h"
|
134
|
-
CONFIG["EXPORT_PREFIX"] = ""
|
135
|
-
CONFIG["MINIOBJS"] = "dmydln.o"
|
136
|
-
CONFIG["MAKEFILES"] = "Makefile GNUmakefile"
|
137
|
-
CONFIG["arch"] = "i386-mingw32"
|
138
|
-
CONFIG["sitearch"] = "i386-msvcrt"
|
139
|
-
CONFIG["sitedir"] = "$(prefix)/lib/ruby/site_ruby"
|
140
|
-
CONFIG["configure_args"] = "'--host=i586-mingw32msvc' '--target=i386-mingw32' '--build=i686-linux' '--prefix=#{ENV["HOME"]}/ruby-mingw32' 'build_alias=i686-linux' 'host_alias=i586-mingw32msvc' 'target_alias=i386-mingw32'"
|
141
|
-
CONFIG["NROFF"] = "/usr/bin/nroff"
|
142
|
-
CONFIG["MANTYPE"] = "doc"
|
143
|
-
CONFIG["LTLIBOBJS"] = " fileblocks$(U).lo crypt$(U).lo flock$(U).lo acosh$(U).lo win32$(U).lo"
|
144
|
-
CONFIG["ruby_version"] = "$(MAJOR).$(MINOR)"
|
145
|
-
CONFIG["rubylibdir"] = "$(libdir)/ruby/$(ruby_version)"
|
146
|
-
CONFIG["archdir"] = "$(rubylibdir)/$(arch)"
|
147
|
-
CONFIG["sitelibdir"] = "$(sitedir)/$(ruby_version)"
|
148
|
-
CONFIG["sitearchdir"] = "$(sitelibdir)/$(sitearch)"
|
149
|
-
CONFIG["topdir"] = File.dirname(__FILE__)
|
150
|
-
MAKEFILE_CONFIG = {}
|
151
|
-
CONFIG.each{|k,v| MAKEFILE_CONFIG[k] = v.dup}
|
152
|
-
def Config::expand(val, config = CONFIG)
|
153
|
-
val.gsub!(/\$\$|\$\(([^()]+)\)|\$\{([^{}]+)\}/) do |var|
|
154
|
-
if !(v = $1 || $2)
|
155
|
-
'$'
|
156
|
-
elsif key = config[v = v[/\A[^:]+(?=(?::(.*?)=(.*))?\z)/]]
|
157
|
-
pat, sub = $1, $2
|
158
|
-
config[v] = false
|
159
|
-
Config::expand(key, config)
|
160
|
-
config[v] = key
|
161
|
-
key = key.gsub(/#{Regexp.quote(pat)}(?=\s|\z)/n) {sub} if pat
|
162
|
-
key
|
163
|
-
else
|
164
|
-
var
|
165
|
-
end
|
166
|
-
end
|
167
|
-
val
|
168
|
-
end
|
169
|
-
CONFIG.each_value do |val|
|
170
|
-
Config::expand(val)
|
171
|
-
end
|
172
|
-
end
|
173
|
-
RbConfig = Config # compatibility for ruby-1.9
|
174
|
-
CROSS_COMPILING = nil unless defined? CROSS_COMPILING
|