clitest 0.1.0 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1223 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: Clitest::Cmdline
8
+
9
+ &mdash; Documentation by YARD 0.9.26
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" />
16
+
17
+ <script type="text/javascript">
18
+ pathId = "Clitest::Cmdline";
19
+ relpath = '../';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="../_index.html">Index (C)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../Clitest.html" title="Clitest (module)">Clitest</a></span></span>
41
+ &raquo;
42
+ <span class="title">Cmdline</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="../class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Class: Clitest::Cmdline
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName">Object</span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next">Clitest::Cmdline</li>
78
+
79
+ </ul>
80
+ <a href="#" class="inheritanceTree">show all</a>
81
+
82
+ </dd>
83
+ </dl>
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+ <dl>
96
+ <dt>Defined in:</dt>
97
+ <dd>lib/clitest/cmdline.rb</dd>
98
+ </dl>
99
+
100
+ </div>
101
+
102
+ <h2>Overview</h2><div class="docstring">
103
+ <div class="discussion">
104
+
105
+ <p>コマンドラインテスト用のコマンドライン作成クラス</p>
106
+
107
+
108
+ </div>
109
+ </div>
110
+ <div class="tags">
111
+
112
+ <p class="tag_title">Author:</p>
113
+ <ul class="author">
114
+
115
+ <li>
116
+
117
+
118
+
119
+
120
+
121
+ <div class='inline'>
122
+ <p>Yasuo Kominami</p>
123
+ </div>
124
+
125
+ </li>
126
+
127
+ </ul>
128
+ <p class="tag_title">Since:</p>
129
+ <ul class="since">
130
+
131
+ <li>
132
+
133
+
134
+
135
+
136
+
137
+ <div class='inline'>
138
+ <p>0.1.0</p>
139
+ </div>
140
+
141
+ </li>
142
+
143
+ </ul>
144
+
145
+ </div>
146
+
147
+ <h2>
148
+ Constant Summary
149
+ <small><a href="#" class="constants_summary_toggle">collapse</a></small>
150
+ </h2>
151
+
152
+ <dl class="constants">
153
+
154
+ <dt id="CMD-constant" class="">CMD =
155
+ <div class="docstring">
156
+ <div class="discussion">
157
+
158
+ <p>実行ファイルを呼び出すシェルスクリプトのファイル名   シェルスクリプトの引数</p>
159
+
160
+ <pre class="code ruby"><code class="ruby">test_root_dir: 実行ファイルを呼び出す時のディレクトリのルートディレクトリ(このディレクトリのサブディレクトリで呼び出す)
161
+ result_file: 実行ファイルの実行結果を格納するファイルの名前
162
+ target_cmd: 実行ファイルの名前(ここで指定した名前で実行ファイルを呼び出せる必要がある-絶対パスまたは環境変数PATHでパスが指定されていること)
163
+ target_dir: 実行ファイルを呼び出すときのディレクトリ(test_root_dirからの相対パス)
164
+ </code></pre>
165
+
166
+
167
+ </div>
168
+ </div>
169
+ <div class="tags">
170
+
171
+ <p class="tag_title">Since:</p>
172
+ <ul class="since">
173
+
174
+ <li>
175
+
176
+
177
+
178
+
179
+
180
+ <div class='inline'>
181
+ <p>0.1.0</p>
182
+ </div>
183
+
184
+ </li>
185
+
186
+ </ul>
187
+
188
+ </div>
189
+ </dt>
190
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>cmd.sh</span><span class='tstring_end'>&quot;</span></span></pre></dd>
191
+
192
+ </dl>
193
+
194
+
195
+
196
+
197
+
198
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
199
+ <ul class="summary">
200
+
201
+ <li class="public ">
202
+ <span class="summary_signature">
203
+
204
+ <a href="#test_cmd_path_pn-instance_method" title="#test_cmd_path_pn (instance method)">#<strong>test_cmd_path_pn</strong> &#x21d2; Pathname </a>
205
+
206
+
207
+
208
+ </span>
209
+
210
+
211
+
212
+
213
+ <span class="note title readonly">readonly</span>
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+ <span class="summary_desc"><div class='inline'>
224
+ <p>実行ファイルを呼び出すシェルスクリプトへのパス.</p>
225
+ </div></span>
226
+
227
+ </li>
228
+
229
+
230
+ </ul>
231
+
232
+
233
+
234
+
235
+
236
+ <h2>
237
+ Instance Method Summary
238
+ <small><a href="#" class="summary_toggle">collapse</a></small>
239
+ </h2>
240
+
241
+ <ul class="summary">
242
+
243
+ <li class="public ">
244
+ <span class="summary_signature">
245
+
246
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(bin_dir, cmd_name, test_dir, *target_cmds) &#x21d2; Cmdline </a>
247
+
248
+
249
+
250
+ </span>
251
+
252
+
253
+ <span class="note title constructor">constructor</span>
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+ <span class="summary_desc"><div class='inline'>
263
+ <p>コマンドラインテスト用のコマンドライン作成クラスのコンストラクタ.</p>
264
+ </div></span>
265
+
266
+ </li>
267
+
268
+
269
+ <li class="public ">
270
+ <span class="summary_signature">
271
+
272
+ <a href="#make_cmdline-instance_method" title="#make_cmdline (instance method)">#<strong>make_cmdline</strong>(cmd_index, target_dir, result_file, optionx, *param_names) &#x21d2; String </a>
273
+
274
+
275
+
276
+ </span>
277
+
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+ <span class="summary_desc"><div class='inline'>
287
+ <p>実行ファイル番号による実行ファイル用コマンドライン作成.</p>
288
+ </div></span>
289
+
290
+ </li>
291
+
292
+
293
+ <li class="public ">
294
+ <span class="summary_signature">
295
+
296
+ <a href="#make_cmdline_1-instance_method" title="#make_cmdline_1 (instance method)">#<strong>make_cmdline_1</strong>(target_dir, result_file, optionx, *param_names) &#x21d2; String </a>
297
+
298
+
299
+
300
+ </span>
301
+
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+
310
+ <span class="summary_desc"><div class='inline'>
311
+ <p>1番目の実行ファイル用コマンドライン作成.</p>
312
+ </div></span>
313
+
314
+ </li>
315
+
316
+
317
+ <li class="public ">
318
+ <span class="summary_signature">
319
+
320
+ <a href="#make_cmdline_2-instance_method" title="#make_cmdline_2 (instance method)">#<strong>make_cmdline_2</strong>(target_dir, result_file, optionx, *param_names) &#x21d2; String </a>
321
+
322
+
323
+
324
+ </span>
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+ <span class="summary_desc"><div class='inline'>
335
+ <p>2番目の実行ファイル用コマンドライン作成.</p>
336
+ </div></span>
337
+
338
+ </li>
339
+
340
+
341
+ <li class="public ">
342
+ <span class="summary_signature">
343
+
344
+ <a href="#make_cmdline_base-instance_method" title="#make_cmdline_base (instance method)">#<strong>make_cmdline_base</strong>(target_cmd, target_dir, result_file, optionx, *param_names) &#x21d2; String </a>
345
+
346
+
347
+
348
+ </span>
349
+
350
+
351
+
352
+
353
+
354
+
355
+
356
+
357
+
358
+ <span class="summary_desc"><div class='inline'>
359
+ <p>実行ファイル用コマンドライン作成.</p>
360
+ </div></span>
361
+
362
+ </li>
363
+
364
+
365
+ </ul>
366
+
367
+
368
+ <div id="constructor_details" class="method_details_list">
369
+ <h2>Constructor Details</h2>
370
+
371
+ <div class="method_details first">
372
+ <h3 class="signature first" id="initialize-instance_method">
373
+
374
+ #<strong>initialize</strong>(bin_dir, cmd_name, test_dir, *target_cmds) &#x21d2; <tt><span class='object_link'><a href="" title="Clitest::Cmdline (class)">Cmdline</a></span></tt>
375
+
376
+
377
+
378
+
379
+
380
+ </h3><div class="docstring">
381
+ <div class="discussion">
382
+
383
+ <p>コマンドラインテスト用のコマンドライン作成クラスのコンストラクタ</p>
384
+
385
+
386
+ </div>
387
+ </div>
388
+ <div class="tags">
389
+ <p class="tag_title">Parameters:</p>
390
+ <ul class="param">
391
+
392
+ <li>
393
+
394
+ <span class='name'>bin_dir</span>
395
+
396
+
397
+ <span class='type'>(<tt>String</tt>)</span>
398
+
399
+
400
+
401
+ &mdash;
402
+ <div class='inline'>
403
+ <p>実行ファイルを呼び出すシェルスクリプトを置くbinディレクトリ</p>
404
+ </div>
405
+
406
+ </li>
407
+
408
+ <li>
409
+
410
+ <span class='name'>cmd_name</span>
411
+
412
+
413
+ <span class='type'>(<tt>String</tt>)</span>
414
+
415
+
416
+
417
+ &mdash;
418
+ <div class='inline'>
419
+ <p>実行ファイルを呼び出すシェルスクリプト名</p>
420
+ </div>
421
+
422
+ </li>
423
+
424
+ <li>
425
+
426
+ <span class='name'>test_dir</span>
427
+
428
+
429
+ <span class='type'>(<tt>String</tt>)</span>
430
+
431
+
432
+
433
+ &mdash;
434
+ <div class='inline'>
435
+ <p>テストを実行するディレクトリ(@test_dir_pnaからの相対パス)</p>
436
+ </div>
437
+
438
+ </li>
439
+
440
+ <li>
441
+
442
+ <span class='name'>target_cmds</span>
443
+
444
+
445
+ <span class='type'>(<tt>Array</tt>)</span>
446
+
447
+
448
+
449
+ &mdash;
450
+ <div class='inline'>
451
+ <p>実行ファイル名の配列(ここで指定した名前で実行ファイルを呼び出せる必要がある-絶対パスまたは環境変数PATHでパスが指定されていること)</p>
452
+ </div>
453
+
454
+ </li>
455
+
456
+ </ul>
457
+
458
+ <p class="tag_title">Since:</p>
459
+ <ul class="since">
460
+
461
+ <li>
462
+
463
+
464
+
465
+
466
+
467
+ <div class='inline'>
468
+ <p>0.1.0</p>
469
+ </div>
470
+
471
+ </li>
472
+
473
+ </ul>
474
+
475
+ </div><table class="source_code">
476
+ <tr>
477
+ <td>
478
+ <pre class="lines">
479
+
480
+
481
+ 27
482
+ 28
483
+ 29
484
+ 30
485
+ 31
486
+ 32
487
+ 33
488
+ 34
489
+ 35
490
+ 36
491
+ 37
492
+ 38</pre>
493
+ </td>
494
+ <td>
495
+ <pre class="code"><span class="info file"># File 'lib/clitest/cmdline.rb', line 27</span>
496
+
497
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_bin_dir'>bin_dir</span><span class='comma'>,</span> <span class='id identifier rubyid_cmd_name'>cmd_name</span><span class='comma'>,</span> <span class='id identifier rubyid_test_dir'>test_dir</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_target_cmds'>target_cmds</span><span class='rparen'>)</span>
498
+ <span class='id identifier rubyid_bin_dir'>bin_dir</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='kw'>if</span> <span class='id identifier rubyid_bin_dir'>bin_dir</span> <span class='op'>=~</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^\s*$</span><span class='regexp_end'>/</span></span>
499
+ <span class='kw'>if</span> <span class='id identifier rubyid_bin_dir'>bin_dir</span>
500
+ <span class='id identifier rubyid_bin_dir_pn'>bin_dir_pn</span> <span class='op'>=</span> <span class='const'>Pathname</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_bin_dir'>bin_dir</span><span class='rparen'>)</span>
501
+ <span class='id identifier rubyid_bin_dir_pn'>bin_dir_pn</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='id identifier rubyid_bin_dir_pn'>bin_dir_pn</span><span class='period'>.</span><span class='id identifier rubyid_exist?'>exist?</span>
502
+ <span class='kw'>end</span>
503
+ <span class='id identifier rubyid_bin_dir_pn'>bin_dir_pn</span> <span class='op'>||=</span> <span class='const'><span class='object_link'><a href="../Clitest.html#BIN_DIR_PN-constant" title="Clitest::BIN_DIR_PN (constant)">BIN_DIR_PN</a></span></span>
504
+ <span class='id identifier rubyid_cmd_name'>cmd_name</span> <span class='op'>||=</span> <span class='const'><span class='object_link'><a href="#CMD-constant" title="Clitest::Cmdline::CMD (constant)">CMD</a></span></span>
505
+ <span class='ivar'>@test_cmd_path_pn</span> <span class='op'>=</span> <span class='id identifier rubyid_bin_dir_pn'>bin_dir_pn</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='id identifier rubyid_cmd_name'>cmd_name</span><span class='rparen'>)</span>
506
+ <span class='ivar'>@test_dir_pn</span> <span class='op'>=</span> <span class='const'>Pathname</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_test_dir'>test_dir</span><span class='rparen'>)</span>
507
+ <span class='ivar'>@target_cmds</span> <span class='op'>=</span> <span class='id identifier rubyid_target_cmds'>target_cmds</span>
508
+ <span class='kw'>end</span></pre>
509
+ </td>
510
+ </tr>
511
+ </table>
512
+ </div>
513
+
514
+ </div>
515
+
516
+ <div id="instance_attr_details" class="attr_details">
517
+ <h2>Instance Attribute Details</h2>
518
+
519
+
520
+ <span id=""></span>
521
+ <div class="method_details first">
522
+ <h3 class="signature first" id="test_cmd_path_pn-instance_method">
523
+
524
+ #<strong>test_cmd_path_pn</strong> &#x21d2; <tt>Pathname</tt> <span class="extras">(readonly)</span>
525
+
526
+
527
+
528
+
529
+
530
+ </h3><div class="docstring">
531
+ <div class="discussion">
532
+
533
+ <p>実行ファイルを呼び出すシェルスクリプトへのパス</p>
534
+
535
+
536
+ </div>
537
+ </div>
538
+ <div class="tags">
539
+
540
+ <p class="tag_title">Returns:</p>
541
+ <ul class="return">
542
+
543
+ <li>
544
+
545
+
546
+ <span class='type'>(<tt>Pathname</tt>)</span>
547
+
548
+
549
+
550
+ &mdash;
551
+ <div class='inline'>
552
+ <p>the current value of test_cmd_path_pn</p>
553
+ </div>
554
+
555
+ </li>
556
+
557
+ </ul>
558
+ <p class="tag_title">Since:</p>
559
+ <ul class="since">
560
+
561
+ <li>
562
+
563
+
564
+
565
+
566
+
567
+ <div class='inline'>
568
+ <p>0.1.0</p>
569
+ </div>
570
+
571
+ </li>
572
+
573
+ </ul>
574
+
575
+ </div><table class="source_code">
576
+ <tr>
577
+ <td>
578
+ <pre class="lines">
579
+
580
+
581
+ 11
582
+ 12
583
+ 13</pre>
584
+ </td>
585
+ <td>
586
+ <pre class="code"><span class="info file"># File 'lib/clitest/cmdline.rb', line 11</span>
587
+
588
+ <span class='kw'>def</span> <span class='id identifier rubyid_test_cmd_path_pn'>test_cmd_path_pn</span>
589
+ <span class='ivar'>@test_cmd_path_pn</span>
590
+ <span class='kw'>end</span></pre>
591
+ </td>
592
+ </tr>
593
+ </table>
594
+ </div>
595
+
596
+ </div>
597
+
598
+
599
+ <div id="instance_method_details" class="method_details_list">
600
+ <h2>Instance Method Details</h2>
601
+
602
+
603
+ <div class="method_details first">
604
+ <h3 class="signature first" id="make_cmdline-instance_method">
605
+
606
+ #<strong>make_cmdline</strong>(cmd_index, target_dir, result_file, optionx, *param_names) &#x21d2; <tt>String</tt>
607
+
608
+
609
+
610
+
611
+
612
+ </h3><div class="docstring">
613
+ <div class="discussion">
614
+
615
+ <p>実行ファイル番号による実行ファイル用コマンドライン作成</p>
616
+
617
+
618
+ </div>
619
+ </div>
620
+ <div class="tags">
621
+ <p class="tag_title">Parameters:</p>
622
+ <ul class="param">
623
+
624
+ <li>
625
+
626
+ <span class='name'>cmd_index</span>
627
+
628
+
629
+ <span class='type'>(<tt>String</tt>)</span>
630
+
631
+
632
+
633
+ &mdash;
634
+ <div class='inline'>
635
+ <p>実行ファイル番号(配列@target_cmdsに対する添え字)</p>
636
+ </div>
637
+
638
+ </li>
639
+
640
+ <li>
641
+
642
+ <span class='name'>target_dir</span>
643
+
644
+
645
+ <span class='type'>(<tt>String</tt>)</span>
646
+
647
+
648
+
649
+ &mdash;
650
+ <div class='inline'>
651
+ <p>テスト実行ディレクトリ(@test_dir_pnaからの相対パス)</p>
652
+ </div>
653
+
654
+ </li>
655
+
656
+ <li>
657
+
658
+ <span class='name'>result_file</span>
659
+
660
+
661
+ <span class='type'>(<tt>String</tt>)</span>
662
+
663
+
664
+
665
+ &mdash;
666
+ <div class='inline'>
667
+ <p>実行ファイルの実行結果を格納するファイルの名前</p>
668
+ </div>
669
+
670
+ </li>
671
+
672
+ <li>
673
+
674
+ <span class='name'>optionx</span>
675
+
676
+
677
+ <span class='type'>(<tt>Array</tt>)</span>
678
+
679
+
680
+
681
+ &mdash;
682
+ <div class='inline'>
683
+ <p>(付加的な)コマンドラインオプション</p>
684
+ </div>
685
+
686
+ </li>
687
+
688
+ <li>
689
+
690
+ <span class='name'>param_names</span>
691
+
692
+
693
+ <span class='type'>(<tt>Array</tt>)</span>
694
+
695
+
696
+
697
+ &mdash;
698
+ <div class='inline'>
699
+ <p>コマンドラインオプション群</p>
700
+ </div>
701
+
702
+ </li>
703
+
704
+ </ul>
705
+
706
+ <p class="tag_title">Returns:</p>
707
+ <ul class="return">
708
+
709
+ <li>
710
+
711
+
712
+ <span class='type'>(<tt>String</tt>)</span>
713
+
714
+
715
+
716
+ &mdash;
717
+ <div class='inline'>
718
+ <p>コマンドライン文字列</p>
719
+ </div>
720
+
721
+ </li>
722
+
723
+ </ul>
724
+ <p class="tag_title">Since:</p>
725
+ <ul class="since">
726
+
727
+ <li>
728
+
729
+
730
+
731
+
732
+
733
+ <div class='inline'>
734
+ <p>0.1.0</p>
735
+ </div>
736
+
737
+ </li>
738
+
739
+ </ul>
740
+
741
+ </div><table class="source_code">
742
+ <tr>
743
+ <td>
744
+ <pre class="lines">
745
+
746
+
747
+ 60
748
+ 61
749
+ 62</pre>
750
+ </td>
751
+ <td>
752
+ <pre class="code"><span class="info file"># File 'lib/clitest/cmdline.rb', line 60</span>
753
+
754
+ <span class='kw'>def</span> <span class='id identifier rubyid_make_cmdline'>make_cmdline</span><span class='lparen'>(</span><span class='id identifier rubyid_cmd_index'>cmd_index</span><span class='comma'>,</span> <span class='id identifier rubyid_target_dir'>target_dir</span><span class='comma'>,</span> <span class='id identifier rubyid_result_file'>result_file</span><span class='comma'>,</span> <span class='id identifier rubyid_optionx'>optionx</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_param_names'>param_names</span><span class='rparen'>)</span>
755
+ <span class='id identifier rubyid_make_cmdline_base'>make_cmdline_base</span><span class='lparen'>(</span><span class='ivar'>@target_cmds</span><span class='lbracket'>[</span><span class='id identifier rubyid_cmd_index'>cmd_index</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_target_dir'>target_dir</span><span class='comma'>,</span> <span class='id identifier rubyid_result_file'>result_file</span><span class='comma'>,</span> <span class='id identifier rubyid_optionx'>optionx</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_param_names'>param_names</span><span class='rparen'>)</span>
756
+ <span class='kw'>end</span></pre>
757
+ </td>
758
+ </tr>
759
+ </table>
760
+ </div>
761
+
762
+ <div class="method_details ">
763
+ <h3 class="signature " id="make_cmdline_1-instance_method">
764
+
765
+ #<strong>make_cmdline_1</strong>(target_dir, result_file, optionx, *param_names) &#x21d2; <tt>String</tt>
766
+
767
+
768
+
769
+
770
+
771
+ </h3><div class="docstring">
772
+ <div class="discussion">
773
+
774
+ <p>1番目の実行ファイル用コマンドライン作成</p>
775
+
776
+
777
+ </div>
778
+ </div>
779
+ <div class="tags">
780
+ <p class="tag_title">Parameters:</p>
781
+ <ul class="param">
782
+
783
+ <li>
784
+
785
+ <span class='name'>target_dir</span>
786
+
787
+
788
+ <span class='type'>(<tt>String</tt>)</span>
789
+
790
+
791
+
792
+ &mdash;
793
+ <div class='inline'>
794
+ <p>テスト実行ディレクトリ(@test_dir_pnaからの相対パス)</p>
795
+ </div>
796
+
797
+ </li>
798
+
799
+ <li>
800
+
801
+ <span class='name'>result_file</span>
802
+
803
+
804
+ <span class='type'>(<tt>String</tt>)</span>
805
+
806
+
807
+
808
+ &mdash;
809
+ <div class='inline'>
810
+ <p>実行ファイルの実行結果を格納するファイルの名前 </p>
811
+ </div>
812
+
813
+ </li>
814
+
815
+ <li>
816
+
817
+ <span class='name'>optionx</span>
818
+
819
+
820
+ <span class='type'>(<tt>Array</tt>)</span>
821
+
822
+
823
+
824
+ &mdash;
825
+ <div class='inline'>
826
+ <p>(付加的な)コマンドラインオプション</p>
827
+ </div>
828
+
829
+ </li>
830
+
831
+ <li>
832
+
833
+ <span class='name'>param_names</span>
834
+
835
+
836
+ <span class='type'>(<tt>Array</tt>)</span>
837
+
838
+
839
+
840
+ &mdash;
841
+ <div class='inline'>
842
+ <p>コマンドラインオプション群</p>
843
+ </div>
844
+
845
+ </li>
846
+
847
+ </ul>
848
+
849
+ <p class="tag_title">Returns:</p>
850
+ <ul class="return">
851
+
852
+ <li>
853
+
854
+
855
+ <span class='type'>(<tt>String</tt>)</span>
856
+
857
+
858
+
859
+ &mdash;
860
+ <div class='inline'>
861
+ <p>コマンドライン文字列</p>
862
+ </div>
863
+
864
+ </li>
865
+
866
+ </ul>
867
+ <p class="tag_title">Since:</p>
868
+ <ul class="since">
869
+
870
+ <li>
871
+
872
+
873
+
874
+
875
+
876
+ <div class='inline'>
877
+ <p>0.1.0</p>
878
+ </div>
879
+
880
+ </li>
881
+
882
+ </ul>
883
+
884
+ </div><table class="source_code">
885
+ <tr>
886
+ <td>
887
+ <pre class="lines">
888
+
889
+
890
+ 70
891
+ 71
892
+ 72</pre>
893
+ </td>
894
+ <td>
895
+ <pre class="code"><span class="info file"># File 'lib/clitest/cmdline.rb', line 70</span>
896
+
897
+ <span class='kw'>def</span> <span class='id identifier rubyid_make_cmdline_1'>make_cmdline_1</span><span class='lparen'>(</span><span class='id identifier rubyid_target_dir'>target_dir</span><span class='comma'>,</span> <span class='id identifier rubyid_result_file'>result_file</span><span class='comma'>,</span> <span class='id identifier rubyid_optionx'>optionx</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_param_names'>param_names</span><span class='rparen'>)</span>
898
+ <span class='id identifier rubyid_make_cmdline'>make_cmdline</span><span class='lparen'>(</span><span class='int'>0</span><span class='comma'>,</span> <span class='id identifier rubyid_target_dir'>target_dir</span><span class='comma'>,</span> <span class='id identifier rubyid_result_file'>result_file</span><span class='comma'>,</span> <span class='id identifier rubyid_optionx'>optionx</span><span class='comma'>,</span> <span class='id identifier rubyid_param_names'>param_names</span><span class='rparen'>)</span>
899
+ <span class='kw'>end</span></pre>
900
+ </td>
901
+ </tr>
902
+ </table>
903
+ </div>
904
+
905
+ <div class="method_details ">
906
+ <h3 class="signature " id="make_cmdline_2-instance_method">
907
+
908
+ #<strong>make_cmdline_2</strong>(target_dir, result_file, optionx, *param_names) &#x21d2; <tt>String</tt>
909
+
910
+
911
+
912
+
913
+
914
+ </h3><div class="docstring">
915
+ <div class="discussion">
916
+
917
+ <p>2番目の実行ファイル用コマンドライン作成</p>
918
+
919
+
920
+ </div>
921
+ </div>
922
+ <div class="tags">
923
+ <p class="tag_title">Parameters:</p>
924
+ <ul class="param">
925
+
926
+ <li>
927
+
928
+ <span class='name'>target_dir</span>
929
+
930
+
931
+ <span class='type'>(<tt>String</tt>)</span>
932
+
933
+
934
+
935
+ &mdash;
936
+ <div class='inline'>
937
+ <p>テスト実行ディレクトリ(@test_dir_pnaからの相対パス)</p>
938
+ </div>
939
+
940
+ </li>
941
+
942
+ <li>
943
+
944
+ <span class='name'>result_file</span>
945
+
946
+
947
+ <span class='type'>(<tt>String</tt>)</span>
948
+
949
+
950
+
951
+ &mdash;
952
+ <div class='inline'>
953
+ <p>実行ファイルの実行結果を格納するファイルの名前 </p>
954
+ </div>
955
+
956
+ </li>
957
+
958
+ <li>
959
+
960
+ <span class='name'>optionx</span>
961
+
962
+
963
+ <span class='type'>(<tt>Array</tt>)</span>
964
+
965
+
966
+
967
+ &mdash;
968
+ <div class='inline'>
969
+ <p>(付加的な)コマンドラインオプション</p>
970
+ </div>
971
+
972
+ </li>
973
+
974
+ <li>
975
+
976
+ <span class='name'>param_names</span>
977
+
978
+
979
+ <span class='type'>(<tt>Array</tt>)</span>
980
+
981
+
982
+
983
+ &mdash;
984
+ <div class='inline'>
985
+ <p>コマンドラインオプション群</p>
986
+ </div>
987
+
988
+ </li>
989
+
990
+ </ul>
991
+
992
+ <p class="tag_title">Returns:</p>
993
+ <ul class="return">
994
+
995
+ <li>
996
+
997
+
998
+ <span class='type'>(<tt>String</tt>)</span>
999
+
1000
+
1001
+
1002
+ &mdash;
1003
+ <div class='inline'>
1004
+ <p>コマンドライン文字列</p>
1005
+ </div>
1006
+
1007
+ </li>
1008
+
1009
+ </ul>
1010
+ <p class="tag_title">Since:</p>
1011
+ <ul class="since">
1012
+
1013
+ <li>
1014
+
1015
+
1016
+
1017
+
1018
+
1019
+ <div class='inline'>
1020
+ <p>0.1.0</p>
1021
+ </div>
1022
+
1023
+ </li>
1024
+
1025
+ </ul>
1026
+
1027
+ </div><table class="source_code">
1028
+ <tr>
1029
+ <td>
1030
+ <pre class="lines">
1031
+
1032
+
1033
+ 80
1034
+ 81
1035
+ 82</pre>
1036
+ </td>
1037
+ <td>
1038
+ <pre class="code"><span class="info file"># File 'lib/clitest/cmdline.rb', line 80</span>
1039
+
1040
+ <span class='kw'>def</span> <span class='id identifier rubyid_make_cmdline_2'>make_cmdline_2</span><span class='lparen'>(</span><span class='id identifier rubyid_target_dir'>target_dir</span><span class='comma'>,</span> <span class='id identifier rubyid_result_file'>result_file</span><span class='comma'>,</span> <span class='id identifier rubyid_optionx'>optionx</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_param_names'>param_names</span><span class='rparen'>)</span>
1041
+ <span class='id identifier rubyid_make_cmdline'>make_cmdline</span><span class='lparen'>(</span><span class='int'>1</span><span class='comma'>,</span> <span class='id identifier rubyid_target_dir'>target_dir</span><span class='comma'>,</span> <span class='id identifier rubyid_result_file'>result_file</span><span class='comma'>,</span> <span class='id identifier rubyid_optionx'>optionx</span><span class='comma'>,</span> <span class='id identifier rubyid_param_names'>param_names</span><span class='rparen'>)</span>
1042
+ <span class='kw'>end</span></pre>
1043
+ </td>
1044
+ </tr>
1045
+ </table>
1046
+ </div>
1047
+
1048
+ <div class="method_details ">
1049
+ <h3 class="signature " id="make_cmdline_base-instance_method">
1050
+
1051
+ #<strong>make_cmdline_base</strong>(target_cmd, target_dir, result_file, optionx, *param_names) &#x21d2; <tt>String</tt>
1052
+
1053
+
1054
+
1055
+
1056
+
1057
+ </h3><div class="docstring">
1058
+ <div class="discussion">
1059
+
1060
+ <p>実行ファイル用コマンドライン作成</p>
1061
+
1062
+
1063
+ </div>
1064
+ </div>
1065
+ <div class="tags">
1066
+ <p class="tag_title">Parameters:</p>
1067
+ <ul class="param">
1068
+
1069
+ <li>
1070
+
1071
+ <span class='name'>target_cmd</span>
1072
+
1073
+
1074
+ <span class='type'>(<tt>String</tt>)</span>
1075
+
1076
+
1077
+
1078
+ &mdash;
1079
+ <div class='inline'>
1080
+ <p>実行ファイル</p>
1081
+ </div>
1082
+
1083
+ </li>
1084
+
1085
+ <li>
1086
+
1087
+ <span class='name'>target_dir</span>
1088
+
1089
+
1090
+ <span class='type'>(<tt>String</tt>)</span>
1091
+
1092
+
1093
+
1094
+ &mdash;
1095
+ <div class='inline'>
1096
+ <p>テスト実行ディレクトリ(@test_dir_pnaからの相対パス)</p>
1097
+ </div>
1098
+
1099
+ </li>
1100
+
1101
+ <li>
1102
+
1103
+ <span class='name'>result_file</span>
1104
+
1105
+
1106
+ <span class='type'>(<tt>String</tt>)</span>
1107
+
1108
+
1109
+
1110
+ &mdash;
1111
+ <div class='inline'>
1112
+ <p>実行ファイルの実行結果を格納するファイルの名前</p>
1113
+ </div>
1114
+
1115
+ </li>
1116
+
1117
+ <li>
1118
+
1119
+ <span class='name'>optionx</span>
1120
+
1121
+
1122
+ <span class='type'>(<tt>Array</tt>)</span>
1123
+
1124
+
1125
+
1126
+ &mdash;
1127
+ <div class='inline'>
1128
+ <p>(付加的な)コマンドラインオプション</p>
1129
+ </div>
1130
+
1131
+ </li>
1132
+
1133
+ <li>
1134
+
1135
+ <span class='name'>param_names</span>
1136
+
1137
+
1138
+ <span class='type'>(<tt>Array</tt>)</span>
1139
+
1140
+
1141
+
1142
+ &mdash;
1143
+ <div class='inline'>
1144
+ <p>コマンドラインオプション群</p>
1145
+ </div>
1146
+
1147
+ </li>
1148
+
1149
+ </ul>
1150
+
1151
+ <p class="tag_title">Returns:</p>
1152
+ <ul class="return">
1153
+
1154
+ <li>
1155
+
1156
+
1157
+ <span class='type'>(<tt>String</tt>)</span>
1158
+
1159
+
1160
+
1161
+ &mdash;
1162
+ <div class='inline'>
1163
+ <p>コマンドライン文字列</p>
1164
+ </div>
1165
+
1166
+ </li>
1167
+
1168
+ </ul>
1169
+ <p class="tag_title">Since:</p>
1170
+ <ul class="since">
1171
+
1172
+ <li>
1173
+
1174
+
1175
+
1176
+
1177
+
1178
+ <div class='inline'>
1179
+ <p>0.1.0</p>
1180
+ </div>
1181
+
1182
+ </li>
1183
+
1184
+ </ul>
1185
+
1186
+ </div><table class="source_code">
1187
+ <tr>
1188
+ <td>
1189
+ <pre class="lines">
1190
+
1191
+
1192
+ 47
1193
+ 48
1194
+ 49
1195
+ 50
1196
+ 51</pre>
1197
+ </td>
1198
+ <td>
1199
+ <pre class="code"><span class="info file"># File 'lib/clitest/cmdline.rb', line 47</span>
1200
+
1201
+ <span class='kw'>def</span> <span class='id identifier rubyid_make_cmdline_base'>make_cmdline_base</span><span class='lparen'>(</span><span class='id identifier rubyid_target_cmd'>target_cmd</span><span class='comma'>,</span> <span class='id identifier rubyid_target_dir'>target_dir</span><span class='comma'>,</span> <span class='id identifier rubyid_result_file'>result_file</span><span class='comma'>,</span> <span class='id identifier rubyid_optionx'>optionx</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_param_names'>param_names</span><span class='rparen'>)</span>
1202
+ <span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='id identifier rubyid_param_names'>param_names</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'> </span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
1203
+
1204
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='ivar'>@test_cmd_path_pn</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='ivar'>@test_dir_pn</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_result_file'>result_file</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_target_cmd'>target_cmd</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_target_dir'>target_dir</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_optionx'>optionx</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_params'>params</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
1205
+ <span class='kw'>end</span></pre>
1206
+ </td>
1207
+ </tr>
1208
+ </table>
1209
+ </div>
1210
+
1211
+ </div>
1212
+
1213
+ </div>
1214
+
1215
+ <div id="footer">
1216
+ Generated on Tue May 11 18:35:27 2021 by
1217
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1218
+ 0.9.26 (ruby-2.5.8).
1219
+ </div>
1220
+
1221
+ </div>
1222
+ </body>
1223
+ </html>