flog 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/History.txt +7 -0
- data/Rakefile +8 -11
- data/bin/flog +0 -2
- data/lib/flog.rb +67 -73
- data/test/test_flog.rb +1361 -1013
- data/test/test_flog_command.rb +282 -282
- data/test/test_flog_integration.rb +904 -904
- metadata +12 -8
- metadata.gz.sig +0 -0
@@ -2,930 +2,180 @@ require 'test/test_helper'
|
|
2
2
|
require 'flog'
|
3
3
|
require 'sexp_processor'
|
4
4
|
|
5
|
-
describe "Flog Command Line" do
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
before :each do
|
14
|
-
@files = ['/empty/empty.rb']
|
15
|
-
end
|
16
|
-
|
17
|
-
it 'should not fail when flogging the given input' do
|
18
|
-
lambda { @flog.flog_files(fixture_files(@files)) }.wont_raise_error
|
19
|
-
end
|
20
|
-
|
21
|
-
it 'should report an overall flog score of 0' do
|
22
|
-
@flog.flog_files(fixture_files(@files))
|
23
|
-
@flog.total.must_be_close_to 0.0
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
describe 'when given a simple file' do
|
28
|
-
before :each do
|
29
|
-
@files = ['/simple/simple.rb']
|
30
|
-
@calls = YAML.load(<<-YAML)
|
31
|
-
---
|
32
|
-
RailsClassMethods#generate:
|
33
|
-
:save: 1.4
|
34
|
-
:assignment: 2.80000000000001
|
35
|
-
:spawn: 1.4
|
36
|
-
RailsClassMethods#exemplar_path:
|
37
|
-
:join: 1.4
|
38
|
-
ClassMethods#generator_for:
|
39
|
-
:is_a?: 2.8
|
40
|
-
:arity: 2.0
|
41
|
-
:assignment: 16.5
|
42
|
-
:respond_to?: 1.7
|
43
|
-
:first: 1.6
|
44
|
-
:branch: 19.0
|
45
|
-
:name: 2.0
|
46
|
-
:lit_fixnum: 0.45
|
47
|
-
:length: 1.8
|
48
|
-
:raise: 8.60000000000001
|
49
|
-
:include?: 1.8
|
50
|
-
:lambda: 1.8
|
51
|
-
:to_sym: 3.1
|
52
|
-
:[]: 16.1
|
53
|
-
:==: 1.6
|
54
|
-
:keys: 3.8
|
55
|
-
:record_generator_for: 5.00000000000001
|
56
|
-
ObjectDaddy#included:
|
57
|
-
:extend: 5.6
|
58
|
-
:branch: 2.6
|
59
|
-
:sclass: 7.5
|
60
|
-
:alias_method: 8.4
|
61
|
-
:<: 1.4
|
62
|
-
ClassMethods#underscore:
|
63
|
-
:gsub: 1.6
|
64
|
-
:downcase: 1.4
|
65
|
-
ClassMethods#gather_exemplars:
|
66
|
-
:load: 1.5
|
67
|
-
:underscore: 1.6
|
68
|
-
:assignment: 4.40000000000001
|
69
|
-
:respond_to?: 1.4
|
70
|
-
:superclass: 5.50000000000001
|
71
|
-
:branch: 6.00000000000001
|
72
|
-
:name: 1.8
|
73
|
-
:gather_exemplars: 1.6
|
74
|
-
:exemplars_generated: 1.4
|
75
|
-
:exists?: 1.4
|
76
|
-
:join: 1.4
|
77
|
-
:dup: 1.6
|
78
|
-
:exemplar_path: 1.6
|
79
|
-
:generators: 1.9
|
80
|
-
ClassMethods#none:
|
81
|
-
:protected: 2.6
|
82
|
-
:attr_accessor: 1.3
|
83
|
-
:attr_reader: 1.3
|
84
|
-
Foo#initialize:
|
85
|
-
:super: 1.2
|
86
|
-
main#none:
|
87
|
-
:assignment: 1.1
|
88
|
-
:attr_writer: 1.1
|
89
|
-
:branch: 5.60000000000001
|
90
|
-
:lit_fixnum: 0.275000000000001
|
91
|
-
:puts: 1.1
|
92
|
-
:alias: 2.20000000000001
|
93
|
-
ClassMethods#record_generator_for:
|
94
|
-
:assignment: 1.4
|
95
|
-
:branch: 3.20000000000001
|
96
|
-
:raise: 1.5
|
97
|
-
:==: 1.4
|
98
|
-
:[]: 3.50000000000001
|
99
|
-
:generators: 3.50000000000001
|
100
|
-
RailsClassMethods#validates_presence_of_with_object_daddy:
|
101
|
-
:is_a?: 1.4
|
102
|
-
:assignment: 5.80000000000001
|
103
|
-
:branch: 2.80000000000001
|
104
|
-
:last: 1.6
|
105
|
-
:dup: 1.4
|
106
|
-
:pop: 1.5
|
107
|
-
:each: 1.4
|
108
|
-
:validates_presence_of_without_object_daddy: 1.4
|
109
|
-
ClassMethods#presence_validated_attributes:
|
110
|
-
:merge: 1.5
|
111
|
-
:presence_validated_attributes: 1.7
|
112
|
-
:assignment: 4.30000000000001
|
113
|
-
:respond_to?: 1.4
|
114
|
-
:superclass: 3.50000000000001
|
115
|
-
:branch: 1.4
|
116
|
-
ClassMethods#spawn:
|
117
|
-
:presence_validated_attributes: 5.4
|
118
|
-
:each_pair: 1.4
|
119
|
-
:assignment: 35.3
|
120
|
-
:generate: 1.7
|
121
|
-
:class_name: 2.1
|
122
|
-
:call: 1.8
|
123
|
-
:reflect_on_all_associations: 1.8
|
124
|
-
:branch: 24.0
|
125
|
-
:constantize: 1.9
|
126
|
-
:name: 3.9
|
127
|
-
:gather_exemplars: 1.4
|
128
|
-
:select: 1.6
|
129
|
-
:-: 1.8
|
130
|
-
:send: 5.4
|
131
|
-
:to_a: 1.6
|
132
|
-
:empty?: 1.5
|
133
|
-
:new: 1.4
|
134
|
-
:reject!: 1.7
|
135
|
-
:next: 1.9
|
136
|
-
:delete: 1.9
|
137
|
-
:include?: 1.8
|
138
|
-
:primary_key_name: 4.2
|
139
|
-
:to_s: 5.7
|
140
|
-
:each: 3.2
|
141
|
-
:keys: 4.0
|
142
|
-
:[]: 23.6
|
143
|
-
:generators: 1.7
|
144
|
-
:scope: 1.6
|
145
|
-
RailsClassMethods#generate!:
|
146
|
-
:save!: 1.4
|
147
|
-
:assignment: 2.80000000000001
|
148
|
-
:spawn: 1.4
|
149
|
-
YAML
|
150
|
-
|
151
|
-
@totals = YAML.load(<<-YAML)
|
152
|
-
---
|
153
|
-
RailsClassMethods#generate: 3.95979797464467
|
154
|
-
ObjectDaddy#included: 23.0471256342304
|
155
|
-
ClassMethods#generator_for: 59.7115776043475
|
156
|
-
RailsClassMethods#exemplar_path: 1.4
|
157
|
-
ClassMethods#underscore: 3.00000000000001
|
158
|
-
ClassMethods#none: 5.2
|
159
|
-
ClassMethods#gather_exemplars: 23.8882816460289
|
160
|
-
ClassMethods#record_generator_for: 10.4980950652964
|
161
|
-
main#none: 7.37737249974544
|
162
|
-
Foo#initialize: 1.2
|
163
|
-
ClassMethods#spawn: 96.0108847995893
|
164
|
-
ClassMethods#presence_validated_attributes: 9.27685291464731
|
165
|
-
RailsClassMethods#validates_presence_of_with_object_daddy: 10.8245092267502
|
166
|
-
RailsClassMethods#generate!: 3.95979797464467
|
167
|
-
YAML
|
168
|
-
end
|
169
|
-
|
170
|
-
it 'should not fail when flogging the given input' do
|
171
|
-
lambda { @flog.flog_files(fixture_files(@files)) }.wont_raise_error
|
172
|
-
end
|
173
|
-
|
174
|
-
currently 'should report an overall flog score of 259.354295339925' do
|
175
|
-
@flog.flog_files(fixture_files(@files))
|
176
|
-
@flog.total.must_be_close_to 259.354295339925
|
177
|
-
end
|
178
|
-
|
179
|
-
currently 'should compute the same call data as flog-1.1.0' do
|
180
|
-
@flog.flog_files(fixture_files(@files))
|
181
|
-
@flog.calls.each_pair do |k,v|
|
182
|
-
v.each_pair do |x, y|
|
183
|
-
@calls[k][x].must_be_close_to y
|
184
|
-
end
|
185
|
-
end
|
186
|
-
end
|
187
|
-
|
188
|
-
currently 'should compute the same totals data as flog-1.1.0' do
|
189
|
-
@flog.flog_files(fixture_files(@files))
|
190
|
-
@flog.totals.each_pair do |k,v|
|
191
|
-
v.must_be_close_to @totals[k]
|
192
|
-
end
|
193
|
-
end
|
194
|
-
end
|
195
|
-
|
196
|
-
# FIX: this is totally unmaintainable
|
197
|
-
# describe 'when given a directory of files' do
|
5
|
+
# describe "Flog Command Line" do
|
6
|
+
# before :each do
|
7
|
+
# @flog = Flog.new({})
|
8
|
+
# end
|
9
|
+
#
|
10
|
+
# describe 'flog_files' do
|
11
|
+
#
|
12
|
+
# describe 'when given empty input' do
|
198
13
|
# before :each do
|
199
|
-
# @files = ['/
|
200
|
-
# @calls = YAML.load(<<-YAML)
|
201
|
-
# ---
|
202
|
-
# BotSender#validate:
|
203
|
-
# :assignment: 1.3
|
204
|
-
# BotParserFormat#description:
|
205
|
-
# :join: 1.3
|
206
|
-
# :branch: 1.2
|
207
|
-
# :empty?: 1.2
|
208
|
-
# BotParserFormat#initialize:
|
209
|
-
# :assignment: 4.8
|
210
|
-
# :branch: 1.2
|
211
|
-
# :raise: 1.3
|
212
|
-
# :nil?: 1.2
|
213
|
-
# BotParser#parse:
|
214
|
-
# :merge: 1.3
|
215
|
-
# :detect: 1.3
|
216
|
-
# :assignment: 6.7
|
217
|
-
# :branch: 3.9
|
218
|
-
# :empty?: 1.3
|
219
|
-
# :process: 1.4
|
220
|
-
# :formats: 1.5
|
221
|
-
# register_format#video:
|
222
|
-
# :register_format: 1.2
|
223
|
-
# :assignment: 3.6
|
224
|
-
# :lit_fixnum: 1.05
|
225
|
-
# :[]: 3.6
|
226
|
-
# register_format#image:
|
227
|
-
# :register_format: 1.2
|
228
|
-
# :assignment: 3.6
|
229
|
-
# :lit_fixnum: 1.05
|
230
|
-
# :[]: 3.6
|
231
|
-
# BotFilter#process:
|
232
|
-
# :class: 1.6
|
233
|
-
# :options: 1.8
|
234
|
-
# :kinds: 1.4
|
235
|
-
# :assignment: 5.4
|
236
|
-
# :branch: 2.5
|
237
|
-
# :get: 1.8
|
238
|
-
# :process: 1.4
|
239
|
-
# :new: 1.6
|
240
|
-
# :each: 1.2
|
241
|
-
# BotFilter#register:
|
242
|
-
# :<<: 1.8
|
243
|
-
# BotSender#deliver:
|
244
|
-
# :respond_to?: 1.3
|
245
|
-
# :assignment: 2.7
|
246
|
-
# :send: 4.2
|
247
|
-
# :branch: 5.2
|
248
|
-
# :raise: 1.4
|
249
|
-
# :to_s: 1.5
|
250
|
-
# :to_sym: 1.3
|
251
|
-
# :[]: 4.5
|
252
|
-
# register_format#true_or_false:
|
253
|
-
# :register_format: 1.2
|
254
|
-
# :assignment: 3.6
|
255
|
-
# :lit_fixnum: 0.35
|
256
|
-
# :[]: 1.2
|
257
|
-
# BotSender#none:
|
258
|
-
# :assignment: 1.1
|
259
|
-
# :attr_reader: 1.2
|
260
|
-
# BotParser#clear_formats:
|
261
|
-
# :assignment: 1.9
|
262
|
-
# BotSender#register:
|
263
|
-
# :each_pair: 1.3
|
264
|
-
# :assignment: 6.90000000000001
|
265
|
-
# :branch: 1.3
|
266
|
-
# register_format#definition:
|
267
|
-
# :register_format: 1.2
|
268
|
-
# :assignment: 3.6
|
269
|
-
# :lit_fixnum: 0.7
|
270
|
-
# :[]: 2.4
|
271
|
-
# register_format#link:
|
272
|
-
# :register_format: 1.2
|
273
|
-
# :assignment: 3.6
|
274
|
-
# :lit_fixnum: 1.05
|
275
|
-
# :[]: 3.6
|
276
|
-
# BotParser#none:
|
277
|
-
# :assignment: 1.2
|
278
|
-
# :sclass: 6.0
|
279
|
-
# :attr_reader: 1.8
|
280
|
-
# BotParser#register_format:
|
281
|
-
# :<<: 1.9
|
282
|
-
# :new: 2.1
|
283
|
-
# :formats: 2.1
|
284
|
-
# :block_pass: 2.1
|
285
|
-
# BotSender#initialize:
|
286
|
-
# :validate: 1.3
|
287
|
-
# :assignment: 2.6
|
288
|
-
# :[]: 1.3
|
289
|
-
# register_format#quote:
|
290
|
-
# :register_format: 1.2
|
291
|
-
# :assignment: 3.6
|
292
|
-
# :lit_fixnum: 1.05
|
293
|
-
# :[]: 3.6
|
294
|
-
# BotFilter#register_filter:
|
295
|
-
# :register: 1.8
|
296
|
-
# :load: 1.8
|
297
|
-
# :filter_path: 1.8
|
298
|
-
# :assignment: 1.8
|
299
|
-
# :exists?: 1.8
|
300
|
-
# :branch: 1.8
|
301
|
-
# :raise: 1.9
|
302
|
-
# BotSender#kinds:
|
303
|
-
# :assignment: 1.4
|
304
|
-
# :sort_by: 1.3
|
305
|
-
# :branch: 1.3
|
306
|
-
# :to_s: 1.4
|
307
|
-
# :keys: 1.5
|
308
|
-
# main#none:
|
309
|
-
# :require: 2.2
|
310
|
-
# BotFilter#new:
|
311
|
-
# :locate_filters: 1.9
|
312
|
-
# :assignment: 3.6
|
313
|
-
# :send: 5.4
|
314
|
-
# :branch: 1.8
|
315
|
-
# :allocate: 1.8
|
316
|
-
# BotSender#new:
|
317
|
-
# :kinds: 1.5
|
318
|
-
# :assignment: 2.6
|
319
|
-
# :send: 3.9
|
320
|
-
# :branch: 1.3
|
321
|
-
# :allocate: 1.3
|
322
|
-
# :raise: 1.4
|
323
|
-
# :include?: 1.3
|
324
|
-
# :[]: 4.7
|
325
|
-
# BotFilter#locate_filters:
|
326
|
-
# :register_filter: 2.0
|
327
|
-
# :assignment: 2.0
|
328
|
-
# :branch: 5.5
|
329
|
-
# :each: 1.9
|
330
|
-
# :[]: 4.0
|
331
|
-
# BotFilter#get:
|
332
|
-
# :gsub: 2.0
|
333
|
-
# :upcase: 2.1
|
334
|
-
# :assignment: 1.8
|
335
|
-
# :const_get: 1.8
|
336
|
-
# :branch: 2.0
|
337
|
-
# :to_sym: 1.8
|
338
|
-
# :to_s: 2.2
|
339
|
-
# BotParserFormat#none:
|
340
|
-
# :attr_reader: 1.1
|
341
|
-
# BotFilter#filter_path:
|
342
|
-
# :+: 2.0
|
343
|
-
# :dirname: 2.2
|
344
|
-
# :expand_path: 1.8
|
345
|
-
# BotParserFormat#process:
|
346
|
-
# :merge: 1.2
|
347
|
-
# :call: 1.4
|
348
|
-
# :match: 1.2
|
349
|
-
# :format: 1.4
|
350
|
-
# :name: 1.4
|
351
|
-
# :assignment: 1.2
|
352
|
-
# :branch: 1.2
|
353
|
-
# :block: 1.6
|
354
|
-
# BotParser#formats:
|
355
|
-
# :class: 1.5
|
356
|
-
# :formats: 1.3
|
357
|
-
# BotFilter#initialize:
|
358
|
-
# :assignment: 2.4
|
359
|
-
# register_format#fact:
|
360
|
-
# :register_format: 1.2
|
361
|
-
# :assignment: 3.6
|
362
|
-
# :lit_fixnum: 0.35
|
363
|
-
# :[]: 1.2
|
364
|
-
# BotFilter#none:
|
365
|
-
# :sclass: 5.5
|
366
|
-
# :attr_reader: 1.1
|
367
|
-
# YAML
|
368
|
-
|
369
|
-
# @totals = YAML.load(<<-YAML)
|
370
|
-
# ---
|
371
|
-
# BotFilter#register: 1.8
|
372
|
-
# BotFilter#process: 12.3308556069723
|
373
|
-
# register_format#image: 6.86895188511319
|
374
|
-
# register_format#video: 6.86895188511319
|
375
|
-
# BotParser#parse: 10.3121287811974
|
376
|
-
# BotParserFormat#initialize: 5.54346462061408
|
377
|
-
# BotParserFormat#description: 2.77308492477241
|
378
|
-
# BotSender#validate: 1.3
|
379
|
-
# register_format#true_or_false: 4.53017659699929
|
380
|
-
# BotSender#deliver: 15.3613150478727
|
381
|
-
# BotParser#clear_formats: 1.9
|
382
|
-
# BotSender#none: 1.62788205960997
|
383
|
-
# BotParser#none: 7.89176786277955
|
384
|
-
# register_format#link: 6.86895188511319
|
385
|
-
# register_format#definition: 5.60802995712398
|
386
|
-
# BotSender#register: 7.14072825417689
|
387
|
-
# BotParser#register_format: 8.2
|
388
|
-
# BotFilter#register_filter: 9.44933860119321
|
389
|
-
# register_format#quote: 6.86895188511319
|
390
|
-
# BotSender#initialize: 3.67695526217005
|
391
|
-
# BotFilter#new: 9.9503768772846
|
392
|
-
# main#none: 2.2
|
393
|
-
# BotSender#kinds: 4.61410879802373
|
394
|
-
# BotFilter#get: 10.2591422643416
|
395
|
-
# BotFilter#locate_filters: 9.83158176490437
|
396
|
-
# BotSender#new: 14.3965273590543
|
397
|
-
# BotFilter#filter_path: 6.0
|
398
|
-
# BotParserFormat#none: 1.1
|
399
|
-
# BotFilter#initialize: 2.4
|
400
|
-
# BotParser#formats: 2.8
|
401
|
-
# BotParserFormat#process: 8.37376856618333
|
402
|
-
# BotFilter#none: 6.6
|
403
|
-
# register_format#fact: 4.53017659699929
|
404
|
-
# YAML
|
405
|
-
# end
|
406
|
-
|
407
|
-
# it 'should not fail when flogging the given input' do
|
408
|
-
# lambda { @flog.flog_files(fixture_files(@files)) }.should_not raise_error
|
409
|
-
# end
|
410
|
-
|
411
|
-
# currently 'should report an overall flog score of 209.977217342726' do
|
412
|
-
# @flog.flog_files(fixture_files(@files))
|
413
|
-
# @flog.total.must_be_close_to 209.977217342726
|
414
|
-
# end
|
415
|
-
|
416
|
-
# currently 'should compute the same call data as flog-1.1.0' do
|
417
|
-
# @flog.flog_files(fixture_files(@files))
|
418
|
-
# @flog.calls.each_pair do |k,v|
|
419
|
-
# v.each_pair do |x, y|
|
420
|
-
# @calls[k][x].must_be_close_to y
|
421
|
-
# end
|
422
|
-
# end
|
423
|
-
# end
|
424
|
-
|
425
|
-
# currently 'should compute the same totals data as flog-1.1.0' do
|
426
|
-
# @flog.flog_files(fixture_files(@files))
|
427
|
-
# @flog.totals.each_pair {|k,v| v.must_be_close_to @totals[k]
|
14
|
+
# @files = ['/empty/empty.rb']
|
428
15
|
# end
|
16
|
+
#
|
17
|
+
# # it 'should not fail when flogging the given input' do
|
18
|
+
# # lambda { @flog.flog_files(fixture_files(@files)) }.wont_raise_error
|
19
|
+
# # end
|
20
|
+
#
|
21
|
+
# # it 'should report an overall flog score of 0' do
|
22
|
+
# # @flog.flog_files(fixture_files(@files))
|
23
|
+
# # @flog.total.must_be_close_to 0.0
|
24
|
+
# # end
|
429
25
|
# end
|
430
|
-
|
431
|
-
|
432
|
-
# describe 'when given a collection of files' do
|
26
|
+
#
|
27
|
+
# describe 'when given a simple file' do
|
433
28
|
# before :each do
|
434
|
-
# @files = ['/
|
29
|
+
# @files = ['/simple/simple.rb']
|
435
30
|
# @calls = YAML.load(<<-YAML)
|
436
31
|
# ---
|
437
|
-
#
|
438
|
-
# :
|
439
|
-
# :
|
440
|
-
# :
|
441
|
-
#
|
442
|
-
# :
|
443
|
-
#
|
444
|
-
#
|
445
|
-
# :
|
446
|
-
#
|
447
|
-
# :
|
448
|
-
# :
|
449
|
-
# :branch:
|
450
|
-
# :
|
451
|
-
# :
|
452
|
-
#
|
453
|
-
# :
|
454
|
-
# :
|
455
|
-
# :
|
456
|
-
# :
|
457
|
-
# :
|
458
|
-
# :branch: 18.5
|
459
|
-
# :>=: 1.9
|
460
|
-
# :acts_as_range_begin: 12.5
|
461
|
-
# :==: 3.20000000000001
|
462
|
-
# :include?: 2.90000000000001
|
463
|
-
# :acts_as_range_end: 14.4
|
464
|
-
# :<=: 1.9
|
465
|
-
# ClassMethods#sequentialized?:
|
466
|
-
# :branch: 1.3
|
467
|
-
# :sequentialized_on: 1.3
|
468
|
-
# InstanceMethods#expired?:
|
469
|
-
# :assignment: 1.3
|
470
|
-
# :branch: 1.3
|
471
|
-
# :now: 1.3
|
472
|
-
# :acts_as_range_end: 2.8
|
473
|
-
# :<=: 1.3
|
474
|
-
# ClassMethods#with_overlapping_scope:
|
475
|
-
# :|: 3.00000000000001
|
476
|
-
# :with_containing_scope: 4.00000000000001
|
477
|
-
# :with_contained_scope: 1.8
|
478
|
-
# :flatten: 5.20000000000001
|
479
|
-
# :block_pass: 5.80000000000001
|
480
|
-
# ClassMethods#with_containing_scope:
|
481
|
-
# :acts_as_range_begin_attr: 5.30000000000001
|
482
|
-
# :with_scope: 1.4
|
483
|
-
# :<<: 11.0
|
484
|
-
# :assignment: 4.20000000000001
|
485
|
-
# :join: 1.8
|
486
|
-
# :table_name: 10.6
|
487
|
-
# :branch: 2.80000000000001
|
488
|
-
# :acts_as_range_end_attr: 5.30000000000001
|
489
|
-
# :block_pass: 1.4
|
490
|
-
# :flatten: 1.4
|
491
|
-
# :nil?: 2.80000000000001
|
492
|
-
# ClassMethods#with_after_scope:
|
493
|
-
# :acts_as_range_begin_attr: 3.20000000000001
|
494
|
-
# :with_scope: 1.4
|
495
|
-
# :table_name: 3.20000000000001
|
496
|
-
# :block_pass: 1.4
|
497
|
-
# InstanceMethods#overlapping?:
|
498
|
-
# :is_a?: 1.4
|
499
|
-
# :first: 1.8
|
500
|
-
# :respond_to?: 1.3
|
501
|
-
# :last: 1.8
|
502
|
-
# :assignment: 3.20000000000001
|
503
|
-
# :contained_by?: 1.4
|
504
|
-
# :containing?: 7.80000000000002
|
505
|
-
# :branch: 11.3
|
506
|
-
# :acts_as_range_begin: 3.30000000000001
|
507
|
-
# :acts_as_range_end: 3.30000000000001
|
508
|
-
# ClassMethods#acts_as_date_range_sequentialize_class:
|
509
|
-
# :acts_as_date_range_param_sequentialize_class: 1.4
|
510
|
-
# :acts_as_date_range_singleton_sequentialize_class: 1.4
|
511
|
-
# :branch: 1.3
|
512
|
-
# :flatten!: 1.3
|
513
|
-
# :==: 1.3
|
514
|
-
# ClassMethods#acts_as_date_range_param_sequentialize_class:
|
515
|
-
# :validate_on_create: 1.3
|
516
|
-
# :add: 1.6
|
517
|
-
# :count: 1.7
|
518
|
-
# :>: 1.5
|
519
|
-
# :acts_as_range_begin_attr: 3.9
|
520
|
-
# :class: 3.8
|
521
|
-
# :extend: 2.6
|
522
|
-
# :errors: 1.8
|
523
|
-
# :assignment: 5.80000000000001
|
524
|
-
# :before_validation_on_create: 1.3
|
525
|
-
# :branch: 6.90000000000001
|
526
|
-
# :before_create: 1.3
|
527
|
-
# :now: 1.5
|
528
|
-
# :acts_as_range_begin: 6.00000000000001
|
529
|
-
# :to_sql: 4.2
|
530
|
-
# :acts_as_range_end_attr: 4.2
|
531
|
-
# :each: 1.5
|
532
|
-
# :expire: 1.6
|
533
|
-
# :find: 1.7
|
534
|
-
# :flatten: 3.8
|
535
|
-
# :to_attributes_for: 4.2
|
536
|
-
# InstanceMethods#destroy_without_callbacks:
|
537
|
-
# :class: 3.8
|
538
|
-
# :default_timezone: 1.8
|
539
|
-
# :freeze: 1.3
|
540
|
-
# :new_record?: 1.3
|
541
|
-
# :update_all: 1.6
|
542
|
-
# :assignment: 1.6
|
543
|
-
# :send: 5.4
|
544
|
-
# :branch: 4.3
|
545
|
-
# :now: 3.6
|
546
|
-
# :acts_as_range_end_attr: 2.0
|
547
|
-
# :id: 2.0
|
548
|
-
# :utc: 1.7
|
32
|
+
# RailsClassMethods#generate:
|
33
|
+
# :save: 1.4
|
34
|
+
# :assignment: 2.80000000000001
|
35
|
+
# :spawn: 1.4
|
36
|
+
# RailsClassMethods#exemplar_path:
|
37
|
+
# :join: 1.4
|
38
|
+
# ClassMethods#generator_for:
|
39
|
+
# :is_a?: 2.8
|
40
|
+
# :arity: 2.0
|
41
|
+
# :assignment: 16.5
|
42
|
+
# :respond_to?: 1.7
|
43
|
+
# :first: 1.6
|
44
|
+
# :branch: 19.0
|
45
|
+
# :name: 2.0
|
46
|
+
# :lit_fixnum: 0.45
|
47
|
+
# :length: 1.8
|
48
|
+
# :raise: 8.60000000000001
|
49
|
+
# :include?: 1.8
|
50
|
+
# :lambda: 1.8
|
51
|
+
# :to_sym: 3.1
|
52
|
+
# :[]: 16.1
|
549
53
|
# :==: 1.6
|
550
|
-
# :
|
551
|
-
# :
|
552
|
-
#
|
553
|
-
#
|
554
|
-
# :acts_as_range_begin_attr: 7.60000000000002
|
555
|
-
# :with_scope: 1.4
|
556
|
-
# :<<: 16.8
|
557
|
-
# :assignment: 4.20000000000001
|
558
|
-
# :join: 1.8
|
559
|
-
# :table_name: 15.2
|
560
|
-
# :branch: 4.40000000000001
|
561
|
-
# :acts_as_range_end_attr: 7.60000000000002
|
562
|
-
# :block_pass: 1.4
|
563
|
-
# :flatten: 1.4
|
564
|
-
# :nil?: 4.40000000000001
|
565
|
-
# ClassMethods#count_with_range_restrictions:
|
566
|
-
# :count_without_range_restrictions: 3.10000000000001
|
567
|
-
# :with_current_time_scope: 1.5
|
568
|
-
# :branch: 2.90000000000001
|
569
|
-
# :[]: 1.4
|
570
|
-
# :acts_as_range_configuration: 1.6
|
571
|
-
# InstanceMethods#to_range:
|
572
|
-
# :assignment: 2.60000000000001
|
573
|
-
# :acts_as_range_begin: 1.3
|
574
|
-
# :acts_as_range_end: 1.3
|
575
|
-
# ParamExtension#to_attributes_for:
|
576
|
-
# :attributes: 1.7
|
577
|
-
# :assignment: 1.5
|
578
|
-
# :branch: 1.4
|
579
|
-
# :[]: 1.5
|
580
|
-
# :to_s: 1.7
|
581
|
-
# :collect: 1.4
|
582
|
-
# ClassMethods#with_current_time_scope:
|
583
|
-
# :first: 3.3
|
584
|
-
# :respond_to?: 2.7
|
585
|
-
# :call: 2.7
|
586
|
-
# :with_overlapping_scope: 2.9
|
587
|
-
# :end_dated_association_date: 3.1
|
588
|
-
# :last: 3.3
|
589
|
-
# :assignment: 2.7
|
590
|
-
# :with_containing_scope: 2.9
|
591
|
-
# :branch: 2.7
|
592
|
-
# :block_pass: 5.80000000000001
|
593
|
-
# InstanceMethods#included:
|
594
|
-
# :extend: 5.20000000000001
|
595
|
-
# DateRanged#current:
|
596
|
-
# :containing: 1.1
|
597
|
-
# :now: 1.3
|
598
|
-
# ClassMethods#with_before_scope:
|
599
|
-
# :with_scope: 1.4
|
600
|
-
# :table_name: 3.20000000000001
|
601
|
-
# :acts_as_range_end_attr: 3.20000000000001
|
602
|
-
# :block_pass: 1.4
|
603
|
-
# ClassMethods#remove_args:
|
604
|
-
# :first: 1.5
|
605
|
-
# :>: 1.4
|
606
|
-
# :last: 2.0
|
607
|
-
# :<<: 1.4
|
608
|
-
# :extract_options_from_args!: 1.4
|
609
|
-
# :assignment: 2.90000000000001
|
610
|
-
# :branch: 2.80000000000001
|
611
|
-
# :length: 1.6
|
612
|
-
# :delete: 1.5
|
613
|
-
# :keys: 1.8
|
614
|
-
# :each: 1.4
|
615
|
-
# ClassMethods#add_args:
|
616
|
-
# :merge: 1.6
|
617
|
-
# :<<: 1.4
|
618
|
-
# :extract_options_from_args!: 1.8
|
619
|
-
# InstanceMethods#before?:
|
620
|
-
# :respond_to?: 1.3
|
621
|
-
# :branch: 3.90000000000001
|
622
|
-
# :<: 1.3
|
623
|
-
# :before?: 1.4
|
624
|
-
# :acts_as_range_begin: 1.6
|
625
|
-
# :acts_as_range_end: 2.80000000000001
|
626
|
-
# InstanceMethods#containing?:
|
627
|
-
# :to_range: 8.50000000000001
|
628
|
-
# :is_a?: 1.4
|
629
|
-
# :exclude_end?: 6.30000000000001
|
630
|
-
# :>: 2.0
|
631
|
-
# :first: 4.00000000000001
|
632
|
-
# :respond_to?: 1.3
|
633
|
-
# :assignment: 3.20000000000001
|
634
|
-
# :last: 10.7
|
635
|
-
# :contained_by?: 1.4
|
636
|
-
# :branch: 28.0
|
637
|
-
# :acts_as_range_begin: 8.90000000000002
|
638
|
-
# :==: 5.90000000000001
|
639
|
-
# :include?: 5.20000000000001
|
640
|
-
# :acts_as_range_end: 13.1
|
641
|
-
# :<=: 3.70000000000001
|
642
|
-
# ClassMethods#acts_as_date_range:
|
643
|
-
# :acts_as_range: 1.3
|
644
|
-
# :is_a?: 1.3
|
645
|
-
# :assignment: 1.3
|
646
|
-
# :acts_as_date_range?: 1.3
|
647
|
-
# :acts_as_date_range_configure_class: 1.3
|
54
|
+
# :keys: 3.8
|
55
|
+
# :record_generator_for: 5.00000000000001
|
56
|
+
# ObjectDaddy#included:
|
57
|
+
# :extend: 5.6
|
648
58
|
# :branch: 2.6
|
649
|
-
# :
|
650
|
-
# :
|
651
|
-
#
|
652
|
-
#
|
653
|
-
# :
|
654
|
-
# :
|
655
|
-
#
|
656
|
-
# :
|
657
|
-
# :
|
658
|
-
# :
|
659
|
-
#
|
660
|
-
#
|
661
|
-
# :
|
662
|
-
# :
|
663
|
-
# :
|
664
|
-
# :
|
665
|
-
# :
|
666
|
-
# :distance_of_time_in_words: 1.3
|
667
|
-
# :nil?: 2.7
|
668
|
-
# ClassMethods#validates_interval:
|
669
|
-
# :validation_method: 1.6
|
670
|
-
# :add: 1.80000000000001
|
671
|
-
# :errors: 2.00000000000001
|
672
|
-
# :evaluate_condition: 1.6
|
673
|
-
# :assignment: 9.30000000000003
|
674
|
-
# :send: 4.20000000000001
|
675
|
-
# :branch: 10.9
|
676
|
-
# :acts_as_range_begin: 1.70000000000001
|
677
|
-
# :acts_as_range_end: 1.70000000000001
|
678
|
-
# :each: 1.3
|
679
|
-
# :humanize: 2.60000000000001
|
680
|
-
# :to_s: 3.00000000000001
|
681
|
-
# :[]: 12.3
|
682
|
-
# :acts_as_range_configuration: 6.00000000000001
|
683
|
-
# :<=: 1.90000000000001
|
684
|
-
# :nil?: 3.70000000000001
|
685
|
-
# ClassMethods#acts_as_range:
|
686
|
-
# :is_a?: 1.3
|
687
|
-
# :class_inheritable_reader: 1.3
|
688
|
-
# :assignment: 1.3
|
689
|
-
# :acts_as_range_configure_class: 1.3
|
690
|
-
# :branch: 2.60000000000001
|
691
|
-
# :update: 1.5
|
692
|
-
# :raise: 1.4
|
693
|
-
# :acts_as_range?: 1.3
|
694
|
-
# ParamExtension#to_sql:
|
695
|
-
# :assignment: 1.7
|
59
|
+
# :sclass: 7.5
|
60
|
+
# :alias_method: 8.4
|
61
|
+
# :<: 1.4
|
62
|
+
# ClassMethods#underscore:
|
63
|
+
# :gsub: 1.6
|
64
|
+
# :downcase: 1.4
|
65
|
+
# ClassMethods#gather_exemplars:
|
66
|
+
# :load: 1.5
|
67
|
+
# :underscore: 1.6
|
68
|
+
# :assignment: 4.40000000000001
|
69
|
+
# :respond_to?: 1.4
|
70
|
+
# :superclass: 5.50000000000001
|
71
|
+
# :branch: 6.00000000000001
|
72
|
+
# :name: 1.8
|
73
|
+
# :gather_exemplars: 1.6
|
74
|
+
# :exemplars_generated: 1.4
|
75
|
+
# :exists?: 1.4
|
696
76
|
# :join: 1.4
|
697
|
-
# :
|
698
|
-
# :
|
77
|
+
# :dup: 1.6
|
78
|
+
# :exemplar_path: 1.6
|
79
|
+
# :generators: 1.9
|
699
80
|
# ClassMethods#none:
|
700
|
-
# :protected:
|
701
|
-
# :
|
702
|
-
# :
|
703
|
-
#
|
704
|
-
# :
|
705
|
-
#
|
706
|
-
# :
|
707
|
-
# :
|
708
|
-
#
|
709
|
-
# :
|
710
|
-
# :
|
711
|
-
# :
|
712
|
-
#
|
713
|
-
# :now: 1.5
|
714
|
-
# :new: 1.4
|
715
|
-
# :attr: 1.9
|
716
|
-
# :sclass: 7.0
|
717
|
-
# DateRange#none:
|
718
|
-
# :include: 2.2
|
719
|
-
# InstanceMethods#add_has_many_range_extension:
|
720
|
-
# :options: 1.50000000000001
|
721
|
-
# :assignment: 6.00000000000002
|
722
|
-
# :push: 1.60000000000001
|
723
|
-
# :branch: 2.80000000000001
|
724
|
-
# :puts: 5.40000000000002
|
725
|
-
# :acts_as_range?: 1.3
|
726
|
-
# :include?: 1.50000000000001
|
727
|
-
# :[]: 5.20000000000002
|
728
|
-
# :klass: 3.00000000000001
|
729
|
-
# :flatten: 1.50000000000001
|
730
|
-
# Ranged#included:
|
731
|
-
# :alias_method_chain: 1.3
|
732
|
-
# :branch: 1.2
|
733
|
-
# :send: 3.60000000000001
|
734
|
-
# :puts: 1.2
|
735
|
-
# :instance_eval: 6.00000000000002
|
736
|
-
# Range#included:
|
737
|
-
# :respond_to?: 1.2
|
738
|
-
# :extend: 2.4
|
81
|
+
# :protected: 2.6
|
82
|
+
# :attr_accessor: 1.3
|
83
|
+
# :attr_reader: 1.3
|
84
|
+
# Foo#initialize:
|
85
|
+
# :super: 1.2
|
86
|
+
# main#none:
|
87
|
+
# :assignment: 1.1
|
88
|
+
# :attr_writer: 1.1
|
89
|
+
# :branch: 5.60000000000001
|
90
|
+
# :lit_fixnum: 0.275000000000001
|
91
|
+
# :puts: 1.1
|
92
|
+
# :alias: 2.20000000000001
|
93
|
+
# ClassMethods#record_generator_for:
|
739
94
|
# :assignment: 1.4
|
740
|
-
# :branch:
|
741
|
-
# :
|
742
|
-
#
|
743
|
-
# :
|
744
|
-
# :
|
745
|
-
#
|
746
|
-
# :
|
747
|
-
# :
|
748
|
-
# :id: 3.2
|
749
|
-
# :find: 2.8
|
750
|
-
# ClassMethods#acts_as_range?:
|
751
|
-
# :included_modules: 1.5
|
752
|
-
# :include?: 1.3
|
753
|
-
# ClassMethods#acts_as_date_range_configure_class:
|
754
|
-
# :acts_as_date_range_sequentialize_class: 1.4
|
755
|
-
# :assignment: 1.3
|
756
|
-
# :write_inheritable_attribute: 1.3
|
757
|
-
# :branch: 1.3
|
758
|
-
# :[]: 2.9
|
759
|
-
# :include: 2.6
|
760
|
-
# InstanceMethods#none:
|
761
|
-
# :+: 3.8
|
762
|
-
# :class: 9.20000000000001
|
763
|
-
# :assignment: 5.60000000000001
|
764
|
-
# :private: 1.2
|
765
|
-
# :send: 43.2
|
766
|
-
# :branch: 8.00000000000001
|
767
|
-
# :alias_method: 4.80000000000001
|
768
|
-
# :to_s: 4.2
|
769
|
-
# :to_sym: 6.80000000000001
|
770
|
-
# :define_method: 28.0
|
771
|
-
# :each: 2.4
|
772
|
-
# Ranged#none:
|
773
|
-
# :+: 1.7
|
774
|
-
# :assignment: 3.60000000000001
|
775
|
-
# :select: 1.2
|
776
|
-
# :send: 3.90000000000001
|
777
|
-
# :branch: 3.30000000000001
|
778
|
-
# :to_sym: 1.5
|
779
|
-
# :define_method: 5.50000000000002
|
780
|
-
# :each: 1.0
|
781
|
-
# ClassMethods#acts_as_range_configure_class:
|
782
|
-
# :assignment: 3.20000000000001
|
783
|
-
# :write_inheritable_attribute: 1.3
|
784
|
-
# :alias_method_chain: 1.90000000000001
|
785
|
-
# :branch: 1.8
|
786
|
-
# :validates_interval: 1.3
|
787
|
-
# :to_sym: 2.1
|
788
|
-
# :each: 1.8
|
789
|
-
# :sclass: 6.50000000000002
|
790
|
-
# :include: 2.60000000000001
|
791
|
-
# ClassMethods#ranged_lookup:
|
792
|
-
# :first: 1.5
|
793
|
-
# :respond_to?: 1.4
|
794
|
-
# :last: 1.5
|
795
|
-
# :assignment: 7.00000000000002
|
796
|
-
# :-: 1.7
|
95
|
+
# :branch: 3.20000000000001
|
96
|
+
# :raise: 1.5
|
97
|
+
# :==: 1.4
|
98
|
+
# :[]: 3.50000000000001
|
99
|
+
# :generators: 3.50000000000001
|
100
|
+
# RailsClassMethods#validates_presence_of_with_object_daddy:
|
101
|
+
# :is_a?: 1.4
|
102
|
+
# :assignment: 5.80000000000001
|
797
103
|
# :branch: 2.80000000000001
|
798
|
-
# :
|
799
|
-
# :yield: 1.4
|
800
|
-
# :new: 3.80000000000001
|
801
|
-
# :acts_as_range_begin: 1.5
|
802
|
-
# :acts_as_range_end: 1.5
|
803
|
-
# ClassMethods#find_with_range_restrictions:
|
804
|
-
# :find_without_range_restrictions: 9.80000000000002
|
805
|
-
# :with_current_time_scope: 1.5
|
806
|
-
# :remove_args: 7.50000000000002
|
807
|
-
# :with_before_scope: 1.5
|
808
|
-
# :extract_options_from_args!: 1.4
|
809
|
-
# :assignment: 12.8
|
810
|
-
# :with_containing_scope: 1.5
|
811
|
-
# :send: 5.40000000000001
|
812
|
-
# :with_after_scope: 1.5
|
813
|
-
# :branch: 19.7
|
104
|
+
# :last: 1.6
|
814
105
|
# :dup: 1.4
|
815
|
-
# :
|
816
|
-
# :acts_as_range_configuration: 1.6
|
817
|
-
# :==: 1.7
|
106
|
+
# :pop: 1.5
|
818
107
|
# :each: 1.4
|
819
|
-
# :
|
820
|
-
#
|
821
|
-
# :
|
822
|
-
#
|
823
|
-
#
|
824
|
-
# :respond_to?: 1.
|
825
|
-
# :
|
826
|
-
# :
|
827
|
-
#
|
828
|
-
# :
|
829
|
-
#
|
830
|
-
# :
|
831
|
-
# :
|
832
|
-
# :
|
833
|
-
#
|
834
|
-
# :
|
835
|
-
# :
|
836
|
-
# :
|
837
|
-
# :
|
838
|
-
# :
|
839
|
-
# :
|
840
|
-
#
|
841
|
-
# :
|
842
|
-
# :
|
843
|
-
# :
|
844
|
-
# :
|
845
|
-
# :
|
846
|
-
# :
|
847
|
-
#
|
848
|
-
# :
|
849
|
-
# :
|
850
|
-
#
|
851
|
-
# :
|
852
|
-
# :
|
853
|
-
# :
|
854
|
-
# :
|
855
|
-
# :
|
856
|
-
#
|
857
|
-
# :
|
858
|
-
# :
|
859
|
-
# :
|
860
|
-
# :acts_as_range_end: 1.3
|
861
|
-
# ClassMethods#sequentialized_on:
|
862
|
-
# :[]: 1.3
|
863
|
-
# :acts_as_range_configuration: 1.5
|
108
|
+
# :validates_presence_of_without_object_daddy: 1.4
|
109
|
+
# ClassMethods#presence_validated_attributes:
|
110
|
+
# :merge: 1.5
|
111
|
+
# :presence_validated_attributes: 1.7
|
112
|
+
# :assignment: 4.30000000000001
|
113
|
+
# :respond_to?: 1.4
|
114
|
+
# :superclass: 3.50000000000001
|
115
|
+
# :branch: 1.4
|
116
|
+
# ClassMethods#spawn:
|
117
|
+
# :presence_validated_attributes: 5.4
|
118
|
+
# :each_pair: 1.4
|
119
|
+
# :assignment: 35.3
|
120
|
+
# :generate: 1.7
|
121
|
+
# :class_name: 2.1
|
122
|
+
# :call: 1.8
|
123
|
+
# :reflect_on_all_associations: 1.8
|
124
|
+
# :branch: 24.0
|
125
|
+
# :constantize: 1.9
|
126
|
+
# :name: 3.9
|
127
|
+
# :gather_exemplars: 1.4
|
128
|
+
# :select: 1.6
|
129
|
+
# :-: 1.8
|
130
|
+
# :send: 5.4
|
131
|
+
# :to_a: 1.6
|
132
|
+
# :empty?: 1.5
|
133
|
+
# :new: 1.4
|
134
|
+
# :reject!: 1.7
|
135
|
+
# :next: 1.9
|
136
|
+
# :delete: 1.9
|
137
|
+
# :include?: 1.8
|
138
|
+
# :primary_key_name: 4.2
|
139
|
+
# :to_s: 5.7
|
140
|
+
# :each: 3.2
|
141
|
+
# :keys: 4.0
|
142
|
+
# :[]: 23.6
|
143
|
+
# :generators: 1.7
|
144
|
+
# :scope: 1.6
|
145
|
+
# RailsClassMethods#generate!:
|
146
|
+
# :save!: 1.4
|
147
|
+
# :assignment: 2.80000000000001
|
148
|
+
# :spawn: 1.4
|
864
149
|
# YAML
|
865
|
-
|
150
|
+
#
|
866
151
|
# @totals = YAML.load(<<-YAML)
|
867
152
|
# ---
|
868
|
-
#
|
869
|
-
#
|
870
|
-
#
|
871
|
-
#
|
872
|
-
#
|
873
|
-
#
|
874
|
-
# ClassMethods#
|
875
|
-
# ClassMethods#
|
876
|
-
#
|
877
|
-
#
|
878
|
-
# ClassMethods#
|
879
|
-
# ClassMethods#
|
880
|
-
#
|
881
|
-
#
|
882
|
-
# ParamExtension#to_attributes_for: 6.62570750939099
|
883
|
-
# InstanceMethods#to_range: 3.67695526217005
|
884
|
-
# ClassMethods#count_with_range_restrictions: 8.13449445263812
|
885
|
-
# ClassMethods#with_contained_scope: 57.9202900545225
|
886
|
-
# InstanceMethods#lifetime: 15.5273951453552
|
887
|
-
# InstanceMethods#limit_date_range: 9.92824254337091
|
888
|
-
# ClassMethods#acts_as_date_range: 8.60581198958007
|
889
|
-
# InstanceMethods#containing?: 77.6916983982203
|
890
|
-
# InstanceMethods#before?: 9.2612094242599
|
891
|
-
# ClassMethods#add_args: 4.80000000000001
|
892
|
-
# ClassMethods#remove_args: 14.5688022843335
|
893
|
-
# ClassMethods#with_before_scope: 9.20000000000002
|
894
|
-
# DateRanged#current: 2.40000000000001
|
895
|
-
# DateRange#none: 2.2
|
896
|
-
# DateRange#included: 15.6805612144464
|
897
|
-
# ClassMethods#none: 17.171487996094
|
898
|
-
# ParamExtension#to_sql: 3.80131556174965
|
899
|
-
# ClassMethods#acts_as_range: 8.6058119895801
|
900
|
-
# ClassMethods#validates_interval: 47.6073523733468
|
901
|
-
# Range#included: 15.6805612144464
|
902
|
-
# Ranged#included: 12.1593585357124
|
903
|
-
# InstanceMethods#add_has_many_range_extension: 22.0190826330255
|
904
|
-
# InstanceMethods#include?: 10.6677082824757
|
905
|
-
# InstanceMethods#none: 104.05921391208
|
906
|
-
# ClassMethods#acts_as_date_range_configure_class: 8.40357066966181
|
907
|
-
# ClassMethods#acts_as_range?: 2.80000000000001
|
908
|
-
# InstanceMethods#expire: 13.3056613890479
|
909
|
-
# ClassMethods#acts_as_date_range?: 2.8
|
910
|
-
# ClassMethods#acts_as_date_range_singleton_sequentialize_class: 34.8846671189507
|
911
|
-
# InstanceMethods#after?: 9.2612094242599
|
912
|
-
# ClassMethods#find_with_range_restrictions: 69.6799110217573
|
913
|
-
# ClassMethods#ranged_lookup: 17.5065701952153
|
914
|
-
# ClassMethods#acts_as_range_configure_class: 17.8809954980141
|
915
|
-
# Ranged#none: 15.5849286170968
|
916
|
-
# ClassMethods#sequentialized_on: 2.8
|
153
|
+
# RailsClassMethods#generate: 3.95979797464467
|
154
|
+
# ObjectDaddy#included: 23.0471256342304
|
155
|
+
# ClassMethods#generator_for: 59.7115776043475
|
156
|
+
# RailsClassMethods#exemplar_path: 1.4
|
157
|
+
# ClassMethods#underscore: 3.00000000000001
|
158
|
+
# ClassMethods#none: 5.2
|
159
|
+
# ClassMethods#gather_exemplars: 23.8882816460289
|
160
|
+
# ClassMethods#record_generator_for: 10.4980950652964
|
161
|
+
# main#none: 7.37737249974544
|
162
|
+
# Foo#initialize: 1.2
|
163
|
+
# ClassMethods#spawn: 96.0108847995893
|
164
|
+
# ClassMethods#presence_validated_attributes: 9.27685291464731
|
165
|
+
# RailsClassMethods#validates_presence_of_with_object_daddy: 10.8245092267502
|
166
|
+
# RailsClassMethods#generate!: 3.95979797464467
|
917
167
|
# YAML
|
918
168
|
# end
|
919
|
-
|
169
|
+
#
|
920
170
|
# it 'should not fail when flogging the given input' do
|
921
|
-
# lambda { @flog.flog_files(fixture_files(@files)) }.
|
171
|
+
# lambda { @flog.flog_files(fixture_files(@files)) }.wont_raise_error
|
922
172
|
# end
|
923
|
-
|
924
|
-
# currently 'should report an overall flog score of
|
173
|
+
#
|
174
|
+
# currently 'should report an overall flog score of 259.354295339925' do
|
925
175
|
# @flog.flog_files(fixture_files(@files))
|
926
|
-
# @flog.total.must_be_close_to
|
176
|
+
# @flog.total.must_be_close_to 259.354295339925
|
927
177
|
# end
|
928
|
-
|
178
|
+
#
|
929
179
|
# currently 'should compute the same call data as flog-1.1.0' do
|
930
180
|
# @flog.flog_files(fixture_files(@files))
|
931
181
|
# @flog.calls.each_pair do |k,v|
|
@@ -934,7 +184,7 @@ describe "Flog Command Line" do
|
|
934
184
|
# end
|
935
185
|
# end
|
936
186
|
# end
|
937
|
-
|
187
|
+
#
|
938
188
|
# currently 'should compute the same totals data as flog-1.1.0' do
|
939
189
|
# @flog.flog_files(fixture_files(@files))
|
940
190
|
# @flog.totals.each_pair do |k,v|
|
@@ -942,5 +192,755 @@ describe "Flog Command Line" do
|
|
942
192
|
# end
|
943
193
|
# end
|
944
194
|
# end
|
945
|
-
|
946
|
-
|
195
|
+
#
|
196
|
+
# # FIX: this is totally unmaintainable
|
197
|
+
# # describe 'when given a directory of files' do
|
198
|
+
# # before :each do
|
199
|
+
# # @files = ['/directory/']
|
200
|
+
# # @calls = YAML.load(<<-YAML)
|
201
|
+
# # ---
|
202
|
+
# # BotSender#validate:
|
203
|
+
# # :assignment: 1.3
|
204
|
+
# # BotParserFormat#description:
|
205
|
+
# # :join: 1.3
|
206
|
+
# # :branch: 1.2
|
207
|
+
# # :empty?: 1.2
|
208
|
+
# # BotParserFormat#initialize:
|
209
|
+
# # :assignment: 4.8
|
210
|
+
# # :branch: 1.2
|
211
|
+
# # :raise: 1.3
|
212
|
+
# # :nil?: 1.2
|
213
|
+
# # BotParser#parse:
|
214
|
+
# # :merge: 1.3
|
215
|
+
# # :detect: 1.3
|
216
|
+
# # :assignment: 6.7
|
217
|
+
# # :branch: 3.9
|
218
|
+
# # :empty?: 1.3
|
219
|
+
# # :process: 1.4
|
220
|
+
# # :formats: 1.5
|
221
|
+
# # register_format#video:
|
222
|
+
# # :register_format: 1.2
|
223
|
+
# # :assignment: 3.6
|
224
|
+
# # :lit_fixnum: 1.05
|
225
|
+
# # :[]: 3.6
|
226
|
+
# # register_format#image:
|
227
|
+
# # :register_format: 1.2
|
228
|
+
# # :assignment: 3.6
|
229
|
+
# # :lit_fixnum: 1.05
|
230
|
+
# # :[]: 3.6
|
231
|
+
# # BotFilter#process:
|
232
|
+
# # :class: 1.6
|
233
|
+
# # :options: 1.8
|
234
|
+
# # :kinds: 1.4
|
235
|
+
# # :assignment: 5.4
|
236
|
+
# # :branch: 2.5
|
237
|
+
# # :get: 1.8
|
238
|
+
# # :process: 1.4
|
239
|
+
# # :new: 1.6
|
240
|
+
# # :each: 1.2
|
241
|
+
# # BotFilter#register:
|
242
|
+
# # :<<: 1.8
|
243
|
+
# # BotSender#deliver:
|
244
|
+
# # :respond_to?: 1.3
|
245
|
+
# # :assignment: 2.7
|
246
|
+
# # :send: 4.2
|
247
|
+
# # :branch: 5.2
|
248
|
+
# # :raise: 1.4
|
249
|
+
# # :to_s: 1.5
|
250
|
+
# # :to_sym: 1.3
|
251
|
+
# # :[]: 4.5
|
252
|
+
# # register_format#true_or_false:
|
253
|
+
# # :register_format: 1.2
|
254
|
+
# # :assignment: 3.6
|
255
|
+
# # :lit_fixnum: 0.35
|
256
|
+
# # :[]: 1.2
|
257
|
+
# # BotSender#none:
|
258
|
+
# # :assignment: 1.1
|
259
|
+
# # :attr_reader: 1.2
|
260
|
+
# # BotParser#clear_formats:
|
261
|
+
# # :assignment: 1.9
|
262
|
+
# # BotSender#register:
|
263
|
+
# # :each_pair: 1.3
|
264
|
+
# # :assignment: 6.90000000000001
|
265
|
+
# # :branch: 1.3
|
266
|
+
# # register_format#definition:
|
267
|
+
# # :register_format: 1.2
|
268
|
+
# # :assignment: 3.6
|
269
|
+
# # :lit_fixnum: 0.7
|
270
|
+
# # :[]: 2.4
|
271
|
+
# # register_format#link:
|
272
|
+
# # :register_format: 1.2
|
273
|
+
# # :assignment: 3.6
|
274
|
+
# # :lit_fixnum: 1.05
|
275
|
+
# # :[]: 3.6
|
276
|
+
# # BotParser#none:
|
277
|
+
# # :assignment: 1.2
|
278
|
+
# # :sclass: 6.0
|
279
|
+
# # :attr_reader: 1.8
|
280
|
+
# # BotParser#register_format:
|
281
|
+
# # :<<: 1.9
|
282
|
+
# # :new: 2.1
|
283
|
+
# # :formats: 2.1
|
284
|
+
# # :block_pass: 2.1
|
285
|
+
# # BotSender#initialize:
|
286
|
+
# # :validate: 1.3
|
287
|
+
# # :assignment: 2.6
|
288
|
+
# # :[]: 1.3
|
289
|
+
# # register_format#quote:
|
290
|
+
# # :register_format: 1.2
|
291
|
+
# # :assignment: 3.6
|
292
|
+
# # :lit_fixnum: 1.05
|
293
|
+
# # :[]: 3.6
|
294
|
+
# # BotFilter#register_filter:
|
295
|
+
# # :register: 1.8
|
296
|
+
# # :load: 1.8
|
297
|
+
# # :filter_path: 1.8
|
298
|
+
# # :assignment: 1.8
|
299
|
+
# # :exists?: 1.8
|
300
|
+
# # :branch: 1.8
|
301
|
+
# # :raise: 1.9
|
302
|
+
# # BotSender#kinds:
|
303
|
+
# # :assignment: 1.4
|
304
|
+
# # :sort_by: 1.3
|
305
|
+
# # :branch: 1.3
|
306
|
+
# # :to_s: 1.4
|
307
|
+
# # :keys: 1.5
|
308
|
+
# # main#none:
|
309
|
+
# # :require: 2.2
|
310
|
+
# # BotFilter#new:
|
311
|
+
# # :locate_filters: 1.9
|
312
|
+
# # :assignment: 3.6
|
313
|
+
# # :send: 5.4
|
314
|
+
# # :branch: 1.8
|
315
|
+
# # :allocate: 1.8
|
316
|
+
# # BotSender#new:
|
317
|
+
# # :kinds: 1.5
|
318
|
+
# # :assignment: 2.6
|
319
|
+
# # :send: 3.9
|
320
|
+
# # :branch: 1.3
|
321
|
+
# # :allocate: 1.3
|
322
|
+
# # :raise: 1.4
|
323
|
+
# # :include?: 1.3
|
324
|
+
# # :[]: 4.7
|
325
|
+
# # BotFilter#locate_filters:
|
326
|
+
# # :register_filter: 2.0
|
327
|
+
# # :assignment: 2.0
|
328
|
+
# # :branch: 5.5
|
329
|
+
# # :each: 1.9
|
330
|
+
# # :[]: 4.0
|
331
|
+
# # BotFilter#get:
|
332
|
+
# # :gsub: 2.0
|
333
|
+
# # :upcase: 2.1
|
334
|
+
# # :assignment: 1.8
|
335
|
+
# # :const_get: 1.8
|
336
|
+
# # :branch: 2.0
|
337
|
+
# # :to_sym: 1.8
|
338
|
+
# # :to_s: 2.2
|
339
|
+
# # BotParserFormat#none:
|
340
|
+
# # :attr_reader: 1.1
|
341
|
+
# # BotFilter#filter_path:
|
342
|
+
# # :+: 2.0
|
343
|
+
# # :dirname: 2.2
|
344
|
+
# # :expand_path: 1.8
|
345
|
+
# # BotParserFormat#process:
|
346
|
+
# # :merge: 1.2
|
347
|
+
# # :call: 1.4
|
348
|
+
# # :match: 1.2
|
349
|
+
# # :format: 1.4
|
350
|
+
# # :name: 1.4
|
351
|
+
# # :assignment: 1.2
|
352
|
+
# # :branch: 1.2
|
353
|
+
# # :block: 1.6
|
354
|
+
# # BotParser#formats:
|
355
|
+
# # :class: 1.5
|
356
|
+
# # :formats: 1.3
|
357
|
+
# # BotFilter#initialize:
|
358
|
+
# # :assignment: 2.4
|
359
|
+
# # register_format#fact:
|
360
|
+
# # :register_format: 1.2
|
361
|
+
# # :assignment: 3.6
|
362
|
+
# # :lit_fixnum: 0.35
|
363
|
+
# # :[]: 1.2
|
364
|
+
# # BotFilter#none:
|
365
|
+
# # :sclass: 5.5
|
366
|
+
# # :attr_reader: 1.1
|
367
|
+
# # YAML
|
368
|
+
#
|
369
|
+
# # @totals = YAML.load(<<-YAML)
|
370
|
+
# # ---
|
371
|
+
# # BotFilter#register: 1.8
|
372
|
+
# # BotFilter#process: 12.3308556069723
|
373
|
+
# # register_format#image: 6.86895188511319
|
374
|
+
# # register_format#video: 6.86895188511319
|
375
|
+
# # BotParser#parse: 10.3121287811974
|
376
|
+
# # BotParserFormat#initialize: 5.54346462061408
|
377
|
+
# # BotParserFormat#description: 2.77308492477241
|
378
|
+
# # BotSender#validate: 1.3
|
379
|
+
# # register_format#true_or_false: 4.53017659699929
|
380
|
+
# # BotSender#deliver: 15.3613150478727
|
381
|
+
# # BotParser#clear_formats: 1.9
|
382
|
+
# # BotSender#none: 1.62788205960997
|
383
|
+
# # BotParser#none: 7.89176786277955
|
384
|
+
# # register_format#link: 6.86895188511319
|
385
|
+
# # register_format#definition: 5.60802995712398
|
386
|
+
# # BotSender#register: 7.14072825417689
|
387
|
+
# # BotParser#register_format: 8.2
|
388
|
+
# # BotFilter#register_filter: 9.44933860119321
|
389
|
+
# # register_format#quote: 6.86895188511319
|
390
|
+
# # BotSender#initialize: 3.67695526217005
|
391
|
+
# # BotFilter#new: 9.9503768772846
|
392
|
+
# # main#none: 2.2
|
393
|
+
# # BotSender#kinds: 4.61410879802373
|
394
|
+
# # BotFilter#get: 10.2591422643416
|
395
|
+
# # BotFilter#locate_filters: 9.83158176490437
|
396
|
+
# # BotSender#new: 14.3965273590543
|
397
|
+
# # BotFilter#filter_path: 6.0
|
398
|
+
# # BotParserFormat#none: 1.1
|
399
|
+
# # BotFilter#initialize: 2.4
|
400
|
+
# # BotParser#formats: 2.8
|
401
|
+
# # BotParserFormat#process: 8.37376856618333
|
402
|
+
# # BotFilter#none: 6.6
|
403
|
+
# # register_format#fact: 4.53017659699929
|
404
|
+
# # YAML
|
405
|
+
# # end
|
406
|
+
#
|
407
|
+
# # it 'should not fail when flogging the given input' do
|
408
|
+
# # lambda { @flog.flog_files(fixture_files(@files)) }.should_not raise_error
|
409
|
+
# # end
|
410
|
+
#
|
411
|
+
# # currently 'should report an overall flog score of 209.977217342726' do
|
412
|
+
# # @flog.flog_files(fixture_files(@files))
|
413
|
+
# # @flog.total.must_be_close_to 209.977217342726
|
414
|
+
# # end
|
415
|
+
#
|
416
|
+
# # currently 'should compute the same call data as flog-1.1.0' do
|
417
|
+
# # @flog.flog_files(fixture_files(@files))
|
418
|
+
# # @flog.calls.each_pair do |k,v|
|
419
|
+
# # v.each_pair do |x, y|
|
420
|
+
# # @calls[k][x].must_be_close_to y
|
421
|
+
# # end
|
422
|
+
# # end
|
423
|
+
# # end
|
424
|
+
#
|
425
|
+
# # currently 'should compute the same totals data as flog-1.1.0' do
|
426
|
+
# # @flog.flog_files(fixture_files(@files))
|
427
|
+
# # @flog.totals.each_pair {|k,v| v.must_be_close_to @totals[k]
|
428
|
+
# # end
|
429
|
+
# # end
|
430
|
+
#
|
431
|
+
# # FIX: this is totally unmaintainable
|
432
|
+
# # describe 'when given a collection of files' do
|
433
|
+
# # before :each do
|
434
|
+
# # @files = ['/collection/']
|
435
|
+
# # @calls = YAML.load(<<-YAML)
|
436
|
+
# # ---
|
437
|
+
# # InstanceMethods#initialize_with_has_many_range_extension:
|
438
|
+
# # :returning: 1.3
|
439
|
+
# # :initialize_without_has_many_range_extension: 1.5
|
440
|
+
# # :macro: 1.90000000000001
|
441
|
+
# # :add_has_many_range_extension: 1.70000000000001
|
442
|
+
# # :branch: 2.80000000000001
|
443
|
+
# # :puts: 6.00000000000002
|
444
|
+
# # :==: 1.50000000000001
|
445
|
+
# # :to_s: 1.70000000000001
|
446
|
+
# # ClassMethods#calculate_with_range_restrictions:
|
447
|
+
# # :with_current_time_scope: 1.5
|
448
|
+
# # :calculate_without_range_restrictions: 3.10000000000001
|
449
|
+
# # :branch: 2.90000000000001
|
450
|
+
# # :[]: 1.4
|
451
|
+
# # :acts_as_range_configuration: 1.6
|
452
|
+
# # InstanceMethods#contained_by?:
|
453
|
+
# # :to_range: 3.70000000000001
|
454
|
+
# # :exclude_end?: 3.60000000000001
|
455
|
+
# # :respond_to?: 1.3
|
456
|
+
# # :last: 1.8
|
457
|
+
# # :contained_by?: 1.5
|
458
|
+
# # :branch: 18.5
|
459
|
+
# # :>=: 1.9
|
460
|
+
# # :acts_as_range_begin: 12.5
|
461
|
+
# # :==: 3.20000000000001
|
462
|
+
# # :include?: 2.90000000000001
|
463
|
+
# # :acts_as_range_end: 14.4
|
464
|
+
# # :<=: 1.9
|
465
|
+
# # ClassMethods#sequentialized?:
|
466
|
+
# # :branch: 1.3
|
467
|
+
# # :sequentialized_on: 1.3
|
468
|
+
# # InstanceMethods#expired?:
|
469
|
+
# # :assignment: 1.3
|
470
|
+
# # :branch: 1.3
|
471
|
+
# # :now: 1.3
|
472
|
+
# # :acts_as_range_end: 2.8
|
473
|
+
# # :<=: 1.3
|
474
|
+
# # ClassMethods#with_overlapping_scope:
|
475
|
+
# # :|: 3.00000000000001
|
476
|
+
# # :with_containing_scope: 4.00000000000001
|
477
|
+
# # :with_contained_scope: 1.8
|
478
|
+
# # :flatten: 5.20000000000001
|
479
|
+
# # :block_pass: 5.80000000000001
|
480
|
+
# # ClassMethods#with_containing_scope:
|
481
|
+
# # :acts_as_range_begin_attr: 5.30000000000001
|
482
|
+
# # :with_scope: 1.4
|
483
|
+
# # :<<: 11.0
|
484
|
+
# # :assignment: 4.20000000000001
|
485
|
+
# # :join: 1.8
|
486
|
+
# # :table_name: 10.6
|
487
|
+
# # :branch: 2.80000000000001
|
488
|
+
# # :acts_as_range_end_attr: 5.30000000000001
|
489
|
+
# # :block_pass: 1.4
|
490
|
+
# # :flatten: 1.4
|
491
|
+
# # :nil?: 2.80000000000001
|
492
|
+
# # ClassMethods#with_after_scope:
|
493
|
+
# # :acts_as_range_begin_attr: 3.20000000000001
|
494
|
+
# # :with_scope: 1.4
|
495
|
+
# # :table_name: 3.20000000000001
|
496
|
+
# # :block_pass: 1.4
|
497
|
+
# # InstanceMethods#overlapping?:
|
498
|
+
# # :is_a?: 1.4
|
499
|
+
# # :first: 1.8
|
500
|
+
# # :respond_to?: 1.3
|
501
|
+
# # :last: 1.8
|
502
|
+
# # :assignment: 3.20000000000001
|
503
|
+
# # :contained_by?: 1.4
|
504
|
+
# # :containing?: 7.80000000000002
|
505
|
+
# # :branch: 11.3
|
506
|
+
# # :acts_as_range_begin: 3.30000000000001
|
507
|
+
# # :acts_as_range_end: 3.30000000000001
|
508
|
+
# # ClassMethods#acts_as_date_range_sequentialize_class:
|
509
|
+
# # :acts_as_date_range_param_sequentialize_class: 1.4
|
510
|
+
# # :acts_as_date_range_singleton_sequentialize_class: 1.4
|
511
|
+
# # :branch: 1.3
|
512
|
+
# # :flatten!: 1.3
|
513
|
+
# # :==: 1.3
|
514
|
+
# # ClassMethods#acts_as_date_range_param_sequentialize_class:
|
515
|
+
# # :validate_on_create: 1.3
|
516
|
+
# # :add: 1.6
|
517
|
+
# # :count: 1.7
|
518
|
+
# # :>: 1.5
|
519
|
+
# # :acts_as_range_begin_attr: 3.9
|
520
|
+
# # :class: 3.8
|
521
|
+
# # :extend: 2.6
|
522
|
+
# # :errors: 1.8
|
523
|
+
# # :assignment: 5.80000000000001
|
524
|
+
# # :before_validation_on_create: 1.3
|
525
|
+
# # :branch: 6.90000000000001
|
526
|
+
# # :before_create: 1.3
|
527
|
+
# # :now: 1.5
|
528
|
+
# # :acts_as_range_begin: 6.00000000000001
|
529
|
+
# # :to_sql: 4.2
|
530
|
+
# # :acts_as_range_end_attr: 4.2
|
531
|
+
# # :each: 1.5
|
532
|
+
# # :expire: 1.6
|
533
|
+
# # :find: 1.7
|
534
|
+
# # :flatten: 3.8
|
535
|
+
# # :to_attributes_for: 4.2
|
536
|
+
# # InstanceMethods#destroy_without_callbacks:
|
537
|
+
# # :class: 3.8
|
538
|
+
# # :default_timezone: 1.8
|
539
|
+
# # :freeze: 1.3
|
540
|
+
# # :new_record?: 1.3
|
541
|
+
# # :update_all: 1.6
|
542
|
+
# # :assignment: 1.6
|
543
|
+
# # :send: 5.4
|
544
|
+
# # :branch: 4.3
|
545
|
+
# # :now: 3.6
|
546
|
+
# # :acts_as_range_end_attr: 2.0
|
547
|
+
# # :id: 2.0
|
548
|
+
# # :utc: 1.7
|
549
|
+
# # :==: 1.6
|
550
|
+
# # :[]: 1.4
|
551
|
+
# # :acts_as_range_configuration: 1.6
|
552
|
+
# # :quote_value: 1.8
|
553
|
+
# # ClassMethods#with_contained_scope:
|
554
|
+
# # :acts_as_range_begin_attr: 7.60000000000002
|
555
|
+
# # :with_scope: 1.4
|
556
|
+
# # :<<: 16.8
|
557
|
+
# # :assignment: 4.20000000000001
|
558
|
+
# # :join: 1.8
|
559
|
+
# # :table_name: 15.2
|
560
|
+
# # :branch: 4.40000000000001
|
561
|
+
# # :acts_as_range_end_attr: 7.60000000000002
|
562
|
+
# # :block_pass: 1.4
|
563
|
+
# # :flatten: 1.4
|
564
|
+
# # :nil?: 4.40000000000001
|
565
|
+
# # ClassMethods#count_with_range_restrictions:
|
566
|
+
# # :count_without_range_restrictions: 3.10000000000001
|
567
|
+
# # :with_current_time_scope: 1.5
|
568
|
+
# # :branch: 2.90000000000001
|
569
|
+
# # :[]: 1.4
|
570
|
+
# # :acts_as_range_configuration: 1.6
|
571
|
+
# # InstanceMethods#to_range:
|
572
|
+
# # :assignment: 2.60000000000001
|
573
|
+
# # :acts_as_range_begin: 1.3
|
574
|
+
# # :acts_as_range_end: 1.3
|
575
|
+
# # ParamExtension#to_attributes_for:
|
576
|
+
# # :attributes: 1.7
|
577
|
+
# # :assignment: 1.5
|
578
|
+
# # :branch: 1.4
|
579
|
+
# # :[]: 1.5
|
580
|
+
# # :to_s: 1.7
|
581
|
+
# # :collect: 1.4
|
582
|
+
# # ClassMethods#with_current_time_scope:
|
583
|
+
# # :first: 3.3
|
584
|
+
# # :respond_to?: 2.7
|
585
|
+
# # :call: 2.7
|
586
|
+
# # :with_overlapping_scope: 2.9
|
587
|
+
# # :end_dated_association_date: 3.1
|
588
|
+
# # :last: 3.3
|
589
|
+
# # :assignment: 2.7
|
590
|
+
# # :with_containing_scope: 2.9
|
591
|
+
# # :branch: 2.7
|
592
|
+
# # :block_pass: 5.80000000000001
|
593
|
+
# # InstanceMethods#included:
|
594
|
+
# # :extend: 5.20000000000001
|
595
|
+
# # DateRanged#current:
|
596
|
+
# # :containing: 1.1
|
597
|
+
# # :now: 1.3
|
598
|
+
# # ClassMethods#with_before_scope:
|
599
|
+
# # :with_scope: 1.4
|
600
|
+
# # :table_name: 3.20000000000001
|
601
|
+
# # :acts_as_range_end_attr: 3.20000000000001
|
602
|
+
# # :block_pass: 1.4
|
603
|
+
# # ClassMethods#remove_args:
|
604
|
+
# # :first: 1.5
|
605
|
+
# # :>: 1.4
|
606
|
+
# # :last: 2.0
|
607
|
+
# # :<<: 1.4
|
608
|
+
# # :extract_options_from_args!: 1.4
|
609
|
+
# # :assignment: 2.90000000000001
|
610
|
+
# # :branch: 2.80000000000001
|
611
|
+
# # :length: 1.6
|
612
|
+
# # :delete: 1.5
|
613
|
+
# # :keys: 1.8
|
614
|
+
# # :each: 1.4
|
615
|
+
# # ClassMethods#add_args:
|
616
|
+
# # :merge: 1.6
|
617
|
+
# # :<<: 1.4
|
618
|
+
# # :extract_options_from_args!: 1.8
|
619
|
+
# # InstanceMethods#before?:
|
620
|
+
# # :respond_to?: 1.3
|
621
|
+
# # :branch: 3.90000000000001
|
622
|
+
# # :<: 1.3
|
623
|
+
# # :before?: 1.4
|
624
|
+
# # :acts_as_range_begin: 1.6
|
625
|
+
# # :acts_as_range_end: 2.80000000000001
|
626
|
+
# # InstanceMethods#containing?:
|
627
|
+
# # :to_range: 8.50000000000001
|
628
|
+
# # :is_a?: 1.4
|
629
|
+
# # :exclude_end?: 6.30000000000001
|
630
|
+
# # :>: 2.0
|
631
|
+
# # :first: 4.00000000000001
|
632
|
+
# # :respond_to?: 1.3
|
633
|
+
# # :assignment: 3.20000000000001
|
634
|
+
# # :last: 10.7
|
635
|
+
# # :contained_by?: 1.4
|
636
|
+
# # :branch: 28.0
|
637
|
+
# # :acts_as_range_begin: 8.90000000000002
|
638
|
+
# # :==: 5.90000000000001
|
639
|
+
# # :include?: 5.20000000000001
|
640
|
+
# # :acts_as_range_end: 13.1
|
641
|
+
# # :<=: 3.70000000000001
|
642
|
+
# # ClassMethods#acts_as_date_range:
|
643
|
+
# # :acts_as_range: 1.3
|
644
|
+
# # :is_a?: 1.3
|
645
|
+
# # :assignment: 1.3
|
646
|
+
# # :acts_as_date_range?: 1.3
|
647
|
+
# # :acts_as_date_range_configure_class: 1.3
|
648
|
+
# # :branch: 2.6
|
649
|
+
# # :update: 1.5
|
650
|
+
# # :raise: 1.4
|
651
|
+
# # InstanceMethods#limit_date_range:
|
652
|
+
# # :end_dated_association_date: 1.4
|
653
|
+
# # :assignment: 6.9
|
654
|
+
# # :branch: 1.4
|
655
|
+
# # :yield: 1.4
|
656
|
+
# # :new: 1.4
|
657
|
+
# # :acts_as_range_begin: 1.4
|
658
|
+
# # :acts_as_range_end: 1.4
|
659
|
+
# # InstanceMethods#lifetime:
|
660
|
+
# # :>: 1.4
|
661
|
+
# # :assignment: 1.3
|
662
|
+
# # :branch: 5.4
|
663
|
+
# # :now: 1.3
|
664
|
+
# # :acts_as_range_begin: 4.6
|
665
|
+
# # :acts_as_range_end: 3.2
|
666
|
+
# # :distance_of_time_in_words: 1.3
|
667
|
+
# # :nil?: 2.7
|
668
|
+
# # ClassMethods#validates_interval:
|
669
|
+
# # :validation_method: 1.6
|
670
|
+
# # :add: 1.80000000000001
|
671
|
+
# # :errors: 2.00000000000001
|
672
|
+
# # :evaluate_condition: 1.6
|
673
|
+
# # :assignment: 9.30000000000003
|
674
|
+
# # :send: 4.20000000000001
|
675
|
+
# # :branch: 10.9
|
676
|
+
# # :acts_as_range_begin: 1.70000000000001
|
677
|
+
# # :acts_as_range_end: 1.70000000000001
|
678
|
+
# # :each: 1.3
|
679
|
+
# # :humanize: 2.60000000000001
|
680
|
+
# # :to_s: 3.00000000000001
|
681
|
+
# # :[]: 12.3
|
682
|
+
# # :acts_as_range_configuration: 6.00000000000001
|
683
|
+
# # :<=: 1.90000000000001
|
684
|
+
# # :nil?: 3.70000000000001
|
685
|
+
# # ClassMethods#acts_as_range:
|
686
|
+
# # :is_a?: 1.3
|
687
|
+
# # :class_inheritable_reader: 1.3
|
688
|
+
# # :assignment: 1.3
|
689
|
+
# # :acts_as_range_configure_class: 1.3
|
690
|
+
# # :branch: 2.60000000000001
|
691
|
+
# # :update: 1.5
|
692
|
+
# # :raise: 1.4
|
693
|
+
# # :acts_as_range?: 1.3
|
694
|
+
# # ParamExtension#to_sql:
|
695
|
+
# # :assignment: 1.7
|
696
|
+
# # :join: 1.4
|
697
|
+
# # :branch: 1.6
|
698
|
+
# # :collect: 1.6
|
699
|
+
# # ClassMethods#none:
|
700
|
+
# # :protected: 3.70000000000001
|
701
|
+
# # :assignment: 1.4
|
702
|
+
# # :branch: 2.70000000000001
|
703
|
+
# # :[]: 1.5
|
704
|
+
# # :to_sym: 1.7
|
705
|
+
# # :acts_as_range_configuration: 1.7
|
706
|
+
# # :define_method: 7.00000000000002
|
707
|
+
# # :each: 1.3
|
708
|
+
# # DateRange#included:
|
709
|
+
# # :respond_to?: 1.2
|
710
|
+
# # :extend: 2.4
|
711
|
+
# # :assignment: 1.4
|
712
|
+
# # :branch: 2.6
|
713
|
+
# # :now: 1.5
|
714
|
+
# # :new: 1.4
|
715
|
+
# # :attr: 1.9
|
716
|
+
# # :sclass: 7.0
|
717
|
+
# # DateRange#none:
|
718
|
+
# # :include: 2.2
|
719
|
+
# # InstanceMethods#add_has_many_range_extension:
|
720
|
+
# # :options: 1.50000000000001
|
721
|
+
# # :assignment: 6.00000000000002
|
722
|
+
# # :push: 1.60000000000001
|
723
|
+
# # :branch: 2.80000000000001
|
724
|
+
# # :puts: 5.40000000000002
|
725
|
+
# # :acts_as_range?: 1.3
|
726
|
+
# # :include?: 1.50000000000001
|
727
|
+
# # :[]: 5.20000000000002
|
728
|
+
# # :klass: 3.00000000000001
|
729
|
+
# # :flatten: 1.50000000000001
|
730
|
+
# # Ranged#included:
|
731
|
+
# # :alias_method_chain: 1.3
|
732
|
+
# # :branch: 1.2
|
733
|
+
# # :send: 3.60000000000001
|
734
|
+
# # :puts: 1.2
|
735
|
+
# # :instance_eval: 6.00000000000002
|
736
|
+
# # Range#included:
|
737
|
+
# # :respond_to?: 1.2
|
738
|
+
# # :extend: 2.4
|
739
|
+
# # :assignment: 1.4
|
740
|
+
# # :branch: 2.6
|
741
|
+
# # :now: 1.5
|
742
|
+
# # :new: 1.4
|
743
|
+
# # :attr: 1.9
|
744
|
+
# # :sclass: 7.00000000000001
|
745
|
+
# # InstanceMethods#include?:
|
746
|
+
# # :class: 3.2
|
747
|
+
# # :branch: 5.40000000000001
|
748
|
+
# # :id: 3.2
|
749
|
+
# # :find: 2.8
|
750
|
+
# # ClassMethods#acts_as_range?:
|
751
|
+
# # :included_modules: 1.5
|
752
|
+
# # :include?: 1.3
|
753
|
+
# # ClassMethods#acts_as_date_range_configure_class:
|
754
|
+
# # :acts_as_date_range_sequentialize_class: 1.4
|
755
|
+
# # :assignment: 1.3
|
756
|
+
# # :write_inheritable_attribute: 1.3
|
757
|
+
# # :branch: 1.3
|
758
|
+
# # :[]: 2.9
|
759
|
+
# # :include: 2.6
|
760
|
+
# # InstanceMethods#none:
|
761
|
+
# # :+: 3.8
|
762
|
+
# # :class: 9.20000000000001
|
763
|
+
# # :assignment: 5.60000000000001
|
764
|
+
# # :private: 1.2
|
765
|
+
# # :send: 43.2
|
766
|
+
# # :branch: 8.00000000000001
|
767
|
+
# # :alias_method: 4.80000000000001
|
768
|
+
# # :to_s: 4.2
|
769
|
+
# # :to_sym: 6.80000000000001
|
770
|
+
# # :define_method: 28.0
|
771
|
+
# # :each: 2.4
|
772
|
+
# # Ranged#none:
|
773
|
+
# # :+: 1.7
|
774
|
+
# # :assignment: 3.60000000000001
|
775
|
+
# # :select: 1.2
|
776
|
+
# # :send: 3.90000000000001
|
777
|
+
# # :branch: 3.30000000000001
|
778
|
+
# # :to_sym: 1.5
|
779
|
+
# # :define_method: 5.50000000000002
|
780
|
+
# # :each: 1.0
|
781
|
+
# # ClassMethods#acts_as_range_configure_class:
|
782
|
+
# # :assignment: 3.20000000000001
|
783
|
+
# # :write_inheritable_attribute: 1.3
|
784
|
+
# # :alias_method_chain: 1.90000000000001
|
785
|
+
# # :branch: 1.8
|
786
|
+
# # :validates_interval: 1.3
|
787
|
+
# # :to_sym: 2.1
|
788
|
+
# # :each: 1.8
|
789
|
+
# # :sclass: 6.50000000000002
|
790
|
+
# # :include: 2.60000000000001
|
791
|
+
# # ClassMethods#ranged_lookup:
|
792
|
+
# # :first: 1.5
|
793
|
+
# # :respond_to?: 1.4
|
794
|
+
# # :last: 1.5
|
795
|
+
# # :assignment: 7.00000000000002
|
796
|
+
# # :-: 1.7
|
797
|
+
# # :branch: 2.80000000000001
|
798
|
+
# # :to_a: 1.5
|
799
|
+
# # :yield: 1.4
|
800
|
+
# # :new: 3.80000000000001
|
801
|
+
# # :acts_as_range_begin: 1.5
|
802
|
+
# # :acts_as_range_end: 1.5
|
803
|
+
# # ClassMethods#find_with_range_restrictions:
|
804
|
+
# # :find_without_range_restrictions: 9.80000000000002
|
805
|
+
# # :with_current_time_scope: 1.5
|
806
|
+
# # :remove_args: 7.50000000000002
|
807
|
+
# # :with_before_scope: 1.5
|
808
|
+
# # :extract_options_from_args!: 1.4
|
809
|
+
# # :assignment: 12.8
|
810
|
+
# # :with_containing_scope: 1.5
|
811
|
+
# # :send: 5.40000000000001
|
812
|
+
# # :with_after_scope: 1.5
|
813
|
+
# # :branch: 19.7
|
814
|
+
# # :dup: 1.4
|
815
|
+
# # :ranged_lookup: 1.7
|
816
|
+
# # :acts_as_range_configuration: 1.6
|
817
|
+
# # :==: 1.7
|
818
|
+
# # :each: 1.4
|
819
|
+
# # :keys: 9.90000000000002
|
820
|
+
# # :[]: 12.1
|
821
|
+
# # :has_key?: 5.70000000000001
|
822
|
+
# # InstanceMethods#after?:
|
823
|
+
# # :>: 1.3
|
824
|
+
# # :respond_to?: 1.3
|
825
|
+
# # :branch: 3.90000000000001
|
826
|
+
# # :acts_as_range_begin: 2.80000000000001
|
827
|
+
# # :after?: 1.4
|
828
|
+
# # :acts_as_range_end: 1.6
|
829
|
+
# # ClassMethods#acts_as_date_range_singleton_sequentialize_class:
|
830
|
+
# # :validate_on_create: 1.3
|
831
|
+
# # :add: 1.6
|
832
|
+
# # :count: 1.7
|
833
|
+
# # :>: 1.5
|
834
|
+
# # :acts_as_range_begin_attr: 3.7
|
835
|
+
# # :class: 3.8
|
836
|
+
# # :errors: 1.8
|
837
|
+
# # :assignment: 5.8
|
838
|
+
# # :before_validation_on_create: 1.3
|
839
|
+
# # :branch: 6.90000000000001
|
840
|
+
# # :before_create: 1.3
|
841
|
+
# # :now: 1.5
|
842
|
+
# # :acts_as_range_begin: 5.6
|
843
|
+
# # :acts_as_range_end_attr: 3.8
|
844
|
+
# # :each: 1.5
|
845
|
+
# # :expire: 1.6
|
846
|
+
# # :find: 1.7
|
847
|
+
# # ClassMethods#acts_as_date_range?:
|
848
|
+
# # :included_modules: 1.5
|
849
|
+
# # :include?: 1.3
|
850
|
+
# # InstanceMethods#expire:
|
851
|
+
# # :second: 1.6
|
852
|
+
# # :is_a?: 2.7
|
853
|
+
# # :save!: 1.3
|
854
|
+
# # :ago: 1.4
|
855
|
+
# # :assignment: 4.2
|
856
|
+
# # :-: 1.5
|
857
|
+
# # :branch: 4.0
|
858
|
+
# # :now: 1.3
|
859
|
+
# # :lit_fixnum: 0.875
|
860
|
+
# # :acts_as_range_end: 1.3
|
861
|
+
# # ClassMethods#sequentialized_on:
|
862
|
+
# # :[]: 1.3
|
863
|
+
# # :acts_as_range_configuration: 1.5
|
864
|
+
# # YAML
|
865
|
+
#
|
866
|
+
# # @totals = YAML.load(<<-YAML)
|
867
|
+
# # ---
|
868
|
+
# # InstanceMethods#expired?: 5.70438427878067
|
869
|
+
# # ClassMethods#sequentialized?: 1.83847763108502
|
870
|
+
# # InstanceMethods#contained_by?: 52.0954892481106
|
871
|
+
# # ClassMethods#calculate_with_range_restrictions: 8.13449445263812
|
872
|
+
# # InstanceMethods#initialize_with_has_many_range_extension: 15.8492902049272
|
873
|
+
# # InstanceMethods#destroy_without_callbacks: 31.238757977871
|
874
|
+
# # ClassMethods#acts_as_date_range_param_sequentialize_class: 50.3140139523772
|
875
|
+
# # ClassMethods#acts_as_date_range_sequentialize_class: 5.55427763079954
|
876
|
+
# # InstanceMethods#overlapping?: 25.0267856505785
|
877
|
+
# # ClassMethods#with_after_scope: 9.20000000000002
|
878
|
+
# # ClassMethods#with_containing_scope: 41.3095630574811
|
879
|
+
# # ClassMethods#with_overlapping_scope: 19.8
|
880
|
+
# # InstanceMethods#included: 5.20000000000001
|
881
|
+
# # ClassMethods#with_current_time_scope: 26.9716517847907
|
882
|
+
# # ParamExtension#to_attributes_for: 6.62570750939099
|
883
|
+
# # InstanceMethods#to_range: 3.67695526217005
|
884
|
+
# # ClassMethods#count_with_range_restrictions: 8.13449445263812
|
885
|
+
# # ClassMethods#with_contained_scope: 57.9202900545225
|
886
|
+
# # InstanceMethods#lifetime: 15.5273951453552
|
887
|
+
# # InstanceMethods#limit_date_range: 9.92824254337091
|
888
|
+
# # ClassMethods#acts_as_date_range: 8.60581198958007
|
889
|
+
# # InstanceMethods#containing?: 77.6916983982203
|
890
|
+
# # InstanceMethods#before?: 9.2612094242599
|
891
|
+
# # ClassMethods#add_args: 4.80000000000001
|
892
|
+
# # ClassMethods#remove_args: 14.5688022843335
|
893
|
+
# # ClassMethods#with_before_scope: 9.20000000000002
|
894
|
+
# # DateRanged#current: 2.40000000000001
|
895
|
+
# # DateRange#none: 2.2
|
896
|
+
# # DateRange#included: 15.6805612144464
|
897
|
+
# # ClassMethods#none: 17.171487996094
|
898
|
+
# # ParamExtension#to_sql: 3.80131556174965
|
899
|
+
# # ClassMethods#acts_as_range: 8.6058119895801
|
900
|
+
# # ClassMethods#validates_interval: 47.6073523733468
|
901
|
+
# # Range#included: 15.6805612144464
|
902
|
+
# # Ranged#included: 12.1593585357124
|
903
|
+
# # InstanceMethods#add_has_many_range_extension: 22.0190826330255
|
904
|
+
# # InstanceMethods#include?: 10.6677082824757
|
905
|
+
# # InstanceMethods#none: 104.05921391208
|
906
|
+
# # ClassMethods#acts_as_date_range_configure_class: 8.40357066966181
|
907
|
+
# # ClassMethods#acts_as_range?: 2.80000000000001
|
908
|
+
# # InstanceMethods#expire: 13.3056613890479
|
909
|
+
# # ClassMethods#acts_as_date_range?: 2.8
|
910
|
+
# # ClassMethods#acts_as_date_range_singleton_sequentialize_class: 34.8846671189507
|
911
|
+
# # InstanceMethods#after?: 9.2612094242599
|
912
|
+
# # ClassMethods#find_with_range_restrictions: 69.6799110217573
|
913
|
+
# # ClassMethods#ranged_lookup: 17.5065701952153
|
914
|
+
# # ClassMethods#acts_as_range_configure_class: 17.8809954980141
|
915
|
+
# # Ranged#none: 15.5849286170968
|
916
|
+
# # ClassMethods#sequentialized_on: 2.8
|
917
|
+
# # YAML
|
918
|
+
# # end
|
919
|
+
#
|
920
|
+
# # it 'should not fail when flogging the given input' do
|
921
|
+
# # lambda { @flog.flog_files(fixture_files(@files)) }.should_not raise_error
|
922
|
+
# # end
|
923
|
+
#
|
924
|
+
# # currently 'should report an overall flog score of 981.137760580242' do
|
925
|
+
# # @flog.flog_files(fixture_files(@files))
|
926
|
+
# # @flog.total.must_be_close_to 981.137760580242
|
927
|
+
# # end
|
928
|
+
#
|
929
|
+
# # currently 'should compute the same call data as flog-1.1.0' do
|
930
|
+
# # @flog.flog_files(fixture_files(@files))
|
931
|
+
# # @flog.calls.each_pair do |k,v|
|
932
|
+
# # v.each_pair do |x, y|
|
933
|
+
# # @calls[k][x].must_be_close_to y
|
934
|
+
# # end
|
935
|
+
# # end
|
936
|
+
# # end
|
937
|
+
#
|
938
|
+
# # currently 'should compute the same totals data as flog-1.1.0' do
|
939
|
+
# # @flog.flog_files(fixture_files(@files))
|
940
|
+
# # @flog.totals.each_pair do |k,v|
|
941
|
+
# # v.must_be_close_to @totals[k]
|
942
|
+
# # end
|
943
|
+
# # end
|
944
|
+
# # end
|
945
|
+
# end
|
946
|
+
# end
|