@grnsft/if 1.0.0-beta.0 → 1.0.0

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.
Files changed (263) hide show
  1. package/.env +5 -0
  2. package/README.md +1 -1
  3. package/adopters.md +3 -0
  4. package/build/common/config/strings.js +3 -4
  5. package/build/common/util/helpers.d.ts +5 -0
  6. package/build/common/util/helpers.js +24 -2
  7. package/build/if-check/config/config.js +7 -1
  8. package/build/if-check/util/args.js +3 -2
  9. package/build/if-check/util/npm.js +4 -4
  10. package/build/if-csv/config/config.js +7 -1
  11. package/build/if-csv/util/args.js +3 -2
  12. package/build/if-diff/config/config.js +7 -1
  13. package/build/if-diff/util/args.js +3 -2
  14. package/build/if-env/config/config.js +7 -1
  15. package/build/if-env/util/args.js +3 -2
  16. package/build/if-merge/config/config.js +7 -1
  17. package/build/if-merge/util/args.js +3 -2
  18. package/build/if-merge/util/helpers.js +4 -1
  19. package/build/if-run/builtins/csv-import/index.d.ts +16 -0
  20. package/build/if-run/builtins/csv-import/index.js +69 -0
  21. package/build/if-run/builtins/csv-lookup/index.js +10 -87
  22. package/build/if-run/builtins/index.d.ts +1 -0
  23. package/build/if-run/builtins/index.js +4 -2
  24. package/build/if-run/builtins/util/csv-helpers.d.ts +26 -0
  25. package/build/if-run/builtins/util/csv-helpers.js +92 -0
  26. package/build/if-run/config/config.js +1 -7
  27. package/build/if-run/config/strings.d.ts +1 -0
  28. package/build/if-run/config/strings.js +2 -1
  29. package/build/if-run/lib/compute.js +23 -16
  30. package/build/if-run/lib/regroup.d.ts +5 -0
  31. package/build/if-run/lib/regroup.js +14 -2
  32. package/build/if-run/util/args.d.ts +1 -1
  33. package/build/if-run/util/args.js +5 -4
  34. package/coverage/clover.xml +2062 -0
  35. package/coverage/coverage-final.json +58 -0
  36. package/coverage/lcov-report/base.css +224 -0
  37. package/coverage/lcov-report/block-navigation.js +87 -0
  38. package/coverage/lcov-report/builtins/coefficient/index.html +116 -0
  39. package/coverage/lcov-report/builtins/coefficient/index.ts.html +298 -0
  40. package/coverage/lcov-report/builtins/csv-lookup/index.html +116 -0
  41. package/coverage/lcov-report/builtins/csv-lookup/index.ts.html +826 -0
  42. package/coverage/lcov-report/builtins/divide/index.html +116 -0
  43. package/coverage/lcov-report/builtins/divide/index.ts.html +358 -0
  44. package/coverage/lcov-report/builtins/exponent/index.html +116 -0
  45. package/coverage/lcov-report/builtins/exponent/index.ts.html +361 -0
  46. package/coverage/lcov-report/builtins/export-csv-raw.ts.html +553 -0
  47. package/coverage/lcov-report/builtins/export-csv.ts.html +436 -0
  48. package/coverage/lcov-report/builtins/export-log.ts.html +148 -0
  49. package/coverage/lcov-report/builtins/export-yaml.ts.html +193 -0
  50. package/coverage/lcov-report/builtins/group-by.ts.html +370 -0
  51. package/coverage/lcov-report/builtins/index.html +206 -0
  52. package/coverage/lcov-report/builtins/index.ts.html +130 -0
  53. package/coverage/lcov-report/builtins/interpolation/index.html +116 -0
  54. package/coverage/lcov-report/builtins/interpolation/index.ts.html +676 -0
  55. package/coverage/lcov-report/builtins/interpolation/types.ts.html +100 -0
  56. package/coverage/lcov-report/builtins/mock-observations/helpers/common-generator.ts.html +184 -0
  57. package/coverage/lcov-report/builtins/mock-observations/helpers/index.html +131 -0
  58. package/coverage/lcov-report/builtins/mock-observations/helpers/rand-int-generator.ts.html +289 -0
  59. package/coverage/lcov-report/builtins/mock-observations/index.html +116 -0
  60. package/coverage/lcov-report/builtins/mock-observations/index.ts.html +619 -0
  61. package/coverage/lcov-report/builtins/multiply/index.html +116 -0
  62. package/coverage/lcov-report/builtins/multiply/index.ts.html +343 -0
  63. package/coverage/lcov-report/builtins/regex/index.html +116 -0
  64. package/coverage/lcov-report/builtins/regex/index.ts.html +373 -0
  65. package/coverage/lcov-report/builtins/sci/config.ts.html +205 -0
  66. package/coverage/lcov-report/builtins/sci/index.html +116 -0
  67. package/coverage/lcov-report/builtins/sci/index.ts.html +325 -0
  68. package/coverage/lcov-report/builtins/sci-embodied/index.html +116 -0
  69. package/coverage/lcov-report/builtins/sci-embodied/index.ts.html +478 -0
  70. package/coverage/lcov-report/builtins/shell/index.html +116 -0
  71. package/coverage/lcov-report/builtins/shell/index.ts.html +280 -0
  72. package/coverage/lcov-report/builtins/subtract/index.html +116 -0
  73. package/coverage/lcov-report/builtins/subtract/index.ts.html +379 -0
  74. package/coverage/lcov-report/builtins/sum/index.html +116 -0
  75. package/coverage/lcov-report/builtins/sum/index.ts.html +334 -0
  76. package/coverage/lcov-report/builtins/time-sync.ts.html +1462 -0
  77. package/coverage/lcov-report/common/config/index.html +131 -0
  78. package/coverage/lcov-report/common/config/index.ts.html +88 -0
  79. package/coverage/lcov-report/common/config/strings.ts.html +121 -0
  80. package/coverage/lcov-report/common/lib/index.html +116 -0
  81. package/coverage/lcov-report/common/lib/load.ts.html +139 -0
  82. package/coverage/lcov-report/common/util/debug-logger.ts.html +514 -0
  83. package/coverage/lcov-report/common/util/fs.ts.html +289 -0
  84. package/coverage/lcov-report/common/util/helpers.ts.html +355 -0
  85. package/coverage/lcov-report/common/util/index.html +191 -0
  86. package/coverage/lcov-report/common/util/logger.ts.html +151 -0
  87. package/coverage/lcov-report/common/util/validations.ts.html +628 -0
  88. package/coverage/lcov-report/common/util/yaml.ts.html +226 -0
  89. package/coverage/lcov-report/config/config.ts.html +463 -0
  90. package/coverage/lcov-report/config/index.html +161 -0
  91. package/coverage/lcov-report/config/index.ts.html +94 -0
  92. package/coverage/lcov-report/config/params.ts.html +697 -0
  93. package/coverage/lcov-report/config/strings.ts.html +490 -0
  94. package/coverage/lcov-report/favicon.png +0 -0
  95. package/coverage/lcov-report/if-check/config/config.ts.html +184 -0
  96. package/coverage/lcov-report/if-check/config/index.html +146 -0
  97. package/coverage/lcov-report/if-check/config/index.ts.html +91 -0
  98. package/coverage/lcov-report/if-check/config/strings.ts.html +142 -0
  99. package/coverage/lcov-report/if-check/util/args.ts.html +310 -0
  100. package/coverage/lcov-report/if-check/util/helpers.ts.html +136 -0
  101. package/coverage/lcov-report/if-check/util/index.html +146 -0
  102. package/coverage/lcov-report/if-check/util/npm.ts.html +376 -0
  103. package/coverage/lcov-report/if-csv/util/args.ts.html +256 -0
  104. package/coverage/lcov-report/if-csv/util/helpers.ts.html +346 -0
  105. package/coverage/lcov-report/if-csv/util/index.html +131 -0
  106. package/coverage/lcov-report/if-diff/config/config.ts.html +184 -0
  107. package/coverage/lcov-report/if-diff/config/index.html +146 -0
  108. package/coverage/lcov-report/if-diff/config/index.ts.html +91 -0
  109. package/coverage/lcov-report/if-diff/config/strings.ts.html +100 -0
  110. package/coverage/lcov-report/if-diff/lib/compare.ts.html +286 -0
  111. package/coverage/lcov-report/if-diff/lib/index.html +131 -0
  112. package/coverage/lcov-report/if-diff/lib/load.ts.html +199 -0
  113. package/coverage/lcov-report/if-diff/util/args.ts.html +274 -0
  114. package/coverage/lcov-report/if-diff/util/helpers.ts.html +337 -0
  115. package/coverage/lcov-report/if-diff/util/index.html +131 -0
  116. package/coverage/lcov-report/if-env/config/config.ts.html +211 -0
  117. package/coverage/lcov-report/if-env/config/index.html +146 -0
  118. package/coverage/lcov-report/if-env/config/index.ts.html +91 -0
  119. package/coverage/lcov-report/if-env/config/strings.ts.html +109 -0
  120. package/coverage/lcov-report/if-env/util/args.ts.html +256 -0
  121. package/coverage/lcov-report/if-env/util/index.html +131 -0
  122. package/coverage/lcov-report/if-env/util/npm.ts.html +526 -0
  123. package/coverage/lcov-report/if-merge/util/args.ts.html +301 -0
  124. package/coverage/lcov-report/if-merge/util/helpers.ts.html +313 -0
  125. package/coverage/lcov-report/if-merge/util/index.html +131 -0
  126. package/coverage/lcov-report/if-run/builtins/coefficient/index.html +116 -0
  127. package/coverage/lcov-report/if-run/builtins/coefficient/index.ts.html +286 -0
  128. package/coverage/lcov-report/if-run/builtins/copy-param/index.html +116 -0
  129. package/coverage/lcov-report/if-run/builtins/copy-param/index.ts.html +301 -0
  130. package/coverage/lcov-report/if-run/builtins/csv-import/index.html +116 -0
  131. package/coverage/lcov-report/if-run/builtins/csv-import/index.ts.html +364 -0
  132. package/coverage/lcov-report/if-run/builtins/csv-lookup/index.html +116 -0
  133. package/coverage/lcov-report/if-run/builtins/csv-lookup/index.ts.html +478 -0
  134. package/coverage/lcov-report/if-run/builtins/divide/index.html +116 -0
  135. package/coverage/lcov-report/if-run/builtins/divide/index.ts.html +346 -0
  136. package/coverage/lcov-report/if-run/builtins/exponent/index.html +116 -0
  137. package/coverage/lcov-report/if-run/builtins/exponent/index.ts.html +319 -0
  138. package/coverage/lcov-report/if-run/builtins/export-csv-raw.ts.html +553 -0
  139. package/coverage/lcov-report/if-run/builtins/export-csv.ts.html +436 -0
  140. package/coverage/lcov-report/if-run/builtins/export-log.ts.html +148 -0
  141. package/coverage/lcov-report/if-run/builtins/export-yaml.ts.html +193 -0
  142. package/coverage/lcov-report/if-run/builtins/group-by.ts.html +370 -0
  143. package/coverage/lcov-report/if-run/builtins/index.html +146 -0
  144. package/coverage/lcov-report/if-run/builtins/index.ts.html +136 -0
  145. package/coverage/lcov-report/if-run/builtins/interpolation/index.html +116 -0
  146. package/coverage/lcov-report/if-run/builtins/interpolation/index.ts.html +643 -0
  147. package/coverage/lcov-report/if-run/builtins/mock-observations/helpers/common-generator.ts.html +184 -0
  148. package/coverage/lcov-report/if-run/builtins/mock-observations/helpers/index.html +131 -0
  149. package/coverage/lcov-report/if-run/builtins/mock-observations/helpers/rand-int-generator.ts.html +289 -0
  150. package/coverage/lcov-report/if-run/builtins/mock-observations/index.html +116 -0
  151. package/coverage/lcov-report/if-run/builtins/mock-observations/index.ts.html +607 -0
  152. package/coverage/lcov-report/if-run/builtins/multiply/index.html +116 -0
  153. package/coverage/lcov-report/if-run/builtins/multiply/index.ts.html +289 -0
  154. package/coverage/lcov-report/if-run/builtins/regex/index.html +116 -0
  155. package/coverage/lcov-report/if-run/builtins/regex/index.ts.html +298 -0
  156. package/coverage/lcov-report/if-run/builtins/sci/index.html +116 -0
  157. package/coverage/lcov-report/if-run/builtins/sci/index.ts.html +418 -0
  158. package/coverage/lcov-report/if-run/builtins/sci-embodied/index.html +116 -0
  159. package/coverage/lcov-report/if-run/builtins/sci-embodied/index.ts.html +664 -0
  160. package/coverage/lcov-report/if-run/builtins/shell/index.html +116 -0
  161. package/coverage/lcov-report/if-run/builtins/shell/index.ts.html +256 -0
  162. package/coverage/lcov-report/if-run/builtins/subtract/index.html +116 -0
  163. package/coverage/lcov-report/if-run/builtins/subtract/index.ts.html +298 -0
  164. package/coverage/lcov-report/if-run/builtins/sum/index.html +116 -0
  165. package/coverage/lcov-report/if-run/builtins/sum/index.ts.html +238 -0
  166. package/coverage/lcov-report/if-run/builtins/time-converter/config.ts.html +205 -0
  167. package/coverage/lcov-report/if-run/builtins/time-converter/index.html +131 -0
  168. package/coverage/lcov-report/if-run/builtins/time-converter/index.ts.html +328 -0
  169. package/coverage/lcov-report/if-run/builtins/time-sync/index.html +116 -0
  170. package/coverage/lcov-report/if-run/builtins/time-sync/index.ts.html +1804 -0
  171. package/coverage/lcov-report/if-run/builtins/time-sync.ts.html +1462 -0
  172. package/coverage/lcov-report/if-run/builtins/util/csv-helpers.ts.html +376 -0
  173. package/coverage/lcov-report/if-run/builtins/util/index.html +116 -0
  174. package/coverage/lcov-report/if-run/config/config.ts.html +271 -0
  175. package/coverage/lcov-report/if-run/config/index.html +161 -0
  176. package/coverage/lcov-report/if-run/config/index.ts.html +94 -0
  177. package/coverage/lcov-report/if-run/config/params.ts.html +679 -0
  178. package/coverage/lcov-report/if-run/config/strings.ts.html +460 -0
  179. package/coverage/lcov-report/if-run/lib/aggregate.ts.html +577 -0
  180. package/coverage/lcov-report/if-run/lib/compute.ts.html +733 -0
  181. package/coverage/lcov-report/if-run/lib/environment.ts.html +373 -0
  182. package/coverage/lcov-report/if-run/lib/exhaust.ts.html +193 -0
  183. package/coverage/lcov-report/if-run/lib/explain.ts.html +484 -0
  184. package/coverage/lcov-report/if-run/lib/index.html +206 -0
  185. package/coverage/lcov-report/if-run/lib/initialize.ts.html +490 -0
  186. package/coverage/lcov-report/if-run/lib/parameterize.ts.html +322 -0
  187. package/coverage/lcov-report/if-run/lib/regroup.ts.html +349 -0
  188. package/coverage/lcov-report/if-run/lib/time-sync.ts.html +1510 -0
  189. package/coverage/lcov-report/if-run/types/aggregation.ts.html +94 -0
  190. package/coverage/lcov-report/if-run/types/index.html +146 -0
  191. package/coverage/lcov-report/if-run/types/interface.ts.html +112 -0
  192. package/coverage/lcov-report/if-run/types/parameters.ts.html +106 -0
  193. package/coverage/lcov-report/if-run/util/aggregation-helper.ts.html +277 -0
  194. package/coverage/lcov-report/if-run/util/args.ts.html +325 -0
  195. package/coverage/lcov-report/if-run/util/helpers.ts.html +208 -0
  196. package/coverage/lcov-report/if-run/util/index.html +191 -0
  197. package/coverage/lcov-report/if-run/util/json.ts.html +115 -0
  198. package/coverage/lcov-report/if-run/util/log-memoize.ts.html +145 -0
  199. package/coverage/lcov-report/if-run/util/os-checker.ts.html +421 -0
  200. package/coverage/lcov-report/if-run/util/plugin-storage.ts.html +202 -0
  201. package/coverage/lcov-report/index.html +551 -0
  202. package/coverage/lcov-report/lib/aggregate.ts.html +358 -0
  203. package/coverage/lcov-report/lib/compare.ts.html +286 -0
  204. package/coverage/lcov-report/lib/compute.ts.html +436 -0
  205. package/coverage/lcov-report/lib/environment.ts.html +376 -0
  206. package/coverage/lcov-report/lib/exhaust.ts.html +289 -0
  207. package/coverage/lcov-report/lib/index.html +221 -0
  208. package/coverage/lcov-report/lib/initialize.ts.html +430 -0
  209. package/coverage/lcov-report/lib/load.ts.html +268 -0
  210. package/coverage/lcov-report/lib/parameterize.ts.html +316 -0
  211. package/coverage/lcov-report/prettify.css +1 -0
  212. package/coverage/lcov-report/prettify.js +2 -0
  213. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  214. package/coverage/lcov-report/sorter.js +196 -0
  215. package/coverage/lcov-report/types/aggregation.ts.html +94 -0
  216. package/coverage/lcov-report/types/index.html +146 -0
  217. package/coverage/lcov-report/types/interface.ts.html +112 -0
  218. package/coverage/lcov-report/types/parameters.ts.html +106 -0
  219. package/coverage/lcov-report/util/aggregation-helper.ts.html +289 -0
  220. package/coverage/lcov-report/util/args.ts.html +649 -0
  221. package/coverage/lcov-report/util/debug-logger.ts.html +481 -0
  222. package/coverage/lcov-report/util/errors.ts.html +232 -0
  223. package/coverage/lcov-report/util/fs.ts.html +124 -0
  224. package/coverage/lcov-report/util/helpers.ts.html +895 -0
  225. package/coverage/lcov-report/util/index.html +296 -0
  226. package/coverage/lcov-report/util/json.ts.html +115 -0
  227. package/coverage/lcov-report/util/log-memoize.ts.html +145 -0
  228. package/coverage/lcov-report/util/logger.ts.html +151 -0
  229. package/coverage/lcov-report/util/npm.ts.html +499 -0
  230. package/coverage/lcov-report/util/os-checker.ts.html +421 -0
  231. package/coverage/lcov-report/util/plugin-storage.ts.html +202 -0
  232. package/coverage/lcov-report/util/validations.ts.html +544 -0
  233. package/coverage/lcov-report/util/yaml.ts.html +193 -0
  234. package/coverage/lcov.info +3548 -0
  235. package/manifests/examples/builtins/csv-import/success.yaml +22 -0
  236. package/manifests/examples/builtins/csv-import/test.csv +4 -0
  237. package/manifests/outputs/builtins/csv-import/success.yaml +84 -0
  238. package/manifests/regroup.yml +49 -0
  239. package/manifests/test.yml +524 -0
  240. package/package.json +1 -1
  241. package/src/if-run/builtins/csv-import/README.md +190 -0
  242. package/src/if-run/builtins/csv-lookup/README.md +7 -7
  243. package/manifests/outputs/bugs/package.json +0 -24
  244. package/manifests/outputs/builtins/coefficient/package.json +0 -24
  245. package/manifests/outputs/builtins/csv-lookup/cloud-metadata/package.json +0 -24
  246. package/manifests/outputs/builtins/csv-lookup/region-metadata/package.json +0 -24
  247. package/manifests/outputs/builtins/csv-lookup/tdp-finder/package.json +0 -24
  248. package/manifests/outputs/builtins/divide/package.json +0 -24
  249. package/manifests/outputs/builtins/exponent/package.json +0 -24
  250. package/manifests/outputs/builtins/interpolation/package.json +0 -24
  251. package/manifests/outputs/builtins/mock-observations/package.json +0 -24
  252. package/manifests/outputs/builtins/multiply/package.json +0 -24
  253. package/manifests/outputs/builtins/regex/package.json +0 -24
  254. package/manifests/outputs/builtins/sci/package.json +0 -24
  255. package/manifests/outputs/builtins/sci-embodied/package.json +0 -24
  256. package/manifests/outputs/builtins/shell/package.json +0 -24
  257. package/manifests/outputs/builtins/subtract/package.json +0 -24
  258. package/manifests/outputs/builtins/sum/package.json +0 -24
  259. package/manifests/outputs/builtins/time-converter/package.json +0 -24
  260. package/manifests/outputs/builtins/time-sync/package.json +0 -24
  261. package/manifests/outputs/features/package.json +0 -24
  262. package/manifests/outputs/features/regroup/package.json +0 -24
  263. package/manifests/outputs/pipelines/package.json +0 -24
@@ -0,0 +1,224 @@
1
+ body, html {
2
+ margin:0; padding: 0;
3
+ height: 100%;
4
+ }
5
+ body {
6
+ font-family: Helvetica Neue, Helvetica, Arial;
7
+ font-size: 14px;
8
+ color:#333;
9
+ }
10
+ .small { font-size: 12px; }
11
+ *, *:after, *:before {
12
+ -webkit-box-sizing:border-box;
13
+ -moz-box-sizing:border-box;
14
+ box-sizing:border-box;
15
+ }
16
+ h1 { font-size: 20px; margin: 0;}
17
+ h2 { font-size: 14px; }
18
+ pre {
19
+ font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace;
20
+ margin: 0;
21
+ padding: 0;
22
+ -moz-tab-size: 2;
23
+ -o-tab-size: 2;
24
+ tab-size: 2;
25
+ }
26
+ a { color:#0074D9; text-decoration:none; }
27
+ a:hover { text-decoration:underline; }
28
+ .strong { font-weight: bold; }
29
+ .space-top1 { padding: 10px 0 0 0; }
30
+ .pad2y { padding: 20px 0; }
31
+ .pad1y { padding: 10px 0; }
32
+ .pad2x { padding: 0 20px; }
33
+ .pad2 { padding: 20px; }
34
+ .pad1 { padding: 10px; }
35
+ .space-left2 { padding-left:55px; }
36
+ .space-right2 { padding-right:20px; }
37
+ .center { text-align:center; }
38
+ .clearfix { display:block; }
39
+ .clearfix:after {
40
+ content:'';
41
+ display:block;
42
+ height:0;
43
+ clear:both;
44
+ visibility:hidden;
45
+ }
46
+ .fl { float: left; }
47
+ @media only screen and (max-width:640px) {
48
+ .col3 { width:100%; max-width:100%; }
49
+ .hide-mobile { display:none!important; }
50
+ }
51
+
52
+ .quiet {
53
+ color: #7f7f7f;
54
+ color: rgba(0,0,0,0.5);
55
+ }
56
+ .quiet a { opacity: 0.7; }
57
+
58
+ .fraction {
59
+ font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
60
+ font-size: 10px;
61
+ color: #555;
62
+ background: #E8E8E8;
63
+ padding: 4px 5px;
64
+ border-radius: 3px;
65
+ vertical-align: middle;
66
+ }
67
+
68
+ div.path a:link, div.path a:visited { color: #333; }
69
+ table.coverage {
70
+ border-collapse: collapse;
71
+ margin: 10px 0 0 0;
72
+ padding: 0;
73
+ }
74
+
75
+ table.coverage td {
76
+ margin: 0;
77
+ padding: 0;
78
+ vertical-align: top;
79
+ }
80
+ table.coverage td.line-count {
81
+ text-align: right;
82
+ padding: 0 5px 0 20px;
83
+ }
84
+ table.coverage td.line-coverage {
85
+ text-align: right;
86
+ padding-right: 10px;
87
+ min-width:20px;
88
+ }
89
+
90
+ table.coverage td span.cline-any {
91
+ display: inline-block;
92
+ padding: 0 5px;
93
+ width: 100%;
94
+ }
95
+ .missing-if-branch {
96
+ display: inline-block;
97
+ margin-right: 5px;
98
+ border-radius: 3px;
99
+ position: relative;
100
+ padding: 0 4px;
101
+ background: #333;
102
+ color: yellow;
103
+ }
104
+
105
+ .skip-if-branch {
106
+ display: none;
107
+ margin-right: 10px;
108
+ position: relative;
109
+ padding: 0 4px;
110
+ background: #ccc;
111
+ color: white;
112
+ }
113
+ .missing-if-branch .typ, .skip-if-branch .typ {
114
+ color: inherit !important;
115
+ }
116
+ .coverage-summary {
117
+ border-collapse: collapse;
118
+ width: 100%;
119
+ }
120
+ .coverage-summary tr { border-bottom: 1px solid #bbb; }
121
+ .keyline-all { border: 1px solid #ddd; }
122
+ .coverage-summary td, .coverage-summary th { padding: 10px; }
123
+ .coverage-summary tbody { border: 1px solid #bbb; }
124
+ .coverage-summary td { border-right: 1px solid #bbb; }
125
+ .coverage-summary td:last-child { border-right: none; }
126
+ .coverage-summary th {
127
+ text-align: left;
128
+ font-weight: normal;
129
+ white-space: nowrap;
130
+ }
131
+ .coverage-summary th.file { border-right: none !important; }
132
+ .coverage-summary th.pct { }
133
+ .coverage-summary th.pic,
134
+ .coverage-summary th.abs,
135
+ .coverage-summary td.pct,
136
+ .coverage-summary td.abs { text-align: right; }
137
+ .coverage-summary td.file { white-space: nowrap; }
138
+ .coverage-summary td.pic { min-width: 120px !important; }
139
+ .coverage-summary tfoot td { }
140
+
141
+ .coverage-summary .sorter {
142
+ height: 10px;
143
+ width: 7px;
144
+ display: inline-block;
145
+ margin-left: 0.5em;
146
+ background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent;
147
+ }
148
+ .coverage-summary .sorted .sorter {
149
+ background-position: 0 -20px;
150
+ }
151
+ .coverage-summary .sorted-desc .sorter {
152
+ background-position: 0 -10px;
153
+ }
154
+ .status-line { height: 10px; }
155
+ /* yellow */
156
+ .cbranch-no { background: yellow !important; color: #111; }
157
+ /* dark red */
158
+ .red.solid, .status-line.low, .low .cover-fill { background:#C21F39 }
159
+ .low .chart { border:1px solid #C21F39 }
160
+ .highlighted,
161
+ .highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{
162
+ background: #C21F39 !important;
163
+ }
164
+ /* medium red */
165
+ .cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE }
166
+ /* light red */
167
+ .low, .cline-no { background:#FCE1E5 }
168
+ /* light green */
169
+ .high, .cline-yes { background:rgb(230,245,208) }
170
+ /* medium green */
171
+ .cstat-yes { background:rgb(161,215,106) }
172
+ /* dark green */
173
+ .status-line.high, .high .cover-fill { background:rgb(77,146,33) }
174
+ .high .chart { border:1px solid rgb(77,146,33) }
175
+ /* dark yellow (gold) */
176
+ .status-line.medium, .medium .cover-fill { background: #f9cd0b; }
177
+ .medium .chart { border:1px solid #f9cd0b; }
178
+ /* light yellow */
179
+ .medium { background: #fff4c2; }
180
+
181
+ .cstat-skip { background: #ddd; color: #111; }
182
+ .fstat-skip { background: #ddd; color: #111 !important; }
183
+ .cbranch-skip { background: #ddd !important; color: #111; }
184
+
185
+ span.cline-neutral { background: #eaeaea; }
186
+
187
+ .coverage-summary td.empty {
188
+ opacity: .5;
189
+ padding-top: 4px;
190
+ padding-bottom: 4px;
191
+ line-height: 1;
192
+ color: #888;
193
+ }
194
+
195
+ .cover-fill, .cover-empty {
196
+ display:inline-block;
197
+ height: 12px;
198
+ }
199
+ .chart {
200
+ line-height: 0;
201
+ }
202
+ .cover-empty {
203
+ background: white;
204
+ }
205
+ .cover-full {
206
+ border-right: none !important;
207
+ }
208
+ pre.prettyprint {
209
+ border: none !important;
210
+ padding: 0 !important;
211
+ margin: 0 !important;
212
+ }
213
+ .com { color: #999 !important; }
214
+ .ignore-none { color: #999; font-weight: normal; }
215
+
216
+ .wrapper {
217
+ min-height: 100%;
218
+ height: auto !important;
219
+ height: 100%;
220
+ margin: 0 auto -48px;
221
+ }
222
+ .footer, .push {
223
+ height: 48px;
224
+ }
@@ -0,0 +1,87 @@
1
+ /* eslint-disable */
2
+ var jumpToCode = (function init() {
3
+ // Classes of code we would like to highlight in the file view
4
+ var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no'];
5
+
6
+ // Elements to highlight in the file listing view
7
+ var fileListingElements = ['td.pct.low'];
8
+
9
+ // We don't want to select elements that are direct descendants of another match
10
+ var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > `
11
+
12
+ // Selecter that finds elements on the page to which we can jump
13
+ var selector =
14
+ fileListingElements.join(', ') +
15
+ ', ' +
16
+ notSelector +
17
+ missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b`
18
+
19
+ // The NodeList of matching elements
20
+ var missingCoverageElements = document.querySelectorAll(selector);
21
+
22
+ var currentIndex;
23
+
24
+ function toggleClass(index) {
25
+ missingCoverageElements
26
+ .item(currentIndex)
27
+ .classList.remove('highlighted');
28
+ missingCoverageElements.item(index).classList.add('highlighted');
29
+ }
30
+
31
+ function makeCurrent(index) {
32
+ toggleClass(index);
33
+ currentIndex = index;
34
+ missingCoverageElements.item(index).scrollIntoView({
35
+ behavior: 'smooth',
36
+ block: 'center',
37
+ inline: 'center'
38
+ });
39
+ }
40
+
41
+ function goToPrevious() {
42
+ var nextIndex = 0;
43
+ if (typeof currentIndex !== 'number' || currentIndex === 0) {
44
+ nextIndex = missingCoverageElements.length - 1;
45
+ } else if (missingCoverageElements.length > 1) {
46
+ nextIndex = currentIndex - 1;
47
+ }
48
+
49
+ makeCurrent(nextIndex);
50
+ }
51
+
52
+ function goToNext() {
53
+ var nextIndex = 0;
54
+
55
+ if (
56
+ typeof currentIndex === 'number' &&
57
+ currentIndex < missingCoverageElements.length - 1
58
+ ) {
59
+ nextIndex = currentIndex + 1;
60
+ }
61
+
62
+ makeCurrent(nextIndex);
63
+ }
64
+
65
+ return function jump(event) {
66
+ if (
67
+ document.getElementById('fileSearch') === document.activeElement &&
68
+ document.activeElement != null
69
+ ) {
70
+ // if we're currently focused on the search input, we don't want to navigate
71
+ return;
72
+ }
73
+
74
+ switch (event.which) {
75
+ case 78: // n
76
+ case 74: // j
77
+ goToNext();
78
+ break;
79
+ case 66: // b
80
+ case 75: // k
81
+ case 80: // p
82
+ goToPrevious();
83
+ break;
84
+ }
85
+ };
86
+ })();
87
+ window.addEventListener('keydown', jumpToCode);
@@ -0,0 +1,116 @@
1
+
2
+ <!doctype html>
3
+ <html lang="en">
4
+
5
+ <head>
6
+ <title>Code coverage report for builtins/coefficient</title>
7
+ <meta charset="utf-8" />
8
+ <link rel="stylesheet" href="../../prettify.css" />
9
+ <link rel="stylesheet" href="../../base.css" />
10
+ <link rel="shortcut icon" type="image/x-icon" href="../../favicon.png" />
11
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
12
+ <style type='text/css'>
13
+ .coverage-summary .sorter {
14
+ background-image: url(../../sort-arrow-sprite.png);
15
+ }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <div class='wrapper'>
21
+ <div class='pad1'>
22
+ <h1><a href="../../index.html">All files</a> builtins/coefficient</h1>
23
+ <div class='clearfix'>
24
+
25
+ <div class='fl pad1y space-right2'>
26
+ <span class="strong">100% </span>
27
+ <span class="quiet">Statements</span>
28
+ <span class='fraction'>24/24</span>
29
+ </div>
30
+
31
+
32
+ <div class='fl pad1y space-right2'>
33
+ <span class="strong">100% </span>
34
+ <span class="quiet">Branches</span>
35
+ <span class='fraction'>1/1</span>
36
+ </div>
37
+
38
+
39
+ <div class='fl pad1y space-right2'>
40
+ <span class="strong">100% </span>
41
+ <span class="quiet">Functions</span>
42
+ <span class='fraction'>5/5</span>
43
+ </div>
44
+
45
+
46
+ <div class='fl pad1y space-right2'>
47
+ <span class="strong">100% </span>
48
+ <span class="quiet">Lines</span>
49
+ <span class='fraction'>23/23</span>
50
+ </div>
51
+
52
+
53
+ </div>
54
+ <p class="quiet">
55
+ Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
56
+ </p>
57
+ <template id="filterTemplate">
58
+ <div class="quiet">
59
+ Filter:
60
+ <input oninput="onInput()" type="search" id="fileSearch">
61
+ </div>
62
+ </template>
63
+ </div>
64
+ <div class='status-line high'></div>
65
+ <div class="pad1">
66
+ <table class="coverage-summary">
67
+ <thead>
68
+ <tr>
69
+ <th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
70
+ <th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
71
+ <th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
72
+ <th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
73
+ <th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
74
+ <th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
75
+ <th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
76
+ <th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
77
+ <th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
78
+ <th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
79
+ </tr>
80
+ </thead>
81
+ <tbody><tr>
82
+ <td class="file high" data-value="index.ts"><a href="index.ts.html">index.ts</a></td>
83
+ <td data-value="100" class="pic high">
84
+ <div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
85
+ </td>
86
+ <td data-value="100" class="pct high">100%</td>
87
+ <td data-value="24" class="abs high">24/24</td>
88
+ <td data-value="100" class="pct high">100%</td>
89
+ <td data-value="1" class="abs high">1/1</td>
90
+ <td data-value="100" class="pct high">100%</td>
91
+ <td data-value="5" class="abs high">5/5</td>
92
+ <td data-value="100" class="pct high">100%</td>
93
+ <td data-value="23" class="abs high">23/23</td>
94
+ </tr>
95
+
96
+ </tbody>
97
+ </table>
98
+ </div>
99
+ <div class='push'></div><!-- for sticky footer -->
100
+ </div><!-- /wrapper -->
101
+ <div class='footer quiet pad2 space-top1 center small'>
102
+ Code coverage generated by
103
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
104
+ at 2024-06-25T13:39:04.332Z
105
+ </div>
106
+ <script src="../../prettify.js"></script>
107
+ <script>
108
+ window.onload = function () {
109
+ prettyPrint();
110
+ };
111
+ </script>
112
+ <script src="../../sorter.js"></script>
113
+ <script src="../../block-navigation.js"></script>
114
+ </body>
115
+ </html>
116
+