ruby-lint 2.0.3 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a5355b24009dac40be5b9313a612e968f2b71336
4
- data.tar.gz: d1b276f90c9fadb73252b8f07f934764cca283f0
3
+ metadata.gz: 14183ed7535ae1fb7bf573296d39d559a344462a
4
+ data.tar.gz: b9c80bb2d3bf46e7f4ac6677321941e71f191484
5
5
  SHA512:
6
- metadata.gz: f12df86be5066b3d541656d5e14f52bd8ab89948653fd295d9f3ddc0280850c5042531594b6efe8b68cceb3c69004a28f166e8d985a6bf26727200335d69f1ae
7
- data.tar.gz: 6ad9f338d114d2346a488192fea36d9360dad21204d8b990543eea99e5af55220f5e4d02d255ec58f64196e7994ec855dfffe4fd4bc8d16a5ebe0a508276e60f
6
+ metadata.gz: de3bcffed63e6ca4b556ca093aee148f1927d612b13739ad4e3abb258a9b36dd6cd13307ca25c7f78c9a92167237465dc8bc4b57f63237776022a66cfbdad08d
7
+ data.tar.gz: faeb9a5ba9c6887d88defac5b8d52e02a62526488a78c1968d88c395d7412f09975ccccaef2e488976dcfbfc77133d32c752a2ca5745987005aa69617b2479a7
@@ -0,0 +1 @@
1
+ 2ca604954f60d5732bcf93c85b8809172b15f25decd2d85191e671e96fac8d2b439d836c7f1c2c98e45983f5dd3981e4dc5c332a325c36108e285a63a1d1173b
@@ -5,6 +5,11 @@ This document contains a short summary of the various releases of ruby-lint.
5
5
  For a full list of commits included in each release see the corresponding Git
6
6
  tags (named after the versions).
7
7
 
8
+ ## 2.0.4 - 2015-04-15
9
+
10
+ Definitions were added for test-unit to take care of
11
+ <https://github.com/YorickPeterse/ruby-lint/issues/142>.
12
+
8
13
  ## 2.0.3 - 2015-01-09
9
14
 
10
15
  * ruby-lint now adds errors for certain iteration/loop keywords that are used
@@ -1,5 +1,3 @@
1
- gem 'parser', ['~> 2.1', '>= 2.1.1']
2
-
3
1
  require 'parser'
4
2
  require 'parser/current'
5
3
 
@@ -0,0 +1,2640 @@
1
+ # This file was automatically generated, any manual changes will be lost the
2
+ # next time this file is generated.
3
+ #
4
+ # Platform: ruby 2.2.1
5
+
6
+ RubyLint.registry.register('Test') do |defs|
7
+ defs.define_constant('Test') do |klass|
8
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
9
+
10
+ end
11
+
12
+ defs.define_constant('Test::Unit') do |klass|
13
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
14
+
15
+ end
16
+
17
+ defs.define_constant('Test::Unit::AssertionFailedError') do |klass|
18
+ klass.inherits(defs.constant_proxy('StandardError', RubyLint.registry))
19
+
20
+ klass.define_instance_method('actual')
21
+
22
+ klass.define_instance_method('actual=') do |method|
23
+ method.define_argument('arg1')
24
+ end
25
+
26
+ klass.define_instance_method('expected')
27
+
28
+ klass.define_instance_method('expected=') do |method|
29
+ method.define_argument('arg1')
30
+ end
31
+
32
+ klass.define_instance_method('initialize') do |method|
33
+ method.define_optional_argument('message')
34
+ method.define_optional_argument('options')
35
+
36
+ method.returns { |object| object.instance }
37
+ end
38
+
39
+ klass.define_instance_method('inspected_actual')
40
+
41
+ klass.define_instance_method('inspected_actual=') do |method|
42
+ method.define_argument('arg1')
43
+ end
44
+
45
+ klass.define_instance_method('inspected_expected')
46
+
47
+ klass.define_instance_method('inspected_expected=') do |method|
48
+ method.define_argument('arg1')
49
+ end
50
+
51
+ klass.define_instance_method('user_message')
52
+
53
+ klass.define_instance_method('user_message=') do |method|
54
+ method.define_argument('arg1')
55
+ end
56
+ end
57
+
58
+ defs.define_constant('Test::Unit::Assertions') do |klass|
59
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
60
+
61
+ klass.define_method('use_pp=') do |method|
62
+ method.define_argument('value')
63
+ end
64
+
65
+ klass.define_instance_method('add_assertion')
66
+
67
+ klass.define_instance_method('assert') do |method|
68
+ method.define_optional_argument('object')
69
+ method.define_optional_argument('message')
70
+ method.define_block_argument('block')
71
+ end
72
+
73
+ klass.define_instance_method('assert_alias_method') do |method|
74
+ method.define_argument('object')
75
+ method.define_argument('alias_name')
76
+ method.define_argument('original_name')
77
+ method.define_optional_argument('message')
78
+ end
79
+
80
+ klass.define_instance_method('assert_block') do |method|
81
+ method.define_optional_argument('message')
82
+ end
83
+
84
+ klass.define_instance_method('assert_boolean') do |method|
85
+ method.define_argument('actual')
86
+ method.define_optional_argument('message')
87
+ end
88
+
89
+ klass.define_instance_method('assert_compare') do |method|
90
+ method.define_argument('expected')
91
+ method.define_argument('operator')
92
+ method.define_argument('actual')
93
+ method.define_optional_argument('message')
94
+ end
95
+
96
+ klass.define_instance_method('assert_const_defined') do |method|
97
+ method.define_argument('object')
98
+ method.define_argument('constant_name')
99
+ method.define_optional_argument('message')
100
+ end
101
+
102
+ klass.define_instance_method('assert_empty') do |method|
103
+ method.define_argument('object')
104
+ method.define_optional_argument('message')
105
+ end
106
+
107
+ klass.define_instance_method('assert_equal') do |method|
108
+ method.define_argument('expected')
109
+ method.define_argument('actual')
110
+ method.define_optional_argument('message')
111
+ end
112
+
113
+ klass.define_instance_method('assert_fail_assertion') do |method|
114
+ method.define_optional_argument('message')
115
+ end
116
+
117
+ klass.define_instance_method('assert_false') do |method|
118
+ method.define_argument('actual')
119
+ method.define_optional_argument('message')
120
+ end
121
+
122
+ klass.define_instance_method('assert_in_delta') do |method|
123
+ method.define_argument('expected_float')
124
+ method.define_argument('actual_float')
125
+ method.define_optional_argument('delta')
126
+ method.define_optional_argument('message')
127
+ end
128
+
129
+ klass.define_instance_method('assert_in_epsilon') do |method|
130
+ method.define_argument('expected_float')
131
+ method.define_argument('actual_float')
132
+ method.define_optional_argument('epsilon')
133
+ method.define_optional_argument('message')
134
+ end
135
+
136
+ klass.define_instance_method('assert_include') do |method|
137
+ method.define_argument('collection')
138
+ method.define_argument('object')
139
+ method.define_optional_argument('message')
140
+ end
141
+
142
+ klass.define_instance_method('assert_includes') do |method|
143
+ method.define_argument('collection')
144
+ method.define_argument('object')
145
+ method.define_optional_argument('message')
146
+ end
147
+
148
+ klass.define_instance_method('assert_instance_of') do |method|
149
+ method.define_argument('klass')
150
+ method.define_argument('object')
151
+ method.define_optional_argument('message')
152
+ end
153
+
154
+ klass.define_instance_method('assert_kind_of') do |method|
155
+ method.define_argument('klass')
156
+ method.define_argument('object')
157
+ method.define_optional_argument('message')
158
+ end
159
+
160
+ klass.define_instance_method('assert_match') do |method|
161
+ method.define_argument('pattern')
162
+ method.define_argument('string')
163
+ method.define_optional_argument('message')
164
+ end
165
+
166
+ klass.define_instance_method('assert_nil') do |method|
167
+ method.define_argument('object')
168
+ method.define_optional_argument('message')
169
+ end
170
+
171
+ klass.define_instance_method('assert_no_match') do |method|
172
+ method.define_argument('regexp')
173
+ method.define_argument('string')
174
+ method.define_optional_argument('message')
175
+ end
176
+
177
+ klass.define_instance_method('assert_not_const_defined') do |method|
178
+ method.define_argument('object')
179
+ method.define_argument('constant_name')
180
+ method.define_optional_argument('message')
181
+ end
182
+
183
+ klass.define_instance_method('assert_not_empty') do |method|
184
+ method.define_argument('object')
185
+ method.define_optional_argument('message')
186
+ end
187
+
188
+ klass.define_instance_method('assert_not_equal') do |method|
189
+ method.define_argument('expected')
190
+ method.define_argument('actual')
191
+ method.define_optional_argument('message')
192
+ end
193
+
194
+ klass.define_instance_method('assert_not_in_delta') do |method|
195
+ method.define_argument('expected_float')
196
+ method.define_argument('actual_float')
197
+ method.define_optional_argument('delta')
198
+ method.define_optional_argument('message')
199
+ end
200
+
201
+ klass.define_instance_method('assert_not_in_epsilon') do |method|
202
+ method.define_argument('expected_float')
203
+ method.define_argument('actual_float')
204
+ method.define_optional_argument('epsilon')
205
+ method.define_optional_argument('message')
206
+ end
207
+
208
+ klass.define_instance_method('assert_not_include') do |method|
209
+ method.define_argument('collection')
210
+ method.define_argument('object')
211
+ method.define_optional_argument('message')
212
+ end
213
+
214
+ klass.define_instance_method('assert_not_includes') do |method|
215
+ method.define_argument('collection')
216
+ method.define_argument('object')
217
+ method.define_optional_argument('message')
218
+ end
219
+
220
+ klass.define_instance_method('assert_not_instance_of') do |method|
221
+ method.define_argument('klass')
222
+ method.define_argument('object')
223
+ method.define_optional_argument('message')
224
+ end
225
+
226
+ klass.define_instance_method('assert_not_kind_of') do |method|
227
+ method.define_argument('klass')
228
+ method.define_argument('object')
229
+ method.define_optional_argument('message')
230
+ end
231
+
232
+ klass.define_instance_method('assert_not_match') do |method|
233
+ method.define_argument('regexp')
234
+ method.define_argument('string')
235
+ method.define_optional_argument('message')
236
+ end
237
+
238
+ klass.define_instance_method('assert_not_nil') do |method|
239
+ method.define_argument('object')
240
+ method.define_optional_argument('message')
241
+ end
242
+
243
+ klass.define_instance_method('assert_not_operator') do |method|
244
+ method.define_argument('object1')
245
+ method.define_argument('operator')
246
+ method.define_argument('object2')
247
+ method.define_optional_argument('message')
248
+ end
249
+
250
+ klass.define_instance_method('assert_not_predicate') do |method|
251
+ method.define_argument('object')
252
+ method.define_argument('predicate')
253
+ method.define_optional_argument('message')
254
+ end
255
+
256
+ klass.define_instance_method('assert_not_respond_to') do |method|
257
+ method.define_argument('object')
258
+ method.define_argument('method')
259
+ method.define_optional_argument('message')
260
+ end
261
+
262
+ klass.define_instance_method('assert_not_same') do |method|
263
+ method.define_argument('expected')
264
+ method.define_argument('actual')
265
+ method.define_optional_argument('message')
266
+ end
267
+
268
+ klass.define_instance_method('assert_not_send') do |method|
269
+ method.define_argument('send_array')
270
+ method.define_optional_argument('message')
271
+ end
272
+
273
+ klass.define_instance_method('assert_nothing_raised') do |method|
274
+ method.define_rest_argument('args')
275
+ end
276
+
277
+ klass.define_instance_method('assert_nothing_thrown') do |method|
278
+ method.define_optional_argument('message')
279
+ method.define_block_argument('proc')
280
+ end
281
+
282
+ klass.define_instance_method('assert_operator') do |method|
283
+ method.define_argument('object1')
284
+ method.define_argument('operator')
285
+ method.define_argument('object2')
286
+ method.define_optional_argument('message')
287
+ end
288
+
289
+ klass.define_instance_method('assert_path_exist') do |method|
290
+ method.define_argument('path')
291
+ method.define_optional_argument('message')
292
+ end
293
+
294
+ klass.define_instance_method('assert_path_not_exist') do |method|
295
+ method.define_argument('path')
296
+ method.define_optional_argument('message')
297
+ end
298
+
299
+ klass.define_instance_method('assert_predicate') do |method|
300
+ method.define_argument('object')
301
+ method.define_argument('predicate')
302
+ method.define_optional_argument('message')
303
+ end
304
+
305
+ klass.define_instance_method('assert_raise') do |method|
306
+ method.define_rest_argument('args')
307
+ method.define_block_argument('block')
308
+ end
309
+
310
+ klass.define_instance_method('assert_raise_kind_of') do |method|
311
+ method.define_rest_argument('args')
312
+ method.define_block_argument('block')
313
+ end
314
+
315
+ klass.define_instance_method('assert_raise_message') do |method|
316
+ method.define_argument('expected')
317
+ method.define_optional_argument('message')
318
+ end
319
+
320
+ klass.define_instance_method('assert_raises') do |method|
321
+ method.define_rest_argument('args')
322
+ method.define_block_argument('block')
323
+ end
324
+
325
+ klass.define_instance_method('assert_respond_to') do |method|
326
+ method.define_argument('object')
327
+ method.define_argument('method')
328
+ method.define_optional_argument('message')
329
+ end
330
+
331
+ klass.define_instance_method('assert_same') do |method|
332
+ method.define_argument('expected')
333
+ method.define_argument('actual')
334
+ method.define_optional_argument('message')
335
+ end
336
+
337
+ klass.define_instance_method('assert_send') do |method|
338
+ method.define_argument('send_array')
339
+ method.define_optional_argument('message')
340
+ end
341
+
342
+ klass.define_instance_method('assert_throw') do |method|
343
+ method.define_argument('expected_object')
344
+ method.define_optional_argument('message')
345
+ method.define_block_argument('proc')
346
+ end
347
+
348
+ klass.define_instance_method('assert_throws') do |method|
349
+ method.define_argument('expected_object')
350
+ method.define_optional_argument('message')
351
+ method.define_block_argument('proc')
352
+ end
353
+
354
+ klass.define_instance_method('assert_true') do |method|
355
+ method.define_argument('actual')
356
+ method.define_optional_argument('message')
357
+ end
358
+
359
+ klass.define_instance_method('build_message') do |method|
360
+ method.define_argument('head')
361
+ method.define_optional_argument('template')
362
+ method.define_rest_argument('arguments')
363
+ end
364
+
365
+ klass.define_instance_method('flunk') do |method|
366
+ method.define_optional_argument('message')
367
+ end
368
+
369
+ klass.define_instance_method('refute') do |method|
370
+ method.define_argument('object')
371
+ method.define_optional_argument('message')
372
+ end
373
+
374
+ klass.define_instance_method('refute_empty') do |method|
375
+ method.define_argument('object')
376
+ method.define_optional_argument('message')
377
+ end
378
+
379
+ klass.define_instance_method('refute_equal') do |method|
380
+ method.define_argument('expected')
381
+ method.define_argument('actual')
382
+ method.define_optional_argument('message')
383
+ end
384
+
385
+ klass.define_instance_method('refute_in_delta') do |method|
386
+ method.define_argument('expected_float')
387
+ method.define_argument('actual_float')
388
+ method.define_optional_argument('delta')
389
+ method.define_optional_argument('message')
390
+ end
391
+
392
+ klass.define_instance_method('refute_in_epsilon') do |method|
393
+ method.define_argument('expected_float')
394
+ method.define_argument('actual_float')
395
+ method.define_optional_argument('epsilon')
396
+ method.define_optional_argument('message')
397
+ end
398
+
399
+ klass.define_instance_method('refute_includes') do |method|
400
+ method.define_argument('collection')
401
+ method.define_argument('object')
402
+ method.define_optional_argument('message')
403
+ end
404
+
405
+ klass.define_instance_method('refute_instance_of') do |method|
406
+ method.define_argument('klass')
407
+ method.define_argument('object')
408
+ method.define_optional_argument('message')
409
+ end
410
+
411
+ klass.define_instance_method('refute_kind_of') do |method|
412
+ method.define_argument('klass')
413
+ method.define_argument('object')
414
+ method.define_optional_argument('message')
415
+ end
416
+
417
+ klass.define_instance_method('refute_match') do |method|
418
+ method.define_argument('regexp')
419
+ method.define_argument('string')
420
+ method.define_optional_argument('message')
421
+ end
422
+
423
+ klass.define_instance_method('refute_nil') do |method|
424
+ method.define_argument('object')
425
+ method.define_optional_argument('message')
426
+ end
427
+
428
+ klass.define_instance_method('refute_operator') do |method|
429
+ method.define_argument('object1')
430
+ method.define_argument('operator')
431
+ method.define_argument('object2')
432
+ method.define_optional_argument('message')
433
+ end
434
+
435
+ klass.define_instance_method('refute_predicate') do |method|
436
+ method.define_argument('object')
437
+ method.define_argument('predicate')
438
+ method.define_optional_argument('message')
439
+ end
440
+
441
+ klass.define_instance_method('refute_respond_to') do |method|
442
+ method.define_argument('object')
443
+ method.define_argument('method')
444
+ method.define_optional_argument('message')
445
+ end
446
+
447
+ klass.define_instance_method('refute_same') do |method|
448
+ method.define_argument('expected')
449
+ method.define_argument('actual')
450
+ method.define_optional_argument('message')
451
+ end
452
+ end
453
+
454
+ defs.define_constant('Test::Unit::Assertions::AssertExceptionHelper') do |klass|
455
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
456
+
457
+ klass.define_instance_method('expected?') do |method|
458
+ method.define_argument('actual_exception')
459
+ method.define_optional_argument('equality')
460
+ end
461
+
462
+ klass.define_instance_method('expected_exceptions')
463
+
464
+ klass.define_instance_method('initialize') do |method|
465
+ method.define_argument('test_case')
466
+ method.define_argument('expected_exceptions')
467
+
468
+ method.returns { |object| object.instance }
469
+ end
470
+ end
471
+
472
+ defs.define_constant('Test::Unit::Assertions::AssertExceptionHelper::WrappedException') do |klass|
473
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
474
+
475
+ klass.define_instance_method('exception')
476
+
477
+ klass.define_instance_method('initialize') do |method|
478
+ method.define_argument('exception')
479
+
480
+ method.returns { |object| object.instance }
481
+ end
482
+
483
+ klass.define_instance_method('inspect')
484
+
485
+ klass.define_instance_method('method_missing') do |method|
486
+ method.define_argument('name')
487
+ method.define_rest_argument('args')
488
+ method.define_block_argument('block')
489
+ end
490
+ end
491
+
492
+ defs.define_constant('Test::Unit::Assertions::AssertionMessage') do |klass|
493
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
494
+ klass.inherits(defs.constant_proxy('Test::Unit::Util::BacktraceFilter', RubyLint.registry))
495
+
496
+ klass.define_method('convert') do |method|
497
+ method.define_argument('object')
498
+ end
499
+
500
+ klass.define_method('delayed_diff') do |method|
501
+ method.define_argument('from')
502
+ method.define_argument('to')
503
+ end
504
+
505
+ klass.define_method('delayed_literal') do |method|
506
+ method.define_block_argument('block')
507
+ end
508
+
509
+ klass.define_method('diff_target_string?') do |method|
510
+ method.define_argument('string')
511
+ end
512
+
513
+ klass.define_method('ensure_diffable_string') do |method|
514
+ method.define_argument('string')
515
+ end
516
+
517
+ klass.define_method('literal') do |method|
518
+ method.define_argument('value')
519
+ end
520
+
521
+ klass.define_method('max_diff_target_string_size')
522
+
523
+ klass.define_method('max_diff_target_string_size=') do |method|
524
+ method.define_argument('size')
525
+ end
526
+
527
+ klass.define_method('maybe_container') do |method|
528
+ method.define_argument('value')
529
+ method.define_block_argument('formatter')
530
+ end
531
+
532
+ klass.define_method('prepare_for_diff') do |method|
533
+ method.define_argument('from')
534
+ method.define_argument('to')
535
+ end
536
+
537
+ klass.define_method('use_pp')
538
+
539
+ klass.define_method('use_pp=') do |method|
540
+ method.define_argument('arg1')
541
+ end
542
+
543
+ klass.define_instance_method('add_period') do |method|
544
+ method.define_argument('string')
545
+ end
546
+
547
+ klass.define_instance_method('convert') do |method|
548
+ method.define_argument('object')
549
+ end
550
+
551
+ klass.define_instance_method('initialize') do |method|
552
+ method.define_argument('head')
553
+ method.define_argument('template_string')
554
+ method.define_argument('parameters')
555
+
556
+ method.returns { |object| object.instance }
557
+ end
558
+
559
+ klass.define_instance_method('template')
560
+
561
+ klass.define_instance_method('to_s')
562
+ end
563
+
564
+ defs.define_constant('Test::Unit::Assertions::AssertionMessage::ArrayInspector') do |klass|
565
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
566
+
567
+ klass.define_method('target?') do |method|
568
+ method.define_argument('object')
569
+ end
570
+
571
+ klass.define_instance_method('each') do |method|
572
+ method.define_block_argument('block')
573
+ end
574
+
575
+ klass.define_instance_method('initialize') do |method|
576
+ method.define_argument('array')
577
+ method.define_argument('inspected_objects')
578
+
579
+ method.returns { |object| object.instance }
580
+ end
581
+
582
+ klass.define_instance_method('inspect')
583
+
584
+ klass.define_instance_method('pretty_print') do |method|
585
+ method.define_argument('q')
586
+ end
587
+
588
+ klass.define_instance_method('pretty_print_cycle') do |method|
589
+ method.define_argument('q')
590
+ end
591
+ end
592
+
593
+ defs.define_constant('Test::Unit::Assertions::AssertionMessage::DelayedLiteral') do |klass|
594
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
595
+
596
+ klass.define_instance_method('initialize') do |method|
597
+ method.define_argument('value')
598
+
599
+ method.returns { |object| object.instance }
600
+ end
601
+
602
+ klass.define_instance_method('inspect')
603
+ end
604
+
605
+ defs.define_constant('Test::Unit::Assertions::AssertionMessage::HashInspector') do |klass|
606
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
607
+
608
+ klass.define_method('target?') do |method|
609
+ method.define_argument('object')
610
+ end
611
+
612
+ klass.define_instance_method('each_pair')
613
+
614
+ klass.define_instance_method('initialize') do |method|
615
+ method.define_argument('hash')
616
+ method.define_argument('inspected_objects')
617
+
618
+ method.returns { |object| object.instance }
619
+ end
620
+
621
+ klass.define_instance_method('inspect')
622
+
623
+ klass.define_instance_method('pretty_print') do |method|
624
+ method.define_argument('q')
625
+ end
626
+
627
+ klass.define_instance_method('pretty_print_cycle') do |method|
628
+ method.define_argument('q')
629
+ end
630
+ end
631
+
632
+ defs.define_constant('Test::Unit::Assertions::AssertionMessage::Inspector') do |klass|
633
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
634
+ klass.inherits(defs.constant_proxy('Comparable', RubyLint.registry))
635
+
636
+ klass.define_method('cached_new') do |method|
637
+ method.define_argument('object')
638
+ method.define_argument('inspected_objects')
639
+ end
640
+
641
+ klass.define_method('inspector_classes')
642
+
643
+ klass.define_method('register_inspector_class') do |method|
644
+ method.define_argument('inspector_class')
645
+ end
646
+
647
+ klass.define_method('unregister_inspector_class') do |method|
648
+ method.define_argument('inspector_class')
649
+ end
650
+
651
+ klass.define_instance_method('<=>') do |method|
652
+ method.define_argument('other')
653
+ end
654
+
655
+ klass.define_instance_method('initialize') do |method|
656
+ method.define_argument('object')
657
+ method.define_optional_argument('inspected_objects')
658
+
659
+ method.returns { |object| object.instance }
660
+ end
661
+
662
+ klass.define_instance_method('inspect')
663
+
664
+ klass.define_instance_method('native_inspect')
665
+
666
+ klass.define_instance_method('object')
667
+
668
+ klass.define_instance_method('pretty_print') do |method|
669
+ method.define_argument('q')
670
+ end
671
+
672
+ klass.define_instance_method('pretty_print_cycle') do |method|
673
+ method.define_argument('q')
674
+ end
675
+ end
676
+
677
+ defs.define_constant('Test::Unit::Assertions::AssertionMessage::Literal') do |klass|
678
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
679
+
680
+ klass.define_instance_method('initialize') do |method|
681
+ method.define_argument('value')
682
+
683
+ method.returns { |object| object.instance }
684
+ end
685
+
686
+ klass.define_instance_method('inspect')
687
+ end
688
+
689
+ defs.define_constant('Test::Unit::Assertions::AssertionMessage::MaybeContainer') do |klass|
690
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
691
+
692
+ klass.define_instance_method('initialize') do |method|
693
+ method.define_argument('value')
694
+ method.define_block_argument('formatter')
695
+
696
+ method.returns { |object| object.instance }
697
+ end
698
+
699
+ klass.define_instance_method('inspect')
700
+ end
701
+
702
+ defs.define_constant('Test::Unit::Assertions::AssertionMessage::NumericInspector') do |klass|
703
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
704
+
705
+ klass.define_method('target?') do |method|
706
+ method.define_argument('object')
707
+ end
708
+
709
+ klass.define_instance_method('initialize') do |method|
710
+ method.define_argument('numeric')
711
+ method.define_argument('inspected_objects')
712
+
713
+ method.returns { |object| object.instance }
714
+ end
715
+
716
+ klass.define_instance_method('inspect')
717
+
718
+ klass.define_instance_method('pretty_print') do |method|
719
+ method.define_argument('q')
720
+ end
721
+
722
+ klass.define_instance_method('pretty_print_cycle') do |method|
723
+ method.define_argument('q')
724
+ end
725
+ end
726
+
727
+ defs.define_constant('Test::Unit::Assertions::AssertionMessage::TESTUNIT_FILE_SEPARATORS') do |klass|
728
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
729
+
730
+ end
731
+
732
+ defs.define_constant('Test::Unit::Assertions::AssertionMessage::TESTUNIT_PREFIX') do |klass|
733
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
734
+
735
+ end
736
+
737
+ defs.define_constant('Test::Unit::Assertions::AssertionMessage::TESTUNIT_RB_FILE') do |klass|
738
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
739
+
740
+ end
741
+
742
+ defs.define_constant('Test::Unit::Assertions::AssertionMessage::Template') do |klass|
743
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
744
+
745
+ klass.define_method('create') do |method|
746
+ method.define_argument('string')
747
+ end
748
+
749
+ klass.define_instance_method('count')
750
+
751
+ klass.define_instance_method('initialize') do |method|
752
+ method.define_argument('parts')
753
+
754
+ method.returns { |object| object.instance }
755
+ end
756
+
757
+ klass.define_instance_method('result') do |method|
758
+ method.define_argument('parameters')
759
+ end
760
+ end
761
+
762
+ defs.define_constant('Test::Unit::Assertions::NOT_SPECIFIED') do |klass|
763
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
764
+
765
+ end
766
+
767
+ defs.define_constant('Test::Unit::Assertions::ThrowTagExtractor') do |klass|
768
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
769
+
770
+ klass.define_instance_method('extract_tag')
771
+
772
+ klass.define_instance_method('initialize') do |method|
773
+ method.define_argument('error')
774
+
775
+ method.returns { |object| object.instance }
776
+ end
777
+ end
778
+
779
+ defs.define_constant('Test::Unit::Assertions::ThrowTagExtractor::UncaughtThrowPatterns') do |klass|
780
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
781
+
782
+ end
783
+
784
+ defs.define_constant('Test::Unit::Attribute') do |klass|
785
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
786
+
787
+ klass.define_method('included') do |method|
788
+ method.define_argument('base')
789
+ end
790
+
791
+ klass.define_instance_method('[]') do |method|
792
+ method.define_argument('name')
793
+ end
794
+
795
+ klass.define_instance_method('attributes')
796
+ end
797
+
798
+ defs.define_constant('Test::Unit::Attribute::BaseClassMethods') do |klass|
799
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
800
+
801
+ klass.define_instance_method('attributes_table')
802
+ end
803
+
804
+ defs.define_constant('Test::Unit::Attribute::ClassMethods') do |klass|
805
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
806
+
807
+ klass.define_instance_method('attribute') do |method|
808
+ method.define_argument('name')
809
+ method.define_argument('value')
810
+ method.define_optional_argument('options')
811
+ method.define_rest_argument('method_names')
812
+ end
813
+
814
+ klass.define_instance_method('attribute_observers') do |method|
815
+ method.define_argument('attribute_name')
816
+ end
817
+
818
+ klass.define_instance_method('attributes') do |method|
819
+ method.define_argument('method_name')
820
+ end
821
+
822
+ klass.define_instance_method('attributes_table')
823
+
824
+ klass.define_instance_method('current_attribute') do |method|
825
+ method.define_argument('name')
826
+ end
827
+
828
+ klass.define_instance_method('current_attributes')
829
+
830
+ klass.define_instance_method('find_attribute') do |method|
831
+ method.define_argument('method_name')
832
+ method.define_argument('name')
833
+ end
834
+
835
+ klass.define_instance_method('method_added') do |method|
836
+ method.define_argument('name')
837
+ end
838
+
839
+ klass.define_instance_method('register_attribute_observer') do |method|
840
+ method.define_argument('attribute_name')
841
+ method.define_optional_argument('observer')
842
+ end
843
+
844
+ klass.define_instance_method('set_attributes') do |method|
845
+ method.define_argument('method_name')
846
+ method.define_argument('new_attributes')
847
+ end
848
+ end
849
+
850
+ defs.define_constant('Test::Unit::Attribute::StringifyKeyHash') do |klass|
851
+ klass.inherits(defs.constant_proxy('Hash', RubyLint.registry))
852
+
853
+ klass.define_method('stringify') do |method|
854
+ method.define_argument('object')
855
+ end
856
+
857
+ klass.define_instance_method('[]') do |method|
858
+ method.define_argument('key')
859
+ end
860
+
861
+ klass.define_instance_method('[]=') do |method|
862
+ method.define_argument('key')
863
+ method.define_argument('value')
864
+ end
865
+
866
+ klass.define_instance_method('key?') do |method|
867
+ method.define_argument('key')
868
+ end
869
+ end
870
+
871
+ defs.define_constant('Test::Unit::AttributeMatcher') do |klass|
872
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
873
+
874
+ klass.define_instance_method('initialize') do |method|
875
+ method.define_argument('test')
876
+
877
+ method.returns { |object| object.instance }
878
+ end
879
+
880
+ klass.define_instance_method('match?') do |method|
881
+ method.define_argument('expression')
882
+ end
883
+
884
+ klass.define_instance_method('method_missing') do |method|
885
+ method.define_argument('name')
886
+ method.define_rest_argument('args')
887
+ end
888
+ end
889
+
890
+ defs.define_constant('Test::Unit::AutoRunner') do |klass|
891
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
892
+
893
+ klass.define_method('collector') do |method|
894
+ method.define_argument('id')
895
+ end
896
+
897
+ klass.define_method('default_runner')
898
+
899
+ klass.define_method('default_runner=') do |method|
900
+ method.define_argument('id')
901
+ end
902
+
903
+ klass.define_method('need_auto_run=') do |method|
904
+ method.define_argument('need')
905
+ end
906
+
907
+ klass.define_method('need_auto_run?')
908
+
909
+ klass.define_method('prepare') do |method|
910
+ method.define_optional_argument('hook')
911
+ end
912
+
913
+ klass.define_method('register_collector') do |method|
914
+ method.define_argument('id')
915
+ method.define_optional_argument('collector_builder')
916
+ end
917
+
918
+ klass.define_method('register_color_scheme') do |method|
919
+ method.define_argument('id')
920
+ method.define_argument('scheme')
921
+ end
922
+
923
+ klass.define_method('register_runner') do |method|
924
+ method.define_argument('id')
925
+ method.define_optional_argument('runner_builder')
926
+ end
927
+
928
+ klass.define_method('run') do |method|
929
+ method.define_optional_argument('force_standalone')
930
+ method.define_optional_argument('default_dir')
931
+ method.define_optional_argument('argv')
932
+ method.define_block_argument('block')
933
+ end
934
+
935
+ klass.define_method('runner') do |method|
936
+ method.define_argument('id')
937
+ end
938
+
939
+ klass.define_method('setup_option') do |method|
940
+ method.define_optional_argument('option_builder')
941
+ end
942
+
943
+ klass.define_method('standalone?')
944
+
945
+ klass.define_instance_method('base')
946
+
947
+ klass.define_instance_method('base=') do |method|
948
+ method.define_argument('arg1')
949
+ end
950
+
951
+ klass.define_instance_method('collector=') do |method|
952
+ method.define_argument('arg1')
953
+ end
954
+
955
+ klass.define_instance_method('color_scheme')
956
+
957
+ klass.define_instance_method('color_scheme=') do |method|
958
+ method.define_argument('arg1')
959
+ end
960
+
961
+ klass.define_instance_method('exclude')
962
+
963
+ klass.define_instance_method('exclude=') do |method|
964
+ method.define_argument('arg1')
965
+ end
966
+
967
+ klass.define_instance_method('filters')
968
+
969
+ klass.define_instance_method('filters=') do |method|
970
+ method.define_argument('arg1')
971
+ end
972
+
973
+ klass.define_instance_method('initialize') do |method|
974
+ method.define_argument('standalone')
975
+
976
+ method.returns { |object| object.instance }
977
+ end
978
+
979
+ klass.define_instance_method('keyword_display') do |method|
980
+ method.define_argument('keywords')
981
+ end
982
+
983
+ klass.define_instance_method('listeners')
984
+
985
+ klass.define_instance_method('listeners=') do |method|
986
+ method.define_argument('arg1')
987
+ end
988
+
989
+ klass.define_instance_method('load_config') do |method|
990
+ method.define_argument('file')
991
+ end
992
+
993
+ klass.define_instance_method('options')
994
+
995
+ klass.define_instance_method('pattern')
996
+
997
+ klass.define_instance_method('pattern=') do |method|
998
+ method.define_argument('arg1')
999
+ end
1000
+
1001
+ klass.define_instance_method('prepare')
1002
+
1003
+ klass.define_instance_method('process_args') do |method|
1004
+ method.define_optional_argument('args')
1005
+ end
1006
+
1007
+ klass.define_instance_method('run')
1008
+
1009
+ klass.define_instance_method('runner=') do |method|
1010
+ method.define_argument('arg1')
1011
+ end
1012
+
1013
+ klass.define_instance_method('runner_options')
1014
+
1015
+ klass.define_instance_method('suite')
1016
+
1017
+ klass.define_instance_method('to_run')
1018
+
1019
+ klass.define_instance_method('to_run=') do |method|
1020
+ method.define_argument('arg1')
1021
+ end
1022
+
1023
+ klass.define_instance_method('workdir')
1024
+
1025
+ klass.define_instance_method('workdir=') do |method|
1026
+ method.define_argument('arg1')
1027
+ end
1028
+ end
1029
+
1030
+ defs.define_constant('Test::Unit::AutoRunner::ADDITIONAL_OPTIONS') do |klass|
1031
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1032
+
1033
+ end
1034
+
1035
+ defs.define_constant('Test::Unit::AutoRunner::COLLECTORS') do |klass|
1036
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1037
+
1038
+ end
1039
+
1040
+ defs.define_constant('Test::Unit::AutoRunner::PREPARE_HOOKS') do |klass|
1041
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1042
+
1043
+ end
1044
+
1045
+ defs.define_constant('Test::Unit::AutoRunner::RUNNERS') do |klass|
1046
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1047
+
1048
+ end
1049
+
1050
+ defs.define_constant('Test::Unit::Color') do |klass|
1051
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1052
+
1053
+ klass.define_method('parse_256_color') do |method|
1054
+ method.define_argument('string')
1055
+ end
1056
+
1057
+ klass.define_instance_method('+') do |method|
1058
+ method.define_argument('other')
1059
+ end
1060
+
1061
+ klass.define_instance_method('==') do |method|
1062
+ method.define_argument('other')
1063
+ end
1064
+
1065
+ klass.define_instance_method('background?')
1066
+
1067
+ klass.define_instance_method('bold?')
1068
+
1069
+ klass.define_instance_method('escape_sequence')
1070
+
1071
+ klass.define_instance_method('foreground?')
1072
+
1073
+ klass.define_instance_method('initialize') do |method|
1074
+ method.define_argument('name')
1075
+ method.define_optional_argument('options')
1076
+
1077
+ method.returns { |object| object.instance }
1078
+ end
1079
+
1080
+ klass.define_instance_method('intensity?')
1081
+
1082
+ klass.define_instance_method('italic?')
1083
+
1084
+ klass.define_instance_method('name')
1085
+
1086
+ klass.define_instance_method('sequence')
1087
+
1088
+ klass.define_instance_method('underline?')
1089
+ end
1090
+
1091
+ defs.define_constant('Test::Unit::Color::Error') do |klass|
1092
+ klass.inherits(defs.constant_proxy('StandardError', RubyLint.registry))
1093
+
1094
+ end
1095
+
1096
+ defs.define_constant('Test::Unit::Color::NAMES') do |klass|
1097
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1098
+
1099
+ end
1100
+
1101
+ defs.define_constant('Test::Unit::Color::ParseError') do |klass|
1102
+ klass.inherits(defs.constant_proxy('Test::Unit::Color::Error', RubyLint.registry))
1103
+
1104
+ end
1105
+
1106
+ defs.define_constant('Test::Unit::ColorScheme') do |klass|
1107
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1108
+ klass.inherits(defs.constant_proxy('Enumerable', RubyLint.registry))
1109
+
1110
+ klass.define_method('[]') do |method|
1111
+ method.define_argument('id')
1112
+ end
1113
+
1114
+ klass.define_method('[]=') do |method|
1115
+ method.define_argument('id')
1116
+ method.define_argument('scheme_or_spec')
1117
+ end
1118
+
1119
+ klass.define_method('all')
1120
+
1121
+ klass.define_method('available_colors')
1122
+
1123
+ klass.define_method('default')
1124
+
1125
+ klass.define_method('default_for_256_colors')
1126
+
1127
+ klass.define_method('default_for_8_colors')
1128
+
1129
+ klass.define_instance_method('[]') do |method|
1130
+ method.define_argument('name')
1131
+ end
1132
+
1133
+ klass.define_instance_method('[]=') do |method|
1134
+ method.define_argument('name')
1135
+ method.define_argument('color_spec')
1136
+ end
1137
+
1138
+ klass.define_instance_method('each') do |method|
1139
+ method.define_block_argument('block')
1140
+ end
1141
+
1142
+ klass.define_instance_method('initialize') do |method|
1143
+ method.define_argument('scheme_spec')
1144
+
1145
+ method.returns { |object| object.instance }
1146
+ end
1147
+
1148
+ klass.define_instance_method('to_hash')
1149
+ end
1150
+
1151
+ defs.define_constant('Test::Unit::Data') do |klass|
1152
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1153
+
1154
+ klass.define_method('included') do |method|
1155
+ method.define_argument('base')
1156
+ end
1157
+ end
1158
+
1159
+ defs.define_constant('Test::Unit::Data::ClassMethods') do |klass|
1160
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1161
+
1162
+ klass.define_instance_method('data') do |method|
1163
+ method.define_rest_argument('arguments')
1164
+ method.define_block_argument('block')
1165
+ end
1166
+
1167
+ klass.define_instance_method('load_data') do |method|
1168
+ method.define_argument('file_name')
1169
+ end
1170
+ end
1171
+
1172
+ defs.define_constant('Test::Unit::Data::ClassMethods::Loader') do |klass|
1173
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1174
+
1175
+ klass.define_instance_method('initialize') do |method|
1176
+ method.define_argument('test_case')
1177
+
1178
+ method.returns { |object| object.instance }
1179
+ end
1180
+
1181
+ klass.define_instance_method('load') do |method|
1182
+ method.define_argument('file_name')
1183
+ end
1184
+
1185
+ klass.define_instance_method('load_csv') do |method|
1186
+ method.define_argument('file_name')
1187
+ end
1188
+
1189
+ klass.define_instance_method('load_tsv') do |method|
1190
+ method.define_argument('file_name')
1191
+ end
1192
+ end
1193
+
1194
+ defs.define_constant('Test::Unit::Diff') do |klass|
1195
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1196
+
1197
+ klass.define_method('diff') do |method|
1198
+ method.define_argument('differ_class')
1199
+ method.define_argument('from')
1200
+ method.define_argument('to')
1201
+ method.define_optional_argument('options')
1202
+ end
1203
+
1204
+ klass.define_method('fold') do |method|
1205
+ method.define_argument('string')
1206
+ end
1207
+
1208
+ klass.define_method('folded_readable') do |method|
1209
+ method.define_argument('from')
1210
+ method.define_argument('to')
1211
+ method.define_optional_argument('options')
1212
+ end
1213
+
1214
+ klass.define_method('need_fold?') do |method|
1215
+ method.define_argument('diff')
1216
+ end
1217
+
1218
+ klass.define_method('readable') do |method|
1219
+ method.define_argument('from')
1220
+ method.define_argument('to')
1221
+ method.define_optional_argument('options')
1222
+ end
1223
+
1224
+ klass.define_method('unified') do |method|
1225
+ method.define_argument('from')
1226
+ method.define_argument('to')
1227
+ method.define_optional_argument('options')
1228
+ end
1229
+ end
1230
+
1231
+ defs.define_constant('Test::Unit::Diff::Differ') do |klass|
1232
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1233
+
1234
+ klass.define_instance_method('initialize') do |method|
1235
+ method.define_argument('from')
1236
+ method.define_argument('to')
1237
+
1238
+ method.returns { |object| object.instance }
1239
+ end
1240
+ end
1241
+
1242
+ defs.define_constant('Test::Unit::Diff::ReadableDiffer') do |klass|
1243
+ klass.inherits(defs.constant_proxy('Test::Unit::Diff::Differ', RubyLint.registry))
1244
+
1245
+ klass.define_instance_method('diff') do |method|
1246
+ method.define_optional_argument('options')
1247
+ end
1248
+ end
1249
+
1250
+ defs.define_constant('Test::Unit::Diff::SequenceMatcher') do |klass|
1251
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1252
+
1253
+ klass.define_instance_method('blocks')
1254
+
1255
+ klass.define_instance_method('grouped_operations') do |method|
1256
+ method.define_optional_argument('context_size')
1257
+ end
1258
+
1259
+ klass.define_instance_method('initialize') do |method|
1260
+ method.define_argument('from')
1261
+ method.define_argument('to')
1262
+ method.define_block_argument('junk_predicate')
1263
+
1264
+ method.returns { |object| object.instance }
1265
+ end
1266
+
1267
+ klass.define_instance_method('longest_match') do |method|
1268
+ method.define_argument('from_start')
1269
+ method.define_argument('from_end')
1270
+ method.define_argument('to_start')
1271
+ method.define_argument('to_end')
1272
+ end
1273
+
1274
+ klass.define_instance_method('operations')
1275
+
1276
+ klass.define_instance_method('ratio')
1277
+ end
1278
+
1279
+ defs.define_constant('Test::Unit::Diff::UTF8Line') do |klass|
1280
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1281
+
1282
+ klass.define_method('wide_character?') do |method|
1283
+ method.define_argument('character')
1284
+ end
1285
+
1286
+ klass.define_instance_method('[]') do |method|
1287
+ method.define_rest_argument('args')
1288
+ end
1289
+
1290
+ klass.define_instance_method('compute_width') do |method|
1291
+ method.define_argument('start')
1292
+ method.define_argument('_end')
1293
+ end
1294
+
1295
+ klass.define_instance_method('each') do |method|
1296
+ method.define_block_argument('block')
1297
+ end
1298
+
1299
+ klass.define_instance_method('initialize') do |method|
1300
+ method.define_argument('line')
1301
+
1302
+ method.returns { |object| object.instance }
1303
+ end
1304
+
1305
+ klass.define_instance_method('size')
1306
+
1307
+ klass.define_instance_method('to_s')
1308
+ end
1309
+
1310
+ defs.define_constant('Test::Unit::Diff::UnifiedDiffer') do |klass|
1311
+ klass.inherits(defs.constant_proxy('Test::Unit::Diff::Differ', RubyLint.registry))
1312
+
1313
+ klass.define_instance_method('diff') do |method|
1314
+ method.define_optional_argument('options')
1315
+ end
1316
+ end
1317
+
1318
+ defs.define_constant('Test::Unit::Error') do |klass|
1319
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1320
+ klass.inherits(defs.constant_proxy('Test::Unit::Util::BacktraceFilter', RubyLint.registry))
1321
+
1322
+ klass.define_instance_method('backtrace')
1323
+
1324
+ klass.define_instance_method('critical?')
1325
+
1326
+ klass.define_instance_method('exception')
1327
+
1328
+ klass.define_instance_method('initialize') do |method|
1329
+ method.define_argument('test_name')
1330
+ method.define_argument('exception')
1331
+ method.define_optional_argument('options')
1332
+
1333
+ method.returns { |object| object.instance }
1334
+ end
1335
+
1336
+ klass.define_instance_method('label')
1337
+
1338
+ klass.define_instance_method('location')
1339
+
1340
+ klass.define_instance_method('long_display')
1341
+
1342
+ klass.define_instance_method('message')
1343
+
1344
+ klass.define_instance_method('method_name')
1345
+
1346
+ klass.define_instance_method('short_display')
1347
+
1348
+ klass.define_instance_method('single_character_display')
1349
+
1350
+ klass.define_instance_method('test_name')
1351
+
1352
+ klass.define_instance_method('to_s')
1353
+ end
1354
+
1355
+ defs.define_constant('Test::Unit::Error::LABEL') do |klass|
1356
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1357
+
1358
+ end
1359
+
1360
+ defs.define_constant('Test::Unit::Error::SINGLE_CHARACTER') do |klass|
1361
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1362
+
1363
+ end
1364
+
1365
+ defs.define_constant('Test::Unit::Error::TESTUNIT_FILE_SEPARATORS') do |klass|
1366
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1367
+
1368
+ end
1369
+
1370
+ defs.define_constant('Test::Unit::Error::TESTUNIT_PREFIX') do |klass|
1371
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1372
+
1373
+ end
1374
+
1375
+ defs.define_constant('Test::Unit::Error::TESTUNIT_RB_FILE') do |klass|
1376
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1377
+
1378
+ end
1379
+
1380
+ defs.define_constant('Test::Unit::ErrorHandler') do |klass|
1381
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1382
+
1383
+ klass.define_method('included') do |method|
1384
+ method.define_argument('base')
1385
+ end
1386
+ end
1387
+
1388
+ defs.define_constant('Test::Unit::ErrorHandler::NOT_PASS_THROUGH_EXCEPTIONS') do |klass|
1389
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1390
+
1391
+ end
1392
+
1393
+ defs.define_constant('Test::Unit::ErrorHandler::NOT_PASS_THROUGH_EXCEPTION_NAMES') do |klass|
1394
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1395
+
1396
+ end
1397
+
1398
+ defs.define_constant('Test::Unit::ErrorHandler::PASS_THROUGH_EXCEPTIONS') do |klass|
1399
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1400
+
1401
+ end
1402
+
1403
+ defs.define_constant('Test::Unit::ErrorHandler::PASS_THROUGH_EXCEPTION_NAMES') do |klass|
1404
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1405
+
1406
+ end
1407
+
1408
+ defs.define_constant('Test::Unit::ExceptionHandler') do |klass|
1409
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1410
+
1411
+ klass.define_method('exception_handlers')
1412
+
1413
+ klass.define_method('included') do |method|
1414
+ method.define_argument('base')
1415
+ end
1416
+ end
1417
+
1418
+ defs.define_constant('Test::Unit::ExceptionHandler::ClassMethods') do |klass|
1419
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1420
+
1421
+ klass.define_instance_method('exception_handler') do |method|
1422
+ method.define_rest_argument('method_name_or_handlers')
1423
+ method.define_block_argument('block')
1424
+ end
1425
+
1426
+ klass.define_instance_method('exception_handlers')
1427
+
1428
+ klass.define_instance_method('unregister_exception_handler') do |method|
1429
+ method.define_rest_argument('method_name_or_handlers')
1430
+ end
1431
+ end
1432
+
1433
+ defs.define_constant('Test::Unit::Failure') do |klass|
1434
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1435
+
1436
+ klass.define_instance_method('actual')
1437
+
1438
+ klass.define_instance_method('critical?')
1439
+
1440
+ klass.define_instance_method('diff')
1441
+
1442
+ klass.define_instance_method('expected')
1443
+
1444
+ klass.define_instance_method('initialize') do |method|
1445
+ method.define_argument('test_name')
1446
+ method.define_argument('location')
1447
+ method.define_argument('message')
1448
+ method.define_optional_argument('options')
1449
+
1450
+ method.returns { |object| object.instance }
1451
+ end
1452
+
1453
+ klass.define_instance_method('inspected_actual')
1454
+
1455
+ klass.define_instance_method('inspected_expected')
1456
+
1457
+ klass.define_instance_method('label')
1458
+
1459
+ klass.define_instance_method('location')
1460
+
1461
+ klass.define_instance_method('long_display')
1462
+
1463
+ klass.define_instance_method('message')
1464
+
1465
+ klass.define_instance_method('method_name')
1466
+
1467
+ klass.define_instance_method('short_display')
1468
+
1469
+ klass.define_instance_method('single_character_display')
1470
+
1471
+ klass.define_instance_method('source_location')
1472
+
1473
+ klass.define_instance_method('test_name')
1474
+
1475
+ klass.define_instance_method('to_s')
1476
+
1477
+ klass.define_instance_method('user_message')
1478
+ end
1479
+
1480
+ defs.define_constant('Test::Unit::Failure::LABEL') do |klass|
1481
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1482
+
1483
+ end
1484
+
1485
+ defs.define_constant('Test::Unit::Failure::SINGLE_CHARACTER') do |klass|
1486
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1487
+
1488
+ end
1489
+
1490
+ defs.define_constant('Test::Unit::FailureHandler') do |klass|
1491
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1492
+
1493
+ klass.define_method('included') do |method|
1494
+ method.define_argument('base')
1495
+ end
1496
+
1497
+ klass.define_instance_method('add_failure') do |method|
1498
+ method.define_argument('message')
1499
+ method.define_argument('backtrace')
1500
+ method.define_optional_argument('options')
1501
+ end
1502
+ end
1503
+
1504
+ defs.define_constant('Test::Unit::Fixture') do |klass|
1505
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1506
+
1507
+ klass.define_method('included') do |method|
1508
+ method.define_argument('base')
1509
+ end
1510
+ end
1511
+
1512
+ defs.define_constant('Test::Unit::Fixture::ClassMethods') do |klass|
1513
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1514
+
1515
+ klass.define_instance_method('cleanup') do |method|
1516
+ method.define_rest_argument('method_names')
1517
+ method.define_block_argument('callback')
1518
+ end
1519
+
1520
+ klass.define_instance_method('fixture')
1521
+
1522
+ klass.define_instance_method('setup') do |method|
1523
+ method.define_rest_argument('method_names')
1524
+ method.define_block_argument('callback')
1525
+ end
1526
+
1527
+ klass.define_instance_method('teardown') do |method|
1528
+ method.define_rest_argument('method_names')
1529
+ method.define_block_argument('callback')
1530
+ end
1531
+
1532
+ klass.define_instance_method('unregister_cleanup') do |method|
1533
+ method.define_rest_argument('method_names_or_callbacks')
1534
+ end
1535
+
1536
+ klass.define_instance_method('unregister_setup') do |method|
1537
+ method.define_rest_argument('method_names_or_callbacks')
1538
+ end
1539
+
1540
+ klass.define_instance_method('unregister_teardown') do |method|
1541
+ method.define_rest_argument('method_names_or_callbacks')
1542
+ end
1543
+ end
1544
+
1545
+ defs.define_constant('Test::Unit::Fixture::Fixture') do |klass|
1546
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1547
+
1548
+ klass.define_instance_method('[]') do |method|
1549
+ method.define_argument('type')
1550
+ end
1551
+
1552
+ klass.define_instance_method('after_callbacks') do |method|
1553
+ method.define_argument('type')
1554
+ end
1555
+
1556
+ klass.define_instance_method('before_callbacks') do |method|
1557
+ method.define_argument('type')
1558
+ end
1559
+
1560
+ klass.define_instance_method('cleanup')
1561
+
1562
+ klass.define_instance_method('initialize') do |method|
1563
+ method.define_argument('test_case')
1564
+
1565
+ method.returns { |object| object.instance }
1566
+ end
1567
+
1568
+ klass.define_instance_method('setup')
1569
+
1570
+ klass.define_instance_method('teardown')
1571
+ end
1572
+
1573
+ defs.define_constant('Test::Unit::Fixture::HookPoint') do |klass|
1574
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1575
+
1576
+ klass.define_instance_method('after_append_callbacks')
1577
+
1578
+ klass.define_instance_method('after_prepend_callbacks')
1579
+
1580
+ klass.define_instance_method('before_append_callbacks')
1581
+
1582
+ klass.define_instance_method('before_prepend_callbacks')
1583
+
1584
+ klass.define_instance_method('initialize') do |method|
1585
+ method.define_argument('default_options')
1586
+
1587
+ method.returns { |object| object.instance }
1588
+ end
1589
+
1590
+ klass.define_instance_method('register') do |method|
1591
+ method.define_argument('method_name_or_callback')
1592
+ method.define_optional_argument('options')
1593
+ end
1594
+
1595
+ klass.define_instance_method('unregister') do |method|
1596
+ method.define_argument('method_name_or_callback')
1597
+ end
1598
+ end
1599
+
1600
+ defs.define_constant('Test::Unit::MixColor') do |klass|
1601
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1602
+
1603
+ klass.define_instance_method('+') do |method|
1604
+ method.define_argument('other')
1605
+ end
1606
+
1607
+ klass.define_instance_method('==') do |method|
1608
+ method.define_argument('other')
1609
+ end
1610
+
1611
+ klass.define_instance_method('colors')
1612
+
1613
+ klass.define_instance_method('escape_sequence')
1614
+
1615
+ klass.define_instance_method('initialize') do |method|
1616
+ method.define_argument('colors')
1617
+
1618
+ method.returns { |object| object.instance }
1619
+ end
1620
+
1621
+ klass.define_instance_method('sequence')
1622
+ end
1623
+
1624
+ defs.define_constant('Test::Unit::Notification') do |klass|
1625
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1626
+ klass.inherits(defs.constant_proxy('Test::Unit::Util::BacktraceFilter', RubyLint.registry))
1627
+
1628
+ klass.define_instance_method('critical?')
1629
+
1630
+ klass.define_instance_method('initialize') do |method|
1631
+ method.define_argument('test_name')
1632
+ method.define_argument('location')
1633
+ method.define_argument('message')
1634
+ method.define_optional_argument('options')
1635
+
1636
+ method.returns { |object| object.instance }
1637
+ end
1638
+
1639
+ klass.define_instance_method('label')
1640
+
1641
+ klass.define_instance_method('location')
1642
+
1643
+ klass.define_instance_method('long_display')
1644
+
1645
+ klass.define_instance_method('message')
1646
+
1647
+ klass.define_instance_method('method_name')
1648
+
1649
+ klass.define_instance_method('short_display')
1650
+
1651
+ klass.define_instance_method('single_character_display')
1652
+
1653
+ klass.define_instance_method('test_name')
1654
+
1655
+ klass.define_instance_method('to_s')
1656
+ end
1657
+
1658
+ defs.define_constant('Test::Unit::Notification::LABEL') do |klass|
1659
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1660
+
1661
+ end
1662
+
1663
+ defs.define_constant('Test::Unit::Notification::SINGLE_CHARACTER') do |klass|
1664
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1665
+
1666
+ end
1667
+
1668
+ defs.define_constant('Test::Unit::Notification::TESTUNIT_FILE_SEPARATORS') do |klass|
1669
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1670
+
1671
+ end
1672
+
1673
+ defs.define_constant('Test::Unit::Notification::TESTUNIT_PREFIX') do |klass|
1674
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1675
+
1676
+ end
1677
+
1678
+ defs.define_constant('Test::Unit::Notification::TESTUNIT_RB_FILE') do |klass|
1679
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1680
+
1681
+ end
1682
+
1683
+ defs.define_constant('Test::Unit::NotificationHandler') do |klass|
1684
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1685
+
1686
+ klass.define_method('included') do |method|
1687
+ method.define_argument('base')
1688
+ end
1689
+ end
1690
+
1691
+ defs.define_constant('Test::Unit::NotifiedError') do |klass|
1692
+ klass.inherits(defs.constant_proxy('StandardError', RubyLint.registry))
1693
+
1694
+ end
1695
+
1696
+ defs.define_constant('Test::Unit::Omission') do |klass|
1697
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1698
+ klass.inherits(defs.constant_proxy('Test::Unit::Util::BacktraceFilter', RubyLint.registry))
1699
+
1700
+ klass.define_instance_method('critical?')
1701
+
1702
+ klass.define_instance_method('initialize') do |method|
1703
+ method.define_argument('test_name')
1704
+ method.define_argument('location')
1705
+ method.define_argument('message')
1706
+ method.define_optional_argument('options')
1707
+
1708
+ method.returns { |object| object.instance }
1709
+ end
1710
+
1711
+ klass.define_instance_method('label')
1712
+
1713
+ klass.define_instance_method('location')
1714
+
1715
+ klass.define_instance_method('long_display')
1716
+
1717
+ klass.define_instance_method('message')
1718
+
1719
+ klass.define_instance_method('method_name')
1720
+
1721
+ klass.define_instance_method('short_display')
1722
+
1723
+ klass.define_instance_method('single_character_display')
1724
+
1725
+ klass.define_instance_method('test_name')
1726
+
1727
+ klass.define_instance_method('to_s')
1728
+ end
1729
+
1730
+ defs.define_constant('Test::Unit::Omission::LABEL') do |klass|
1731
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1732
+
1733
+ end
1734
+
1735
+ defs.define_constant('Test::Unit::Omission::SINGLE_CHARACTER') do |klass|
1736
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1737
+
1738
+ end
1739
+
1740
+ defs.define_constant('Test::Unit::Omission::TESTUNIT_FILE_SEPARATORS') do |klass|
1741
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1742
+
1743
+ end
1744
+
1745
+ defs.define_constant('Test::Unit::Omission::TESTUNIT_PREFIX') do |klass|
1746
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1747
+
1748
+ end
1749
+
1750
+ defs.define_constant('Test::Unit::Omission::TESTUNIT_RB_FILE') do |klass|
1751
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1752
+
1753
+ end
1754
+
1755
+ defs.define_constant('Test::Unit::OmissionHandler') do |klass|
1756
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1757
+
1758
+ klass.define_method('included') do |method|
1759
+ method.define_argument('base')
1760
+ end
1761
+ end
1762
+
1763
+ defs.define_constant('Test::Unit::OmittedError') do |klass|
1764
+ klass.inherits(defs.constant_proxy('StandardError', RubyLint.registry))
1765
+
1766
+ end
1767
+
1768
+ defs.define_constant('Test::Unit::PendedError') do |klass|
1769
+ klass.inherits(defs.constant_proxy('StandardError', RubyLint.registry))
1770
+
1771
+ end
1772
+
1773
+ defs.define_constant('Test::Unit::Pending') do |klass|
1774
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1775
+ klass.inherits(defs.constant_proxy('Test::Unit::Util::BacktraceFilter', RubyLint.registry))
1776
+
1777
+ klass.define_instance_method('critical?')
1778
+
1779
+ klass.define_instance_method('initialize') do |method|
1780
+ method.define_argument('test_name')
1781
+ method.define_argument('location')
1782
+ method.define_argument('message')
1783
+ method.define_optional_argument('options')
1784
+
1785
+ method.returns { |object| object.instance }
1786
+ end
1787
+
1788
+ klass.define_instance_method('label')
1789
+
1790
+ klass.define_instance_method('location')
1791
+
1792
+ klass.define_instance_method('long_display')
1793
+
1794
+ klass.define_instance_method('message')
1795
+
1796
+ klass.define_instance_method('method_name')
1797
+
1798
+ klass.define_instance_method('short_display')
1799
+
1800
+ klass.define_instance_method('single_character_display')
1801
+
1802
+ klass.define_instance_method('test_name')
1803
+
1804
+ klass.define_instance_method('to_s')
1805
+ end
1806
+
1807
+ defs.define_constant('Test::Unit::Pending::LABEL') do |klass|
1808
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1809
+
1810
+ end
1811
+
1812
+ defs.define_constant('Test::Unit::Pending::SINGLE_CHARACTER') do |klass|
1813
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1814
+
1815
+ end
1816
+
1817
+ defs.define_constant('Test::Unit::Pending::TESTUNIT_FILE_SEPARATORS') do |klass|
1818
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1819
+
1820
+ end
1821
+
1822
+ defs.define_constant('Test::Unit::Pending::TESTUNIT_PREFIX') do |klass|
1823
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1824
+
1825
+ end
1826
+
1827
+ defs.define_constant('Test::Unit::Pending::TESTUNIT_RB_FILE') do |klass|
1828
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1829
+
1830
+ end
1831
+
1832
+ defs.define_constant('Test::Unit::PendingHandler') do |klass|
1833
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1834
+
1835
+ klass.define_method('included') do |method|
1836
+ method.define_argument('base')
1837
+ end
1838
+ end
1839
+
1840
+ defs.define_constant('Test::Unit::Priority') do |klass|
1841
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1842
+
1843
+ klass.define_method('available_values')
1844
+
1845
+ klass.define_method('default')
1846
+
1847
+ klass.define_method('default=') do |method|
1848
+ method.define_argument('default')
1849
+ end
1850
+
1851
+ klass.define_method('disable')
1852
+
1853
+ klass.define_method('enable')
1854
+
1855
+ klass.define_method('enabled?')
1856
+
1857
+ klass.define_method('included') do |method|
1858
+ method.define_argument('base')
1859
+ end
1860
+
1861
+ klass.define_instance_method('priority_setup')
1862
+
1863
+ klass.define_instance_method('priority_teardown')
1864
+ end
1865
+
1866
+ defs.define_constant('Test::Unit::Priority::Checker') do |klass|
1867
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1868
+
1869
+ klass.define_method('available_priorities')
1870
+
1871
+ klass.define_method('have_priority?') do |method|
1872
+ method.define_argument('name')
1873
+ end
1874
+
1875
+ klass.define_method('need_to_run?') do |method|
1876
+ method.define_argument('test')
1877
+ end
1878
+
1879
+ klass.define_method('run_priority_high?') do |method|
1880
+ method.define_argument('test')
1881
+ end
1882
+
1883
+ klass.define_method('run_priority_important?') do |method|
1884
+ method.define_argument('test')
1885
+ end
1886
+
1887
+ klass.define_method('run_priority_low?') do |method|
1888
+ method.define_argument('test')
1889
+ end
1890
+
1891
+ klass.define_method('run_priority_must?') do |method|
1892
+ method.define_argument('test')
1893
+ end
1894
+
1895
+ klass.define_method('run_priority_never?') do |method|
1896
+ method.define_argument('test')
1897
+ end
1898
+
1899
+ klass.define_method('run_priority_normal?') do |method|
1900
+ method.define_argument('test')
1901
+ end
1902
+
1903
+ klass.define_instance_method('initialize') do |method|
1904
+ method.define_argument('test')
1905
+
1906
+ method.returns { |object| object.instance }
1907
+ end
1908
+
1909
+ klass.define_instance_method('need_to_run?')
1910
+
1911
+ klass.define_instance_method('setup')
1912
+
1913
+ klass.define_instance_method('teardown')
1914
+
1915
+ klass.define_instance_method('test')
1916
+ end
1917
+
1918
+ defs.define_constant('Test::Unit::Priority::ClassMethods') do |klass|
1919
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1920
+
1921
+ klass.define_instance_method('priority') do |method|
1922
+ method.define_argument('name')
1923
+ method.define_rest_argument('tests')
1924
+ end
1925
+ end
1926
+
1927
+ defs.define_constant('Test::Unit::TestCase') do |klass|
1928
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1929
+ klass.inherits(defs.constant_proxy('Test::Unit::Util::Output', RubyLint.registry))
1930
+ klass.inherits(defs.constant_proxy('Test::Unit::Util::BacktraceFilter', RubyLint.registry))
1931
+ klass.inherits(defs.constant_proxy('Test::Unit::Assertions', RubyLint.registry))
1932
+ klass.inherits(defs.constant_proxy('Test::Unit::Data', RubyLint.registry))
1933
+ klass.inherits(defs.constant_proxy('Test::Unit::Priority', RubyLint.registry))
1934
+ klass.inherits(defs.constant_proxy('Test::Unit::NotificationHandler', RubyLint.registry))
1935
+ klass.inherits(defs.constant_proxy('Test::Unit::TestCaseNotificationSupport', RubyLint.registry))
1936
+ klass.inherits(defs.constant_proxy('Test::Unit::OmissionHandler', RubyLint.registry))
1937
+ klass.inherits(defs.constant_proxy('Test::Unit::TestCaseOmissionSupport', RubyLint.registry))
1938
+ klass.inherits(defs.constant_proxy('Test::Unit::PendingHandler', RubyLint.registry))
1939
+ klass.inherits(defs.constant_proxy('Test::Unit::TestCasePendingSupport', RubyLint.registry))
1940
+ klass.inherits(defs.constant_proxy('Test::Unit::FailureHandler', RubyLint.registry))
1941
+ klass.inherits(defs.constant_proxy('Test::Unit::ErrorHandler', RubyLint.registry))
1942
+ klass.inherits(defs.constant_proxy('Test::Unit::ExceptionHandler', RubyLint.registry))
1943
+ klass.inherits(defs.constant_proxy('Test::Unit::Fixture', RubyLint.registry))
1944
+ klass.inherits(defs.constant_proxy('Test::Unit::Attribute', RubyLint.registry))
1945
+
1946
+ klass.define_method('added_method_names')
1947
+
1948
+ klass.define_method('description') do |method|
1949
+ method.define_argument('value')
1950
+ method.define_optional_argument('target')
1951
+ end
1952
+
1953
+ klass.define_method('inherited') do |method|
1954
+ method.define_argument('sub_class')
1955
+ end
1956
+
1957
+ klass.define_method('method_added') do |method|
1958
+ method.define_argument('name')
1959
+ end
1960
+
1961
+ klass.define_method('shutdown')
1962
+
1963
+ klass.define_method('startup')
1964
+
1965
+ klass.define_method('sub_test_case') do |method|
1966
+ method.define_argument('name')
1967
+ method.define_block_argument('block')
1968
+ end
1969
+
1970
+ klass.define_method('suite')
1971
+
1972
+ klass.define_method('test') do |method|
1973
+ method.define_rest_argument('test_description_or_targets')
1974
+ method.define_block_argument('block')
1975
+ end
1976
+
1977
+ klass.define_method('test_defined?') do |method|
1978
+ method.define_argument('query')
1979
+ end
1980
+
1981
+ klass.define_method('test_order')
1982
+
1983
+ klass.define_method('test_order=') do |method|
1984
+ method.define_argument('order')
1985
+ end
1986
+
1987
+ klass.define_instance_method('==') do |method|
1988
+ method.define_argument('other')
1989
+ end
1990
+
1991
+ klass.define_instance_method('add_pass')
1992
+
1993
+ klass.define_instance_method('assign_test_data') do |method|
1994
+ method.define_argument('label')
1995
+ method.define_argument('data')
1996
+ end
1997
+
1998
+ klass.define_instance_method('cleanup')
1999
+
2000
+ klass.define_instance_method('data_label')
2001
+
2002
+ klass.define_instance_method('default_test')
2003
+
2004
+ klass.define_instance_method('description')
2005
+
2006
+ klass.define_instance_method('elapsed_time')
2007
+
2008
+ klass.define_instance_method('initialize') do |method|
2009
+ method.define_argument('test_method_name')
2010
+
2011
+ method.returns { |object| object.instance }
2012
+ end
2013
+
2014
+ klass.define_instance_method('interrupted?')
2015
+
2016
+ klass.define_instance_method('method_name')
2017
+
2018
+ klass.define_instance_method('name')
2019
+
2020
+ klass.define_instance_method('passed?')
2021
+
2022
+ klass.define_instance_method('problem_occurred')
2023
+
2024
+ klass.define_instance_method('run') do |method|
2025
+ method.define_argument('result')
2026
+ end
2027
+
2028
+ klass.define_instance_method('setup')
2029
+
2030
+ klass.define_instance_method('size')
2031
+
2032
+ klass.define_instance_method('start_time')
2033
+
2034
+ klass.define_instance_method('teardown')
2035
+
2036
+ klass.define_instance_method('to_s')
2037
+
2038
+ klass.define_instance_method('valid?')
2039
+ end
2040
+
2041
+ defs.define_constant('Test::Unit::TestCase::AVAILABLE_ORDERS') do |klass|
2042
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2043
+
2044
+ end
2045
+
2046
+ defs.define_constant('Test::Unit::TestCase::AssertExceptionHelper') do |klass|
2047
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2048
+
2049
+ klass.define_instance_method('expected?') do |method|
2050
+ method.define_argument('actual_exception')
2051
+ method.define_optional_argument('equality')
2052
+ end
2053
+
2054
+ klass.define_instance_method('expected_exceptions')
2055
+
2056
+ klass.define_instance_method('initialize') do |method|
2057
+ method.define_argument('test_case')
2058
+ method.define_argument('expected_exceptions')
2059
+
2060
+ method.returns { |object| object.instance }
2061
+ end
2062
+ end
2063
+
2064
+ defs.define_constant('Test::Unit::TestCase::AssertionMessage') do |klass|
2065
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2066
+ klass.inherits(defs.constant_proxy('Test::Unit::Util::BacktraceFilter', RubyLint.registry))
2067
+
2068
+ klass.define_method('convert') do |method|
2069
+ method.define_argument('object')
2070
+ end
2071
+
2072
+ klass.define_method('delayed_diff') do |method|
2073
+ method.define_argument('from')
2074
+ method.define_argument('to')
2075
+ end
2076
+
2077
+ klass.define_method('delayed_literal') do |method|
2078
+ method.define_block_argument('block')
2079
+ end
2080
+
2081
+ klass.define_method('diff_target_string?') do |method|
2082
+ method.define_argument('string')
2083
+ end
2084
+
2085
+ klass.define_method('ensure_diffable_string') do |method|
2086
+ method.define_argument('string')
2087
+ end
2088
+
2089
+ klass.define_method('literal') do |method|
2090
+ method.define_argument('value')
2091
+ end
2092
+
2093
+ klass.define_method('max_diff_target_string_size')
2094
+
2095
+ klass.define_method('max_diff_target_string_size=') do |method|
2096
+ method.define_argument('size')
2097
+ end
2098
+
2099
+ klass.define_method('maybe_container') do |method|
2100
+ method.define_argument('value')
2101
+ method.define_block_argument('formatter')
2102
+ end
2103
+
2104
+ klass.define_method('prepare_for_diff') do |method|
2105
+ method.define_argument('from')
2106
+ method.define_argument('to')
2107
+ end
2108
+
2109
+ klass.define_method('use_pp')
2110
+
2111
+ klass.define_method('use_pp=') do |method|
2112
+ method.define_argument('arg1')
2113
+ end
2114
+
2115
+ klass.define_instance_method('add_period') do |method|
2116
+ method.define_argument('string')
2117
+ end
2118
+
2119
+ klass.define_instance_method('convert') do |method|
2120
+ method.define_argument('object')
2121
+ end
2122
+
2123
+ klass.define_instance_method('initialize') do |method|
2124
+ method.define_argument('head')
2125
+ method.define_argument('template_string')
2126
+ method.define_argument('parameters')
2127
+
2128
+ method.returns { |object| object.instance }
2129
+ end
2130
+
2131
+ klass.define_instance_method('template')
2132
+
2133
+ klass.define_instance_method('to_s')
2134
+ end
2135
+
2136
+ defs.define_constant('Test::Unit::TestCase::BaseClassMethods') do |klass|
2137
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2138
+
2139
+ klass.define_instance_method('attributes_table')
2140
+ end
2141
+
2142
+ defs.define_constant('Test::Unit::TestCase::Checker') do |klass|
2143
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2144
+
2145
+ klass.define_method('available_priorities')
2146
+
2147
+ klass.define_method('have_priority?') do |method|
2148
+ method.define_argument('name')
2149
+ end
2150
+
2151
+ klass.define_method('need_to_run?') do |method|
2152
+ method.define_argument('test')
2153
+ end
2154
+
2155
+ klass.define_method('run_priority_high?') do |method|
2156
+ method.define_argument('test')
2157
+ end
2158
+
2159
+ klass.define_method('run_priority_important?') do |method|
2160
+ method.define_argument('test')
2161
+ end
2162
+
2163
+ klass.define_method('run_priority_low?') do |method|
2164
+ method.define_argument('test')
2165
+ end
2166
+
2167
+ klass.define_method('run_priority_must?') do |method|
2168
+ method.define_argument('test')
2169
+ end
2170
+
2171
+ klass.define_method('run_priority_never?') do |method|
2172
+ method.define_argument('test')
2173
+ end
2174
+
2175
+ klass.define_method('run_priority_normal?') do |method|
2176
+ method.define_argument('test')
2177
+ end
2178
+
2179
+ klass.define_instance_method('initialize') do |method|
2180
+ method.define_argument('test')
2181
+
2182
+ method.returns { |object| object.instance }
2183
+ end
2184
+
2185
+ klass.define_instance_method('need_to_run?')
2186
+
2187
+ klass.define_instance_method('setup')
2188
+
2189
+ klass.define_instance_method('teardown')
2190
+
2191
+ klass.define_instance_method('test')
2192
+ end
2193
+
2194
+ defs.define_constant('Test::Unit::TestCase::ClassMethods') do |klass|
2195
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2196
+
2197
+ klass.define_instance_method('data') do |method|
2198
+ method.define_rest_argument('arguments')
2199
+ method.define_block_argument('block')
2200
+ end
2201
+
2202
+ klass.define_instance_method('load_data') do |method|
2203
+ method.define_argument('file_name')
2204
+ end
2205
+ end
2206
+
2207
+ defs.define_constant('Test::Unit::TestCase::DESCENDANTS') do |klass|
2208
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2209
+
2210
+ end
2211
+
2212
+ defs.define_constant('Test::Unit::TestCase::FINISHED') do |klass|
2213
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2214
+
2215
+ end
2216
+
2217
+ defs.define_constant('Test::Unit::TestCase::FINISHED_OBJECT') do |klass|
2218
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2219
+
2220
+ end
2221
+
2222
+ defs.define_constant('Test::Unit::TestCase::Fixture') do |klass|
2223
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2224
+
2225
+ klass.define_instance_method('[]') do |method|
2226
+ method.define_argument('type')
2227
+ end
2228
+
2229
+ klass.define_instance_method('after_callbacks') do |method|
2230
+ method.define_argument('type')
2231
+ end
2232
+
2233
+ klass.define_instance_method('before_callbacks') do |method|
2234
+ method.define_argument('type')
2235
+ end
2236
+
2237
+ klass.define_instance_method('cleanup')
2238
+
2239
+ klass.define_instance_method('initialize') do |method|
2240
+ method.define_argument('test_case')
2241
+
2242
+ method.returns { |object| object.instance }
2243
+ end
2244
+
2245
+ klass.define_instance_method('setup')
2246
+
2247
+ klass.define_instance_method('teardown')
2248
+ end
2249
+
2250
+ defs.define_constant('Test::Unit::TestCase::HookPoint') do |klass|
2251
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2252
+
2253
+ klass.define_instance_method('after_append_callbacks')
2254
+
2255
+ klass.define_instance_method('after_prepend_callbacks')
2256
+
2257
+ klass.define_instance_method('before_append_callbacks')
2258
+
2259
+ klass.define_instance_method('before_prepend_callbacks')
2260
+
2261
+ klass.define_instance_method('initialize') do |method|
2262
+ method.define_argument('default_options')
2263
+
2264
+ method.returns { |object| object.instance }
2265
+ end
2266
+
2267
+ klass.define_instance_method('register') do |method|
2268
+ method.define_argument('method_name_or_callback')
2269
+ method.define_optional_argument('options')
2270
+ end
2271
+
2272
+ klass.define_instance_method('unregister') do |method|
2273
+ method.define_argument('method_name_or_callback')
2274
+ end
2275
+ end
2276
+
2277
+ defs.define_constant('Test::Unit::TestCase::InternalData') do |klass|
2278
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2279
+
2280
+ klass.define_instance_method('assign_test_data') do |method|
2281
+ method.define_argument('label')
2282
+ method.define_argument('data')
2283
+ end
2284
+
2285
+ klass.define_instance_method('elapsed_time')
2286
+
2287
+ klass.define_instance_method('have_test_data?')
2288
+
2289
+ klass.define_instance_method('initialize')
2290
+
2291
+ klass.define_instance_method('interrupted')
2292
+
2293
+ klass.define_instance_method('interrupted?')
2294
+
2295
+ klass.define_instance_method('passed?')
2296
+
2297
+ klass.define_instance_method('problem_occurred')
2298
+
2299
+ klass.define_instance_method('start_time')
2300
+
2301
+ klass.define_instance_method('test_data')
2302
+
2303
+ klass.define_instance_method('test_data_label')
2304
+
2305
+ klass.define_instance_method('test_finished')
2306
+
2307
+ klass.define_instance_method('test_started')
2308
+ end
2309
+
2310
+ defs.define_constant('Test::Unit::TestCase::NOT_PASS_THROUGH_EXCEPTIONS') do |klass|
2311
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2312
+
2313
+ end
2314
+
2315
+ defs.define_constant('Test::Unit::TestCase::NOT_PASS_THROUGH_EXCEPTION_NAMES') do |klass|
2316
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2317
+
2318
+ end
2319
+
2320
+ defs.define_constant('Test::Unit::TestCase::NOT_SPECIFIED') do |klass|
2321
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2322
+
2323
+ end
2324
+
2325
+ defs.define_constant('Test::Unit::TestCase::PASS_THROUGH_EXCEPTIONS') do |klass|
2326
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2327
+
2328
+ end
2329
+
2330
+ defs.define_constant('Test::Unit::TestCase::PASS_THROUGH_EXCEPTION_NAMES') do |klass|
2331
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2332
+
2333
+ end
2334
+
2335
+ defs.define_constant('Test::Unit::TestCase::STARTED') do |klass|
2336
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2337
+
2338
+ end
2339
+
2340
+ defs.define_constant('Test::Unit::TestCase::STARTED_OBJECT') do |klass|
2341
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2342
+
2343
+ end
2344
+
2345
+ defs.define_constant('Test::Unit::TestCase::StringifyKeyHash') do |klass|
2346
+ klass.inherits(defs.constant_proxy('Hash', RubyLint.registry))
2347
+
2348
+ klass.define_method('stringify') do |method|
2349
+ method.define_argument('object')
2350
+ end
2351
+
2352
+ klass.define_instance_method('[]') do |method|
2353
+ method.define_argument('key')
2354
+ end
2355
+
2356
+ klass.define_instance_method('[]=') do |method|
2357
+ method.define_argument('key')
2358
+ method.define_argument('value')
2359
+ end
2360
+
2361
+ klass.define_instance_method('key?') do |method|
2362
+ method.define_argument('key')
2363
+ end
2364
+ end
2365
+
2366
+ defs.define_constant('Test::Unit::TestCase::TESTUNIT_FILE_SEPARATORS') do |klass|
2367
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2368
+
2369
+ end
2370
+
2371
+ defs.define_constant('Test::Unit::TestCase::TESTUNIT_PREFIX') do |klass|
2372
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2373
+
2374
+ end
2375
+
2376
+ defs.define_constant('Test::Unit::TestCase::TESTUNIT_RB_FILE') do |klass|
2377
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2378
+
2379
+ end
2380
+
2381
+ defs.define_constant('Test::Unit::TestCase::ThrowTagExtractor') do |klass|
2382
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2383
+
2384
+ klass.define_instance_method('extract_tag')
2385
+
2386
+ klass.define_instance_method('initialize') do |method|
2387
+ method.define_argument('error')
2388
+
2389
+ method.returns { |object| object.instance }
2390
+ end
2391
+ end
2392
+
2393
+ defs.define_constant('Test::Unit::TestCaseNotificationSupport') do |klass|
2394
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2395
+
2396
+ klass.define_method('included') do |method|
2397
+ method.define_argument('base')
2398
+ end
2399
+
2400
+ klass.define_instance_method('notify') do |method|
2401
+ method.define_argument('message')
2402
+ method.define_optional_argument('options')
2403
+ method.define_block_argument('block')
2404
+ end
2405
+ end
2406
+
2407
+ defs.define_constant('Test::Unit::TestCaseOmissionSupport') do |klass|
2408
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2409
+
2410
+ klass.define_method('included') do |method|
2411
+ method.define_argument('base')
2412
+ end
2413
+
2414
+ klass.define_instance_method('omit') do |method|
2415
+ method.define_optional_argument('message')
2416
+ method.define_block_argument('block')
2417
+ end
2418
+
2419
+ klass.define_instance_method('omit_if') do |method|
2420
+ method.define_argument('condition')
2421
+ method.define_rest_argument('args')
2422
+ method.define_block_argument('block')
2423
+ end
2424
+
2425
+ klass.define_instance_method('omit_unless') do |method|
2426
+ method.define_argument('condition')
2427
+ method.define_rest_argument('args')
2428
+ method.define_block_argument('block')
2429
+ end
2430
+ end
2431
+
2432
+ defs.define_constant('Test::Unit::TestCasePendingSupport') do |klass|
2433
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2434
+
2435
+ klass.define_method('included') do |method|
2436
+ method.define_argument('base')
2437
+ end
2438
+
2439
+ klass.define_instance_method('pend') do |method|
2440
+ method.define_optional_argument('message')
2441
+ method.define_block_argument('block')
2442
+ end
2443
+ end
2444
+
2445
+ defs.define_constant('Test::Unit::TestResultErrorSupport') do |klass|
2446
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2447
+
2448
+ klass.define_instance_method('add_error') do |method|
2449
+ method.define_argument('error')
2450
+ end
2451
+
2452
+ klass.define_instance_method('error_count')
2453
+
2454
+ klass.define_instance_method('error_occurred?')
2455
+
2456
+ klass.define_instance_method('errors')
2457
+ end
2458
+
2459
+ defs.define_constant('Test::Unit::TestResultFailureSupport') do |klass|
2460
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2461
+
2462
+ klass.define_instance_method('add_failure') do |method|
2463
+ method.define_argument('failure')
2464
+ end
2465
+
2466
+ klass.define_instance_method('failure_count')
2467
+
2468
+ klass.define_instance_method('failure_occurred?')
2469
+
2470
+ klass.define_instance_method('failures')
2471
+ end
2472
+
2473
+ defs.define_constant('Test::Unit::TestResultNotificationSupport') do |klass|
2474
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2475
+
2476
+ klass.define_instance_method('add_notification') do |method|
2477
+ method.define_argument('notification')
2478
+ end
2479
+
2480
+ klass.define_instance_method('notification_count')
2481
+
2482
+ klass.define_instance_method('notifications')
2483
+ end
2484
+
2485
+ defs.define_constant('Test::Unit::TestResultOmissionSupport') do |klass|
2486
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2487
+
2488
+ klass.define_instance_method('add_omission') do |method|
2489
+ method.define_argument('omission')
2490
+ end
2491
+
2492
+ klass.define_instance_method('omission_count')
2493
+
2494
+ klass.define_instance_method('omissions')
2495
+ end
2496
+
2497
+ defs.define_constant('Test::Unit::TestResultPendingSupport') do |klass|
2498
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2499
+
2500
+ klass.define_instance_method('add_pending') do |method|
2501
+ method.define_argument('pending')
2502
+ end
2503
+
2504
+ klass.define_instance_method('pending_count')
2505
+
2506
+ klass.define_instance_method('pendings')
2507
+ end
2508
+
2509
+ defs.define_constant('Test::Unit::TestSuite') do |klass|
2510
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2511
+
2512
+ klass.define_instance_method('<<') do |method|
2513
+ method.define_argument('test')
2514
+ end
2515
+
2516
+ klass.define_instance_method('==') do |method|
2517
+ method.define_argument('other')
2518
+ end
2519
+
2520
+ klass.define_instance_method('delete') do |method|
2521
+ method.define_argument('test')
2522
+ end
2523
+
2524
+ klass.define_instance_method('delete_tests') do |method|
2525
+ method.define_argument('tests')
2526
+ end
2527
+
2528
+ klass.define_instance_method('elapsed_time')
2529
+
2530
+ klass.define_instance_method('empty?')
2531
+
2532
+ klass.define_instance_method('initialize') do |method|
2533
+ method.define_optional_argument('name')
2534
+ method.define_optional_argument('test_case')
2535
+
2536
+ method.returns { |object| object.instance }
2537
+ end
2538
+
2539
+ klass.define_instance_method('name')
2540
+
2541
+ klass.define_instance_method('passed?')
2542
+
2543
+ klass.define_instance_method('priority')
2544
+
2545
+ klass.define_instance_method('priority=') do |method|
2546
+ method.define_argument('arg1')
2547
+ end
2548
+
2549
+ klass.define_instance_method('run') do |method|
2550
+ method.define_argument('result')
2551
+ method.define_block_argument('progress_block')
2552
+ end
2553
+
2554
+ klass.define_instance_method('size')
2555
+
2556
+ klass.define_instance_method('start_time')
2557
+
2558
+ klass.define_instance_method('test_case')
2559
+
2560
+ klass.define_instance_method('tests')
2561
+
2562
+ klass.define_instance_method('to_s')
2563
+ end
2564
+
2565
+ defs.define_constant('Test::Unit::TestSuite::FINISHED') do |klass|
2566
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2567
+
2568
+ end
2569
+
2570
+ defs.define_constant('Test::Unit::TestSuite::FINISHED_OBJECT') do |klass|
2571
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2572
+
2573
+ end
2574
+
2575
+ defs.define_constant('Test::Unit::TestSuite::STARTED') do |klass|
2576
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2577
+
2578
+ end
2579
+
2580
+ defs.define_constant('Test::Unit::TestSuite::STARTED_OBJECT') do |klass|
2581
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2582
+
2583
+ end
2584
+
2585
+ defs.define_constant('Test::Unit::TestSuiteCreator') do |klass|
2586
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2587
+
2588
+ klass.define_instance_method('create')
2589
+
2590
+ klass.define_instance_method('initialize') do |method|
2591
+ method.define_argument('test_case')
2592
+
2593
+ method.returns { |object| object.instance }
2594
+ end
2595
+ end
2596
+
2597
+ defs.define_constant('Test::Unit::Util') do |klass|
2598
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2599
+
2600
+ end
2601
+
2602
+ defs.define_constant('Test::Unit::Util::BacktraceFilter') do |klass|
2603
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2604
+
2605
+ klass.define_method('filter_backtrace') do |method|
2606
+ method.define_argument('backtrace')
2607
+ method.define_optional_argument('prefix')
2608
+ end
2609
+ end
2610
+
2611
+ defs.define_constant('Test::Unit::Util::BacktraceFilter::TESTUNIT_FILE_SEPARATORS') do |klass|
2612
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2613
+
2614
+ end
2615
+
2616
+ defs.define_constant('Test::Unit::Util::BacktraceFilter::TESTUNIT_PREFIX') do |klass|
2617
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2618
+
2619
+ end
2620
+
2621
+ defs.define_constant('Test::Unit::Util::BacktraceFilter::TESTUNIT_RB_FILE') do |klass|
2622
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2623
+
2624
+ end
2625
+
2626
+ defs.define_constant('Test::Unit::Util::MethodOwnerFinder') do |klass|
2627
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2628
+
2629
+ klass.define_method('find') do |method|
2630
+ method.define_argument('object')
2631
+ method.define_argument('method_name')
2632
+ end
2633
+ end
2634
+
2635
+ defs.define_constant('Test::Unit::Util::Output') do |klass|
2636
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2637
+
2638
+ klass.define_instance_method('capture_output')
2639
+ end
2640
+ end