ftr_ruby 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/doc/CHANGELOG_md.html +526 -0
- data/doc/FtrRuby/DCAT_Record.html +1324 -0
- data/doc/FtrRuby/Error.html +606 -0
- data/doc/FtrRuby/FDPIndex.html +966 -0
- data/doc/FtrRuby/Output.html +1355 -0
- data/doc/FtrRuby/TestInfra.html +713 -0
- data/doc/FtrRuby/Tests.html +690 -0
- data/doc/FtrRuby.html +588 -0
- data/doc/Gemfile.html +548 -0
- data/doc/Gemfile_lock.html +1074 -0
- data/doc/LICENSE_txt.html +527 -0
- data/doc/OpenAPI.html +1103 -0
- data/doc/README_md.html +716 -0
- data/doc/Rakefile.html +529 -0
- data/doc/bin/setup.html +523 -0
- data/doc/created.rid +19 -0
- data/doc/css/rdoc.css +1955 -0
- data/doc/index.html +518 -0
- data/doc/js/aliki.js +511 -0
- data/doc/js/bash_highlighter.js +167 -0
- data/doc/js/c_highlighter.js +299 -0
- data/doc/js/search_controller.js +129 -0
- data/doc/js/search_data.js +1 -0
- data/doc/js/search_navigation.js +105 -0
- data/doc/js/search_ranker.js +239 -0
- data/doc/js/theme-toggle.js +112 -0
- data/doc/sig/ftr_ruby_rbs.html +524 -0
- data/lib/ftr_ruby/version.rb +1 -1
- data/lib/ftr_ruby.rb +4 -0
- metadata +28 -1
|
@@ -0,0 +1,713 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
|
|
3
|
+
<html lang="en">
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
7
|
+
|
|
8
|
+
<title>class FtrRuby::TestInfra - RDoc Documentation</title>
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
<meta
|
|
12
|
+
name="keywords"
|
|
13
|
+
content="ruby,class,FtrRuby::TestInfra"
|
|
14
|
+
>
|
|
15
|
+
|
|
16
|
+
<meta
|
|
17
|
+
name="description"
|
|
18
|
+
content="Documentation for the FtrRuby::TestInfra class"
|
|
19
|
+
>
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
<!-- Open Graph / Facebook -->
|
|
26
|
+
<meta property="og:type" content="website">
|
|
27
|
+
<meta property="og:title" content="class FtrRuby::TestInfra - RDoc Documentation">
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
<meta
|
|
32
|
+
property="og:description"
|
|
33
|
+
content="Documentation for FtrRuby::TestInfra class - API reference and code examples"
|
|
34
|
+
>
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
<!-- Twitter -->
|
|
41
|
+
<meta name="twitter:card" content="summary">
|
|
42
|
+
<meta name="twitter:title" content="class FtrRuby::TestInfra - RDoc Documentation">
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<meta
|
|
47
|
+
name="twitter:description"
|
|
48
|
+
content="Documentation for FtrRuby::TestInfra class - API reference and code examples"
|
|
49
|
+
>
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
<script type="text/javascript">
|
|
54
|
+
var rdoc_rel_prefix = "../";
|
|
55
|
+
var index_rel_prefix = "../";
|
|
56
|
+
</script>
|
|
57
|
+
|
|
58
|
+
<script
|
|
59
|
+
src="../js/theme-toggle.js?v=7.2.0"
|
|
60
|
+
></script>
|
|
61
|
+
|
|
62
|
+
<script
|
|
63
|
+
src="../js/search_navigation.js?v=7.2.0"
|
|
64
|
+
defer
|
|
65
|
+
></script>
|
|
66
|
+
|
|
67
|
+
<script
|
|
68
|
+
src="../js/search_data.js?v=7.2.0"
|
|
69
|
+
defer
|
|
70
|
+
></script>
|
|
71
|
+
|
|
72
|
+
<script
|
|
73
|
+
src="../js/search_ranker.js?v=7.2.0"
|
|
74
|
+
defer
|
|
75
|
+
></script>
|
|
76
|
+
|
|
77
|
+
<script
|
|
78
|
+
src="../js/search_controller.js?v=7.2.0"
|
|
79
|
+
defer
|
|
80
|
+
></script>
|
|
81
|
+
|
|
82
|
+
<script
|
|
83
|
+
src="../js/c_highlighter.js?v=7.2.0"
|
|
84
|
+
defer
|
|
85
|
+
></script>
|
|
86
|
+
|
|
87
|
+
<script
|
|
88
|
+
src="../js/bash_highlighter.js?v=7.2.0"
|
|
89
|
+
defer
|
|
90
|
+
></script>
|
|
91
|
+
|
|
92
|
+
<script
|
|
93
|
+
src="../js/aliki.js?v=7.2.0"
|
|
94
|
+
defer
|
|
95
|
+
></script>
|
|
96
|
+
|
|
97
|
+
<link
|
|
98
|
+
href="../css/rdoc.css?v=7.2.0"
|
|
99
|
+
rel="stylesheet"
|
|
100
|
+
>
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
<body role="document" class="class has-toc">
|
|
106
|
+
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
|
107
|
+
<!-- Chevron (right arrow) - used for expand/collapse -->
|
|
108
|
+
<symbol
|
|
109
|
+
id="icon-chevron"
|
|
110
|
+
viewBox="0 0 24 24"
|
|
111
|
+
fill="none"
|
|
112
|
+
stroke="currentColor"
|
|
113
|
+
stroke-width="2"
|
|
114
|
+
stroke-linecap="round"
|
|
115
|
+
stroke-linejoin="round"
|
|
116
|
+
>
|
|
117
|
+
<polyline points="9 18 15 12 9 6"></polyline>
|
|
118
|
+
</symbol>
|
|
119
|
+
|
|
120
|
+
<!-- File/Document - Pages section -->
|
|
121
|
+
<symbol
|
|
122
|
+
id="icon-file"
|
|
123
|
+
viewBox="0 0 24 24"
|
|
124
|
+
fill="none"
|
|
125
|
+
stroke="currentColor"
|
|
126
|
+
stroke-width="2"
|
|
127
|
+
stroke-linecap="round"
|
|
128
|
+
stroke-linejoin="round"
|
|
129
|
+
>
|
|
130
|
+
<path
|
|
131
|
+
d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"
|
|
132
|
+
></path>
|
|
133
|
+
|
|
134
|
+
<polyline points="14 2 14 8 20 8"></polyline>
|
|
135
|
+
</symbol>
|
|
136
|
+
|
|
137
|
+
<!-- Layers/Stack - Classes and Modules section -->
|
|
138
|
+
<symbol
|
|
139
|
+
id="icon-layers"
|
|
140
|
+
viewBox="0 0 24 24"
|
|
141
|
+
fill="none"
|
|
142
|
+
stroke="currentColor"
|
|
143
|
+
stroke-width="2"
|
|
144
|
+
stroke-linecap="round"
|
|
145
|
+
stroke-linejoin="round"
|
|
146
|
+
>
|
|
147
|
+
<polygon points="12 2 2 7 12 12 22 7 12 2"></polygon>
|
|
148
|
+
<polyline points="2 17 12 22 22 17"></polyline>
|
|
149
|
+
<polyline points="2 12 12 17 22 12"></polyline>
|
|
150
|
+
</symbol>
|
|
151
|
+
|
|
152
|
+
<!-- Curly braces with C - Class Methods section -->
|
|
153
|
+
<symbol
|
|
154
|
+
id="icon-class-methods"
|
|
155
|
+
viewBox="0 0 24 24"
|
|
156
|
+
fill="none"
|
|
157
|
+
stroke="currentColor"
|
|
158
|
+
stroke-width="2"
|
|
159
|
+
stroke-linecap="round"
|
|
160
|
+
stroke-linejoin="round"
|
|
161
|
+
>
|
|
162
|
+
<path d="M6 3C3.5 3 2 4.5 2 7v3c0 1.5-1 2-1 2s1 .5 1 2v5c0 2.5 1.5 4 4 4"></path>
|
|
163
|
+
<path d="M18 3c2.5 0 4 1.5 4 4v3c0 1.5 1 2 1 2s-1 .5-1 2v5c0 2.5-1.5 4-4 4"></path>
|
|
164
|
+
|
|
165
|
+
<text
|
|
166
|
+
x="12"
|
|
167
|
+
y="17"
|
|
168
|
+
text-anchor="middle"
|
|
169
|
+
font-size="13"
|
|
170
|
+
font-weight="bold"
|
|
171
|
+
fill="currentColor"
|
|
172
|
+
stroke="none"
|
|
173
|
+
>
|
|
174
|
+
C
|
|
175
|
+
</text>
|
|
176
|
+
</symbol>
|
|
177
|
+
|
|
178
|
+
<!-- Curly braces with I - Instance Methods section -->
|
|
179
|
+
<symbol
|
|
180
|
+
id="icon-instance-methods"
|
|
181
|
+
viewBox="0 0 24 24"
|
|
182
|
+
fill="none"
|
|
183
|
+
stroke="currentColor"
|
|
184
|
+
stroke-width="2"
|
|
185
|
+
stroke-linecap="round"
|
|
186
|
+
stroke-linejoin="round"
|
|
187
|
+
>
|
|
188
|
+
<path d="M6 3C3.5 3 2 4.5 2 7v3c0 1.5-1 2-1 2s1 .5 1 2v5c0 2.5 1.5 4 4 4"></path>
|
|
189
|
+
<path d="M18 3c2.5 0 4 1.5 4 4v3c0 1.5 1 2 1 2s-1 .5-1 2v5c0 2.5-1.5 4-4 4"></path>
|
|
190
|
+
|
|
191
|
+
<text
|
|
192
|
+
x="12"
|
|
193
|
+
y="17"
|
|
194
|
+
text-anchor="middle"
|
|
195
|
+
font-size="13"
|
|
196
|
+
font-weight="bold"
|
|
197
|
+
fill="currentColor"
|
|
198
|
+
stroke="none"
|
|
199
|
+
>
|
|
200
|
+
I
|
|
201
|
+
</text>
|
|
202
|
+
</symbol>
|
|
203
|
+
|
|
204
|
+
<!-- Double chevrons up - Ancestors section -->
|
|
205
|
+
<symbol
|
|
206
|
+
id="icon-ancestors"
|
|
207
|
+
viewBox="0 0 24 24"
|
|
208
|
+
fill="none"
|
|
209
|
+
stroke="currentColor"
|
|
210
|
+
stroke-width="2"
|
|
211
|
+
stroke-linecap="round"
|
|
212
|
+
stroke-linejoin="round"
|
|
213
|
+
>
|
|
214
|
+
<polyline points="17 11 12 6 7 11"></polyline>
|
|
215
|
+
<polyline points="17 18 12 13 7 18"></polyline>
|
|
216
|
+
</symbol>
|
|
217
|
+
|
|
218
|
+
<!-- User with plus - Included Modules section -->
|
|
219
|
+
<symbol
|
|
220
|
+
id="icon-includes"
|
|
221
|
+
viewBox="0 0 24 24"
|
|
222
|
+
fill="none"
|
|
223
|
+
stroke="currentColor"
|
|
224
|
+
stroke-width="2"
|
|
225
|
+
stroke-linecap="round"
|
|
226
|
+
stroke-linejoin="round"
|
|
227
|
+
>
|
|
228
|
+
<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
|
|
229
|
+
<circle cx="8.5" cy="7" r="4"></circle>
|
|
230
|
+
|
|
231
|
+
<line
|
|
232
|
+
x1="20"
|
|
233
|
+
y1="8"
|
|
234
|
+
x2="20"
|
|
235
|
+
y2="14"
|
|
236
|
+
></line>
|
|
237
|
+
|
|
238
|
+
<line
|
|
239
|
+
x1="23"
|
|
240
|
+
y1="11"
|
|
241
|
+
x2="17"
|
|
242
|
+
y2="11"
|
|
243
|
+
></line>
|
|
244
|
+
</symbol>
|
|
245
|
+
|
|
246
|
+
<!-- User with check - Extended Modules section -->
|
|
247
|
+
<symbol
|
|
248
|
+
id="icon-extends"
|
|
249
|
+
viewBox="0 0 24 24"
|
|
250
|
+
fill="none"
|
|
251
|
+
stroke="currentColor"
|
|
252
|
+
stroke-width="2"
|
|
253
|
+
stroke-linecap="round"
|
|
254
|
+
stroke-linejoin="round"
|
|
255
|
+
>
|
|
256
|
+
<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
|
|
257
|
+
<circle cx="8.5" cy="7" r="4"></circle>
|
|
258
|
+
<polyline points="17 11 19 13 23 9"></polyline>
|
|
259
|
+
</symbol>
|
|
260
|
+
|
|
261
|
+
<!-- List - Sections section -->
|
|
262
|
+
<symbol
|
|
263
|
+
id="icon-list"
|
|
264
|
+
viewBox="0 0 24 24"
|
|
265
|
+
fill="none"
|
|
266
|
+
stroke="currentColor"
|
|
267
|
+
stroke-width="2"
|
|
268
|
+
stroke-linecap="round"
|
|
269
|
+
stroke-linejoin="round"
|
|
270
|
+
>
|
|
271
|
+
<line
|
|
272
|
+
x1="8"
|
|
273
|
+
y1="6"
|
|
274
|
+
x2="21"
|
|
275
|
+
y2="6"
|
|
276
|
+
></line>
|
|
277
|
+
|
|
278
|
+
<line
|
|
279
|
+
x1="8"
|
|
280
|
+
y1="12"
|
|
281
|
+
x2="21"
|
|
282
|
+
y2="12"
|
|
283
|
+
></line>
|
|
284
|
+
|
|
285
|
+
<line
|
|
286
|
+
x1="8"
|
|
287
|
+
y1="18"
|
|
288
|
+
x2="21"
|
|
289
|
+
y2="18"
|
|
290
|
+
></line>
|
|
291
|
+
|
|
292
|
+
<line
|
|
293
|
+
x1="3"
|
|
294
|
+
y1="6"
|
|
295
|
+
x2="3.01"
|
|
296
|
+
y2="6"
|
|
297
|
+
></line>
|
|
298
|
+
|
|
299
|
+
<line
|
|
300
|
+
x1="3"
|
|
301
|
+
y1="12"
|
|
302
|
+
x2="3.01"
|
|
303
|
+
y2="12"
|
|
304
|
+
></line>
|
|
305
|
+
|
|
306
|
+
<line
|
|
307
|
+
x1="3"
|
|
308
|
+
y1="18"
|
|
309
|
+
x2="3.01"
|
|
310
|
+
y2="18"
|
|
311
|
+
></line>
|
|
312
|
+
</symbol>
|
|
313
|
+
</svg>
|
|
314
|
+
|
|
315
|
+
<header class="top-navbar">
|
|
316
|
+
<a href="../index.html" class="navbar-brand">
|
|
317
|
+
RDoc Documentation
|
|
318
|
+
</a>
|
|
319
|
+
|
|
320
|
+
<!-- Desktop search bar -->
|
|
321
|
+
<div class="navbar-search navbar-search-desktop" role="search">
|
|
322
|
+
<form action="#" method="get" accept-charset="utf-8">
|
|
323
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
|
324
|
+
aria-autocomplete="list" aria-controls="search-results-desktop"
|
|
325
|
+
type="text" name="search" placeholder="Search (/) for a class, method..."
|
|
326
|
+
spellcheck="false" autocomplete="off"
|
|
327
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
|
328
|
+
<ul id="search-results-desktop" aria-label="Search Results"
|
|
329
|
+
aria-busy="false" aria-expanded="false"
|
|
330
|
+
aria-atomic="false" class="initially-hidden search-results"></ul>
|
|
331
|
+
</form>
|
|
332
|
+
</div>
|
|
333
|
+
|
|
334
|
+
<!-- Mobile search icon button -->
|
|
335
|
+
<button id="search-toggle" class="navbar-search-mobile" aria-label="Open search" type="button">
|
|
336
|
+
<span aria-hidden="true">🔍</span>
|
|
337
|
+
</button>
|
|
338
|
+
|
|
339
|
+
<!-- Theme toggle button -->
|
|
340
|
+
<button id="theme-toggle" class="theme-toggle" aria-label="Switch to dark mode" type="button">
|
|
341
|
+
<span class="theme-toggle-icon" aria-hidden="true">🌙</span>
|
|
342
|
+
</button>
|
|
343
|
+
</header>
|
|
344
|
+
|
|
345
|
+
<!-- Search Modal (Mobile) -->
|
|
346
|
+
<div id="search-modal" class="search-modal" hidden aria-modal="true" role="dialog" aria-label="Search">
|
|
347
|
+
<div class="search-modal-backdrop"></div>
|
|
348
|
+
<div class="search-modal-content">
|
|
349
|
+
<div class="search-modal-header">
|
|
350
|
+
<form class="search-modal-form" action="#" method="get" accept-charset="utf-8">
|
|
351
|
+
<span class="search-modal-icon" aria-hidden="true">🔍</span>
|
|
352
|
+
<input id="search-field-mobile" role="combobox" aria-label="Search"
|
|
353
|
+
aria-autocomplete="list" aria-controls="search-results-mobile"
|
|
354
|
+
type="text" name="search" placeholder="Search documentation"
|
|
355
|
+
spellcheck="false" autocomplete="off">
|
|
356
|
+
<button type="button" class="search-modal-close" aria-label="Close search" id="search-modal-close">
|
|
357
|
+
<span aria-hidden="true">esc</span>
|
|
358
|
+
</button>
|
|
359
|
+
</form>
|
|
360
|
+
</div>
|
|
361
|
+
<div class="search-modal-body">
|
|
362
|
+
<ul id="search-results-mobile" aria-label="Search Results"
|
|
363
|
+
aria-busy="false" aria-expanded="false"
|
|
364
|
+
aria-atomic="false" class="search-results search-modal-results initially-hidden"></ul>
|
|
365
|
+
<div class="search-modal-empty">
|
|
366
|
+
<p>No recent searches</p>
|
|
367
|
+
</div>
|
|
368
|
+
</div>
|
|
369
|
+
</div>
|
|
370
|
+
</div>
|
|
371
|
+
|
|
372
|
+
<div id="navigation-toggle" role="button" tabindex="0" aria-label="Toggle sidebar" aria-expanded="true" aria-controls="navigation">
|
|
373
|
+
<span aria-hidden="true">☰</span>
|
|
374
|
+
</div>
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
<nav id="navigation" role="navigation" hidden>
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
<div id="fileindex-section" class="nav-section">
|
|
384
|
+
<details class="nav-section-collapsible" >
|
|
385
|
+
<summary class="nav-section-header">
|
|
386
|
+
<span class="nav-section-icon">
|
|
387
|
+
<svg>
|
|
388
|
+
<use href="#icon-file"></use>
|
|
389
|
+
</svg>
|
|
390
|
+
</span>
|
|
391
|
+
|
|
392
|
+
<span class="nav-section-title">Pages</span>
|
|
393
|
+
|
|
394
|
+
<span class="nav-section-chevron">
|
|
395
|
+
<svg>
|
|
396
|
+
<use href="#icon-chevron"></use>
|
|
397
|
+
</svg>
|
|
398
|
+
</span>
|
|
399
|
+
</summary>
|
|
400
|
+
|
|
401
|
+
<ul class="nav-list">
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
<li>
|
|
409
|
+
<a href="../CHANGELOG_md.html">
|
|
410
|
+
CHANGELOG
|
|
411
|
+
</a>
|
|
412
|
+
</li>
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
<li>
|
|
418
|
+
<a href="../Gemfile.html">
|
|
419
|
+
Gemfile
|
|
420
|
+
</a>
|
|
421
|
+
</li>
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
<li>
|
|
427
|
+
<a href="../Gemfile_lock.html">
|
|
428
|
+
Gemfile.lock
|
|
429
|
+
</a>
|
|
430
|
+
</li>
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
<li>
|
|
436
|
+
<a href="../LICENSE_txt.html">
|
|
437
|
+
LICENSE
|
|
438
|
+
</a>
|
|
439
|
+
</li>
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
<li>
|
|
445
|
+
<a href="../README_md.html">
|
|
446
|
+
README
|
|
447
|
+
</a>
|
|
448
|
+
</li>
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
<li>
|
|
454
|
+
<a href="../Rakefile.html">
|
|
455
|
+
Rakefile
|
|
456
|
+
</a>
|
|
457
|
+
</li>
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
<li>
|
|
463
|
+
<a href="../bin/setup.html">
|
|
464
|
+
setup
|
|
465
|
+
</a>
|
|
466
|
+
</li>
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
<li>
|
|
472
|
+
<a href="../sig/ftr_ruby_rbs.html">
|
|
473
|
+
ftr_ruby.rbs
|
|
474
|
+
</a>
|
|
475
|
+
</li>
|
|
476
|
+
|
|
477
|
+
</ul>
|
|
478
|
+
</details>
|
|
479
|
+
</div>
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
<div id="parent-class-section" class="nav-section">
|
|
486
|
+
<details class="nav-section-collapsible" open>
|
|
487
|
+
<summary class="nav-section-header">
|
|
488
|
+
<span class="nav-section-icon">
|
|
489
|
+
<svg><use href="#icon-ancestors"></use></svg>
|
|
490
|
+
</span>
|
|
491
|
+
<span class="nav-section-title">Ancestors</span>
|
|
492
|
+
<span class="nav-section-chevron">
|
|
493
|
+
<svg><use href="#icon-chevron"></use></svg>
|
|
494
|
+
</span>
|
|
495
|
+
</summary>
|
|
496
|
+
<ul><li>Object</li></ul>
|
|
497
|
+
</details>
|
|
498
|
+
</div>
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
<div class="nav-section">
|
|
507
|
+
<details class="nav-section-collapsible" open>
|
|
508
|
+
<summary class="nav-section-header">
|
|
509
|
+
<span class="nav-section-icon">
|
|
510
|
+
<svg><use href="#icon-class-methods"></use></svg>
|
|
511
|
+
</span>
|
|
512
|
+
<span class="nav-section-title">Class Methods</span>
|
|
513
|
+
<span class="nav-section-chevron">
|
|
514
|
+
<svg><use href="#icon-chevron"></use></svg>
|
|
515
|
+
</span>
|
|
516
|
+
</summary>
|
|
517
|
+
<ul class="nav-list" role="directory">
|
|
518
|
+
|
|
519
|
+
<li ><a href="#method-c-get_tests_metrics">get_tests_metrics</a></li>
|
|
520
|
+
|
|
521
|
+
</ul>
|
|
522
|
+
</details>
|
|
523
|
+
</div>
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
<div id="classindex-section" class="nav-section">
|
|
529
|
+
<details class="nav-section-collapsible" open>
|
|
530
|
+
<summary class="nav-section-header">
|
|
531
|
+
<span class="nav-section-icon">
|
|
532
|
+
<svg><use href="#icon-layers"></use></svg>
|
|
533
|
+
</span>
|
|
534
|
+
<span class="nav-section-title">Classes and Modules</span>
|
|
535
|
+
<span class="nav-section-chevron">
|
|
536
|
+
<svg><use href="#icon-chevron"></use></svg>
|
|
537
|
+
</span>
|
|
538
|
+
</summary>
|
|
539
|
+
|
|
540
|
+
<ul class="link-list nav-list"><li><details><summary><code><a href="../FtrRuby.html">FtrRuby</a></code></summary><ul class="link-list nav-list"><li><code><a href="../FtrRuby/DCAT_Record.html">DCAT_Record</a></code></li><li><code><a href="../FtrRuby/Error.html">Error</a></code></li><li><code><a href="../FtrRuby/FDPIndex.html">FDPIndex</a></code></li><li><code><a href="../FtrRuby/Output.html">Output</a></code></li><li><code><a href="../FtrRuby/TestInfra.html">TestInfra</a></code></li><li><code><a href="../FtrRuby/Tests.html">Tests</a></code></li></ul></details></li><li><code><a href="../OpenAPI.html">OpenAPI</a></code></li></ul>
|
|
541
|
+
</details>
|
|
542
|
+
</div>
|
|
543
|
+
|
|
544
|
+
</nav>
|
|
545
|
+
|
|
546
|
+
<main role="main" aria-labelledby="class-ftrruby-testinfra">
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
<ol role="navigation" aria-label="Breadcrumb navigation" class="breadcrumb">
|
|
550
|
+
|
|
551
|
+
<li>
|
|
552
|
+
|
|
553
|
+
<a href="../FtrRuby.html">FtrRuby</a><span>::</span>
|
|
554
|
+
|
|
555
|
+
</li>
|
|
556
|
+
|
|
557
|
+
<li>
|
|
558
|
+
|
|
559
|
+
<span>TestInfra</span>
|
|
560
|
+
|
|
561
|
+
</li>
|
|
562
|
+
|
|
563
|
+
</ol>
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
<span id="class-FtrRuby::TestInfra" class="legacy-anchor"></span>
|
|
567
|
+
<h1 id="class-ftrruby-testinfra" class="anchor-link class">
|
|
568
|
+
class FtrRuby::TestInfra
|
|
569
|
+
</h1>
|
|
570
|
+
|
|
571
|
+
<section class="description">
|
|
572
|
+
|
|
573
|
+
</section>
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
<span id="5Buntitled-5D" class="legacy-anchor"></span>
|
|
577
|
+
<section class="documentation-section anchor-link">
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
<section id="public-class-untitled-method-details" class="method-section anchor-link">
|
|
591
|
+
<header>
|
|
592
|
+
<h3 id="public-class-untitled-methods"><a href="#public-class-untitled-methods">Public Class Methods</a></h3>
|
|
593
|
+
</header>
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
<div id="method-c-get_tests_metrics" class="method-detail anchor-link ">
|
|
597
|
+
<div class="method-header">
|
|
598
|
+
|
|
599
|
+
<div class="method-heading">
|
|
600
|
+
<a href="#method-c-get_tests_metrics" title="Link to this method">
|
|
601
|
+
<span class="method-name">get_tests_metrics</span>
|
|
602
|
+
<span class="method-args">(tests:)</span>
|
|
603
|
+
</a>
|
|
604
|
+
</div>
|
|
605
|
+
|
|
606
|
+
</div>
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
<div class="method-controls">
|
|
610
|
+
<details class="method-source-toggle">
|
|
611
|
+
<summary>Source</summary>
|
|
612
|
+
</details>
|
|
613
|
+
</div>
|
|
614
|
+
<div class="method-source-code" id="get_tests_metrics-source">
|
|
615
|
+
<pre class="ruby"><span class="ruby-comment"># File lib/test_infrastructure.rb, line 5</span>
|
|
616
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">get_tests_metrics</span>(<span class="ruby-value">tests:</span>)
|
|
617
|
+
<span class="ruby-identifier">base_url</span> = <span class="ruby-constant">ENV</span>[<span class="ruby-string">"TEST_BASE_URL"</span>] <span class="ruby-operator">||</span> <span class="ruby-string">"http://localhost:8282"</span> <span class="ruby-comment"># Default to local server</span>
|
|
618
|
+
<span class="ruby-identifier">test_path</span> = <span class="ruby-constant">ENV</span>[<span class="ruby-string">"TEST_PATH"</span>] <span class="ruby-operator">||</span> <span class="ruby-string">"community-tests"</span> <span class="ruby-comment"># Default to local server</span>
|
|
619
|
+
<span class="ruby-identifier">labels</span> = {}
|
|
620
|
+
<span class="ruby-identifier">landingpages</span> = {}
|
|
621
|
+
<span class="ruby-identifier">tests</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">testid</span><span class="ruby-operator">|</span>
|
|
622
|
+
<span class="ruby-identifier">warn</span> <span class="ruby-node">"getting dcat for #{testid} #{base_url}/#{test_path}/#{testid}"</span>
|
|
623
|
+
<span class="ruby-identifier">dcat</span> = <span class="ruby-constant">RestClient</span><span class="ruby-operator">::</span><span class="ruby-constant">Request</span>.<span class="ruby-identifier">execute</span>({
|
|
624
|
+
<span class="ruby-value">method:</span> <span class="ruby-value">:get</span>,
|
|
625
|
+
<span class="ruby-value">url:</span> <span class="ruby-node">"#{base_url}/#{test_path}/#{testid}"</span>,
|
|
626
|
+
<span class="ruby-value">headers:</span> { <span class="ruby-string">"Accept"</span> <span class="ruby-operator">=></span> <span class="ruby-string">"application/json"</span> }
|
|
627
|
+
}).<span class="ruby-identifier">body</span>
|
|
628
|
+
<span class="ruby-identifier">parseddcat</span> = <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">dcat</span>)
|
|
629
|
+
<span class="ruby-comment"># this next line should probably be done with SPARQL</span>
|
|
630
|
+
<span class="ruby-comment"># # TODO TODO TODO</span>
|
|
631
|
+
<span class="ruby-identifier">jpath</span> = <span class="ruby-constant">JsonPath</span>.<span class="ruby-identifier">new</span>(<span class="ruby-string">'[0]["http://semanticscience.org/resource/SIO_000233"][0]["@id"]'</span>) <span class="ruby-comment"># is implementation of</span>
|
|
632
|
+
<span class="ruby-identifier">metricurl</span> = <span class="ruby-identifier">jpath</span>.<span class="ruby-identifier">on</span>(<span class="ruby-identifier">parseddcat</span>).<span class="ruby-identifier">first</span>
|
|
633
|
+
|
|
634
|
+
<span class="ruby-keyword">begin</span>
|
|
635
|
+
<span class="ruby-identifier">g</span> = <span class="ruby-constant">RDF</span><span class="ruby-operator">::</span><span class="ruby-constant">Graph</span>.<span class="ruby-identifier">load</span>(<span class="ruby-identifier">metricurl</span>, <span class="ruby-value">format:</span> <span class="ruby-value">:turtle</span>)
|
|
636
|
+
<span class="ruby-keyword">rescue</span> <span class="ruby-constant">StandardError</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">e</span>
|
|
637
|
+
<span class="ruby-identifier">warn</span> <span class="ruby-node">"DCAT Metric loading failed #{e.inspect}"</span>
|
|
638
|
+
<span class="ruby-identifier">g</span> = <span class="ruby-constant">RDF</span><span class="ruby-operator">::</span><span class="ruby-constant">Graph</span>.<span class="ruby-identifier">new</span>
|
|
639
|
+
<span class="ruby-keyword">end</span>
|
|
640
|
+
|
|
641
|
+
<span class="ruby-identifier">title</span> = <span class="ruby-identifier">g</span>.<span class="ruby-identifier">query</span>([<span class="ruby-keyword">nil</span>, <span class="ruby-constant">RDF</span><span class="ruby-operator">::</span><span class="ruby-constant">Vocab</span><span class="ruby-operator">::</span><span class="ruby-constant">DC</span>.<span class="ruby-identifier">title</span>, <span class="ruby-keyword">nil</span>])&.<span class="ruby-identifier">first</span>&.<span class="ruby-identifier">object</span>&.<span class="ruby-identifier">to_s</span>
|
|
642
|
+
<span class="ruby-identifier">lp</span> = <span class="ruby-identifier">g</span>.<span class="ruby-identifier">query</span>([<span class="ruby-keyword">nil</span>, <span class="ruby-constant">RDF</span><span class="ruby-operator">::</span><span class="ruby-constant">Vocab</span><span class="ruby-operator">::</span><span class="ruby-constant">DCAT</span>.<span class="ruby-identifier">landingPage</span>, <span class="ruby-keyword">nil</span>])&.<span class="ruby-identifier">first</span>&.<span class="ruby-identifier">object</span>&.<span class="ruby-identifier">to_s</span>
|
|
643
|
+
|
|
644
|
+
<span class="ruby-identifier">labels</span>[<span class="ruby-identifier">testid</span>] = <span class="ruby-keyword">if</span> <span class="ruby-identifier">title</span> <span class="ruby-operator">!=</span> <span class="ruby-string">""</span>
|
|
645
|
+
<span class="ruby-identifier">title</span>
|
|
646
|
+
<span class="ruby-keyword">else</span>
|
|
647
|
+
<span class="ruby-string">"Metric label not available"</span>
|
|
648
|
+
<span class="ruby-keyword">end</span>
|
|
649
|
+
<span class="ruby-identifier">landingpages</span>[<span class="ruby-identifier">testid</span>] = <span class="ruby-keyword">if</span> <span class="ruby-identifier">lp</span> <span class="ruby-operator">!=</span> <span class="ruby-string">""</span>
|
|
650
|
+
<span class="ruby-identifier">lp</span>
|
|
651
|
+
<span class="ruby-keyword">else</span>
|
|
652
|
+
<span class="ruby-string">""</span>
|
|
653
|
+
<span class="ruby-keyword">end</span>
|
|
654
|
+
<span class="ruby-keyword">end</span>
|
|
655
|
+
[<span class="ruby-identifier">labels</span>, <span class="ruby-identifier">landingpages</span>]
|
|
656
|
+
<span class="ruby-keyword">end</span></pre>
|
|
657
|
+
</div>
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
<div class="method-description">
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
<p>there is a need to map between a test and its registered Metric in FS. This will return the label for the test in principle, we cojuld return a more complex object, but all I need now is the label</p>
|
|
665
|
+
|
|
666
|
+
|
|
667
|
+
</div>
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
</div>
|
|
674
|
+
|
|
675
|
+
|
|
676
|
+
</section>
|
|
677
|
+
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
</section>
|
|
688
|
+
|
|
689
|
+
</main>
|
|
690
|
+
|
|
691
|
+
<aside class="table-of-contents" role="complementary" aria-label="Table of Contents">
|
|
692
|
+
<div class="toc-sticky">
|
|
693
|
+
<h3 class="toc-heading">On This Page</h3>
|
|
694
|
+
<nav class="toc-nav" id="toc-nav" aria-label="Page sections">
|
|
695
|
+
<!-- Generated by JavaScript based on page headings -->
|
|
696
|
+
</nav>
|
|
697
|
+
</div>
|
|
698
|
+
</aside>
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
<footer class="site-footer">
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
<div class="footer-bottom">
|
|
705
|
+
<p>
|
|
706
|
+
Generated by <a href="https://ruby.github.io/rdoc/">RDoc 7.2.0</a>
|
|
707
|
+
using the Aliki theme by <a href="http://st0012.dev">Stan Lo</a>
|
|
708
|
+
</p>
|
|
709
|
+
</div>
|
|
710
|
+
</footer>
|
|
711
|
+
|
|
712
|
+
</body>
|
|
713
|
+
|