covsight-core 0.1.2__tar.gz

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 (473) hide show
  1. covsight_core-0.1.2/.github/workflows/ci.yml +102 -0
  2. covsight_core-0.1.2/.github/workflows/publish.yml +156 -0
  3. covsight_core-0.1.2/.gitignore +18 -0
  4. covsight_core-0.1.2/LICENSE +201 -0
  5. covsight_core-0.1.2/PKG-INFO +25 -0
  6. covsight_core-0.1.2/README.md +1 -0
  7. covsight_core-0.1.2/c/CMakeLists.txt +58 -0
  8. covsight_core-0.1.2/c/README.md +11 -0
  9. covsight_core-0.1.2/c/include/ncdb/ncdb.h +189 -0
  10. covsight_core-0.1.2/c/include/ncdb/ncdb_props.h +76 -0
  11. covsight_core-0.1.2/c/include/ncdb/ncdb_types.h +186 -0
  12. covsight_core-0.1.2/c/src/ncdb_attrs.c +524 -0
  13. covsight_core-0.1.2/c/src/ncdb_attrs.h +6 -0
  14. covsight_core-0.1.2/c/src/ncdb_counts.c +96 -0
  15. covsight_core-0.1.2/c/src/ncdb_counts.h +6 -0
  16. covsight_core-0.1.2/c/src/ncdb_cross.c +194 -0
  17. covsight_core-0.1.2/c/src/ncdb_cross.h +9 -0
  18. covsight_core-0.1.2/c/src/ncdb_db.c +986 -0
  19. covsight_core-0.1.2/c/src/ncdb_formal.c +307 -0
  20. covsight_core-0.1.2/c/src/ncdb_fsm.c +139 -0
  21. covsight_core-0.1.2/c/src/ncdb_fsm.h +6 -0
  22. covsight_core-0.1.2/c/src/ncdb_history.c +219 -0
  23. covsight_core-0.1.2/c/src/ncdb_history.h +6 -0
  24. covsight_core-0.1.2/c/src/ncdb_impl.h +508 -0
  25. covsight_core-0.1.2/c/src/ncdb_issues.c +753 -0
  26. covsight_core-0.1.2/c/src/ncdb_issues.h +57 -0
  27. covsight_core-0.1.2/c/src/ncdb_manifest.c +375 -0
  28. covsight_core-0.1.2/c/src/ncdb_manifest.h +56 -0
  29. covsight_core-0.1.2/c/src/ncdb_metric.c +160 -0
  30. covsight_core-0.1.2/c/src/ncdb_props.c +294 -0
  31. covsight_core-0.1.2/c/src/ncdb_scope_tree.c +597 -0
  32. covsight_core-0.1.2/c/src/ncdb_scope_tree.h +6 -0
  33. covsight_core-0.1.2/c/src/ncdb_sources.c +95 -0
  34. covsight_core-0.1.2/c/src/ncdb_sources.h +6 -0
  35. covsight_core-0.1.2/c/src/ncdb_strings.c +108 -0
  36. covsight_core-0.1.2/c/src/ncdb_strings.h +6 -0
  37. covsight_core-0.1.2/c/src/ncdb_tags.c +108 -0
  38. covsight_core-0.1.2/c/src/ncdb_tests_assoc.c +518 -0
  39. covsight_core-0.1.2/c/src/ncdb_toggle.c +144 -0
  40. covsight_core-0.1.2/c/src/ncdb_toggle.h +6 -0
  41. covsight_core-0.1.2/c/src/ncdb_unique_id.c +354 -0
  42. covsight_core-0.1.2/c/src/ncdb_varint.c +53 -0
  43. covsight_core-0.1.2/c/src/ncdb_varint.h +6 -0
  44. covsight_core-0.1.2/c/src/ncdb_zip.c +122 -0
  45. covsight_core-0.1.2/c/src/ncdb_zip.h +6 -0
  46. covsight_core-0.1.2/c/tests/CMakeLists.txt +127 -0
  47. covsight_core-0.1.2/c/tests/test_attrs.c +126 -0
  48. covsight_core-0.1.2/c/tests/test_counts.c +42 -0
  49. covsight_core-0.1.2/c/tests/test_cover_fields.c +60 -0
  50. covsight_core-0.1.2/c/tests/test_covergroup.c +65 -0
  51. covsight_core-0.1.2/c/tests/test_du_files.c +49 -0
  52. covsight_core-0.1.2/c/tests/test_du_link.c +59 -0
  53. covsight_core-0.1.2/c/tests/test_fsm.c +47 -0
  54. covsight_core-0.1.2/c/tests/test_history_tree.c +56 -0
  55. covsight_core-0.1.2/c/tests/test_issues.c +187 -0
  56. covsight_core-0.1.2/c/tests/test_manifest_v4.c +138 -0
  57. covsight_core-0.1.2/c/tests/test_manifest_vendor.c +33 -0
  58. covsight_core-0.1.2/c/tests/test_metrics.c +85 -0
  59. covsight_core-0.1.2/c/tests/test_migration.c +57 -0
  60. covsight_core-0.1.2/c/tests/test_roundtrip.c +60 -0
  61. covsight_core-0.1.2/c/tests/test_scope_trailer.c +117 -0
  62. covsight_core-0.1.2/c/tests/test_strings.c +29 -0
  63. covsight_core-0.1.2/c/tests/test_tags.c +42 -0
  64. covsight_core-0.1.2/c/tests/test_tests_assoc.c +160 -0
  65. covsight_core-0.1.2/c/tests/test_toggle.c +50 -0
  66. covsight_core-0.1.2/c/tests/test_v3_to_v4_migration.c +161 -0
  67. covsight_core-0.1.2/c/tests/test_v4_benchmark.c +232 -0
  68. covsight_core-0.1.2/c/tests/test_varint.c +24 -0
  69. covsight_core-0.1.2/c/tests/unity.h +13 -0
  70. covsight_core-0.1.2/c/ucis/CMakeLists.txt +20 -0
  71. covsight_core-0.1.2/c/ucis/include/ucis.h +722 -0
  72. covsight_core-0.1.2/c/ucis/src/ucis_cover.c +118 -0
  73. covsight_core-0.1.2/c/ucis/src/ucis_covergroup.c +89 -0
  74. covsight_core-0.1.2/c/ucis/src/ucis_filehandle.c +89 -0
  75. covsight_core-0.1.2/c/ucis/src/ucis_formal.c +58 -0
  76. covsight_core-0.1.2/c/ucis/src/ucis_history.c +84 -0
  77. covsight_core-0.1.2/c/ucis/src/ucis_internal.h +49 -0
  78. covsight_core-0.1.2/c/ucis/src/ucis_lifecycle.c +156 -0
  79. covsight_core-0.1.2/c/ucis/src/ucis_property.c +495 -0
  80. covsight_core-0.1.2/c/ucis/src/ucis_scope.c +312 -0
  81. covsight_core-0.1.2/c/ucis/tests/CMakeLists.txt +61 -0
  82. covsight_core-0.1.2/c/ucis/tests/test_ucis_cover.c +194 -0
  83. covsight_core-0.1.2/c/ucis/tests/test_ucis_covergroup.c +150 -0
  84. covsight_core-0.1.2/c/ucis/tests/test_ucis_formal.c +147 -0
  85. covsight_core-0.1.2/c/ucis/tests/test_ucis_header.c +78 -0
  86. covsight_core-0.1.2/c/ucis/tests/test_ucis_increment.c +147 -0
  87. covsight_core-0.1.2/c/ucis/tests/test_ucis_lifecycle.c +134 -0
  88. covsight_core-0.1.2/c/ucis/tests/test_ucis_property.c +214 -0
  89. covsight_core-0.1.2/c/ucis/tests/test_ucis_props.c +198 -0
  90. covsight_core-0.1.2/c/ucis/tests/test_ucis_r7_assertion.c +190 -0
  91. covsight_core-0.1.2/c/ucis/tests/test_ucis_scope.c +163 -0
  92. covsight_core-0.1.2/c/ucis/tests/test_ucis_srcinfo.c +139 -0
  93. covsight_core-0.1.2/c/ucis/tests/test_ucis_testdata.c +110 -0
  94. covsight_core-0.1.2/c/ucis/tests/test_ucis_unique_id.c +126 -0
  95. covsight_core-0.1.2/docs/Makefile +15 -0
  96. covsight_core-0.1.2/docs/patches/sphinx-js-bigint.patch +11 -0
  97. covsight_core-0.1.2/docs/requirements.txt +3 -0
  98. covsight_core-0.1.2/docs/source/conf.py +55 -0
  99. covsight_core-0.1.2/docs/source/getting-started/quickstart.rst +159 -0
  100. covsight_core-0.1.2/docs/source/getting-started/testplans.rst +220 -0
  101. covsight_core-0.1.2/docs/source/index.rst +45 -0
  102. covsight_core-0.1.2/docs/source/reference/c-api/functions.rst +254 -0
  103. covsight_core-0.1.2/docs/source/reference/c-api/index.rst +19 -0
  104. covsight_core-0.1.2/docs/source/reference/c-api/types.rst +210 -0
  105. covsight_core-0.1.2/docs/source/reference/formats/index.rst +8 -0
  106. covsight_core-0.1.2/docs/source/reference/formats/ncdb.rst +619 -0
  107. covsight_core-0.1.2/docs/source/reference/formats/testplan.rst +393 -0
  108. covsight_core-0.1.2/docs/source/reference/index.rst +36 -0
  109. covsight_core-0.1.2/docs/source/reference/migration.rst +225 -0
  110. covsight_core-0.1.2/docs/source/reference/python-api/index.rst +18 -0
  111. covsight_core-0.1.2/docs/source/reference/python-api/mem-backend.rst +105 -0
  112. covsight_core-0.1.2/docs/source/reference/python-api/ncdb.rst +115 -0
  113. covsight_core-0.1.2/docs/source/reference/python-api/oo-api.rst +477 -0
  114. covsight_core-0.1.2/docs/source/reference/python-api/utilities.rst +154 -0
  115. covsight_core-0.1.2/docs/source/reference/typescript-api/api.rst +84 -0
  116. covsight_core-0.1.2/docs/source/reference/typescript-api/ext.rst +20 -0
  117. covsight_core-0.1.2/docs/source/reference/typescript-api/index.rst +15 -0
  118. covsight_core-0.1.2/docs/source/reference/typescript-api/mem.rst +38 -0
  119. covsight_core-0.1.2/docs/source/reference/typescript-api/ncdb.rst +104 -0
  120. covsight_core-0.1.2/docs/source/reference/typescript-api/visitors.rst +15 -0
  121. covsight_core-0.1.2/ivpm.yaml +18 -0
  122. covsight_core-0.1.2/pyproject.toml +43 -0
  123. covsight_core-0.1.2/python/covsight/core/__init__.py +13 -0
  124. covsight_core-0.1.2/python/covsight/core/api/__init__.py +32 -0
  125. covsight_core-0.1.2/python/covsight/core/api/cov_scope.py +70 -0
  126. covsight_core-0.1.2/python/covsight/core/api/cover_data.py +88 -0
  127. covsight_core-0.1.2/python/covsight/core/api/cover_index.py +157 -0
  128. covsight_core-0.1.2/python/covsight/core/api/cover_instance.py +79 -0
  129. covsight_core-0.1.2/python/covsight/core/api/cover_item.py +99 -0
  130. covsight_core-0.1.2/python/covsight/core/api/cover_type.py +124 -0
  131. covsight_core-0.1.2/python/covsight/core/api/covergroup.py +350 -0
  132. covsight_core-0.1.2/python/covsight/core/api/coverpoint.py +181 -0
  133. covsight_core-0.1.2/python/covsight/core/api/cross.py +125 -0
  134. covsight_core-0.1.2/python/covsight/core/api/cvg_bin_scope.py +57 -0
  135. covsight_core-0.1.2/python/covsight/core/api/cvg_scope.py +319 -0
  136. covsight_core-0.1.2/python/covsight/core/api/du_name.py +103 -0
  137. covsight_core-0.1.2/python/covsight/core/api/du_scope.py +140 -0
  138. covsight_core-0.1.2/python/covsight/core/api/enums/__init__.py +13 -0
  139. covsight_core-0.1.2/python/covsight/core/api/enums/cover_flags.py +74 -0
  140. covsight_core-0.1.2/python/covsight/core/api/enums/cover_type.py +126 -0
  141. covsight_core-0.1.2/python/covsight/core/api/enums/flags.py +127 -0
  142. covsight_core-0.1.2/python/covsight/core/api/enums/formal_status.py +13 -0
  143. covsight_core-0.1.2/python/covsight/core/api/enums/handle_property.py +66 -0
  144. covsight_core-0.1.2/python/covsight/core/api/enums/history_node_kind.py +108 -0
  145. covsight_core-0.1.2/python/covsight/core/api/enums/int_property.py +160 -0
  146. covsight_core-0.1.2/python/covsight/core/api/enums/real_property.py +65 -0
  147. covsight_core-0.1.2/python/covsight/core/api/enums/scope_type.py +195 -0
  148. covsight_core-0.1.2/python/covsight/core/api/enums/source.py +85 -0
  149. covsight_core-0.1.2/python/covsight/core/api/enums/str_property.py +167 -0
  150. covsight_core-0.1.2/python/covsight/core/api/enums/test_status.py +118 -0
  151. covsight_core-0.1.2/python/covsight/core/api/enums/toggle.py +174 -0
  152. covsight_core-0.1.2/python/covsight/core/api/file_handle.py +88 -0
  153. covsight_core-0.1.2/python/covsight/core/api/func_cov_scope.py +61 -0
  154. covsight_core-0.1.2/python/covsight/core/api/history_node.py +274 -0
  155. covsight_core-0.1.2/python/covsight/core/api/ignore_bin_scope.py +69 -0
  156. covsight_core-0.1.2/python/covsight/core/api/illegal_bin_scope.py +75 -0
  157. covsight_core-0.1.2/python/covsight/core/api/instance_coverage.py +119 -0
  158. covsight_core-0.1.2/python/covsight/core/api/instance_scope.py +146 -0
  159. covsight_core-0.1.2/python/covsight/core/api/name_value.py +76 -0
  160. covsight_core-0.1.2/python/covsight/core/api/obj.py +422 -0
  161. covsight_core-0.1.2/python/covsight/core/api/scope.py +717 -0
  162. covsight_core-0.1.2/python/covsight/core/api/source_file.py +68 -0
  163. covsight_core-0.1.2/python/covsight/core/api/source_info.py +90 -0
  164. covsight_core-0.1.2/python/covsight/core/api/statement_id.py +92 -0
  165. covsight_core-0.1.2/python/covsight/core/api/test_data.py +124 -0
  166. covsight_core-0.1.2/python/covsight/core/api/ucis.py +699 -0
  167. covsight_core-0.1.2/python/covsight/core/api/unimpl_error.py +61 -0
  168. covsight_core-0.1.2/python/covsight/core/conversion/__init__.py +3 -0
  169. covsight_core-0.1.2/python/covsight/core/conversion/context.py +127 -0
  170. covsight_core-0.1.2/python/covsight/core/conversion/error.py +12 -0
  171. covsight_core-0.1.2/python/covsight/core/conversion/listener.py +95 -0
  172. covsight_core-0.1.2/python/covsight/core/ext/__init__.py +3 -0
  173. covsight_core-0.1.2/python/covsight/core/ext/format_db.py +76 -0
  174. covsight_core-0.1.2/python/covsight/core/ext/format_rpt.py +42 -0
  175. covsight_core-0.1.2/python/covsight/core/ext/registry.py +63 -0
  176. covsight_core-0.1.2/python/covsight/core/mem/__init__.py +2 -0
  177. covsight_core-0.1.2/python/covsight/core/mem/mem_code_scope.py +84 -0
  178. covsight_core-0.1.2/python/covsight/core/mem/mem_cover_index.py +62 -0
  179. covsight_core-0.1.2/python/covsight/core/mem/mem_cover_index_iterator.py +27 -0
  180. covsight_core-0.1.2/python/covsight/core/mem/mem_cover_item.py +24 -0
  181. covsight_core-0.1.2/python/covsight/core/mem/mem_cover_type.py +33 -0
  182. covsight_core-0.1.2/python/covsight/core/mem/mem_covergroup.py +124 -0
  183. covsight_core-0.1.2/python/covsight/core/mem/mem_coverpoint.py +24 -0
  184. covsight_core-0.1.2/python/covsight/core/mem/mem_cross.py +33 -0
  185. covsight_core-0.1.2/python/covsight/core/mem/mem_cvg_scope.py +59 -0
  186. covsight_core-0.1.2/python/covsight/core/mem/mem_du_scope.py +47 -0
  187. covsight_core-0.1.2/python/covsight/core/mem/mem_factory.py +49 -0
  188. covsight_core-0.1.2/python/covsight/core/mem/mem_file_handle.py +15 -0
  189. covsight_core-0.1.2/python/covsight/core/mem/mem_fsm_scope.py +217 -0
  190. covsight_core-0.1.2/python/covsight/core/mem/mem_history_node.py +273 -0
  191. covsight_core-0.1.2/python/covsight/core/mem/mem_history_node_iterator.py +37 -0
  192. covsight_core-0.1.2/python/covsight/core/mem/mem_instance_coverage.py +58 -0
  193. covsight_core-0.1.2/python/covsight/core/mem/mem_instance_scope.py +103 -0
  194. covsight_core-0.1.2/python/covsight/core/mem/mem_obj.py +53 -0
  195. covsight_core-0.1.2/python/covsight/core/mem/mem_scope.py +280 -0
  196. covsight_core-0.1.2/python/covsight/core/mem/mem_scope_iterator.py +29 -0
  197. covsight_core-0.1.2/python/covsight/core/mem/mem_source_file.py +35 -0
  198. covsight_core-0.1.2/python/covsight/core/mem/mem_statement_id.py +31 -0
  199. covsight_core-0.1.2/python/covsight/core/mem/mem_test_coverage.py +125 -0
  200. covsight_core-0.1.2/python/covsight/core/mem/mem_toggle_instance_scope.py +46 -0
  201. covsight_core-0.1.2/python/covsight/core/mem/mem_toggle_scope.py +151 -0
  202. covsight_core-0.1.2/python/covsight/core/mem/mem_ucis.py +243 -0
  203. covsight_core-0.1.2/python/covsight/core/merge/__init__.py +1 -0
  204. covsight_core-0.1.2/python/covsight/core/merge/db_merger.py +473 -0
  205. covsight_core-0.1.2/python/covsight/core/ncdb/__init__.py +6 -0
  206. covsight_core-0.1.2/python/covsight/core/ncdb/_accel/README.md +44 -0
  207. covsight_core-0.1.2/python/covsight/core/ncdb/_accel/__init__.py +135 -0
  208. covsight_core-0.1.2/python/covsight/core/ncdb/_accel/_ncdb_accel_build.py +63 -0
  209. covsight_core-0.1.2/python/covsight/core/ncdb/_accel/ncdb_accel.c +81 -0
  210. covsight_core-0.1.2/python/covsight/core/ncdb/attrs.py +264 -0
  211. covsight_core-0.1.2/python/covsight/core/ncdb/bucket_index.py +171 -0
  212. covsight_core-0.1.2/python/covsight/core/ncdb/constants.py +146 -0
  213. covsight_core-0.1.2/python/covsight/core/ncdb/contrib.py +86 -0
  214. covsight_core-0.1.2/python/covsight/core/ncdb/contrib_index.py +178 -0
  215. covsight_core-0.1.2/python/covsight/core/ncdb/counts.py +84 -0
  216. covsight_core-0.1.2/python/covsight/core/ncdb/coveritem_flags.py +93 -0
  217. covsight_core-0.1.2/python/covsight/core/ncdb/cross.py +94 -0
  218. covsight_core-0.1.2/python/covsight/core/ncdb/design_units.py +69 -0
  219. covsight_core-0.1.2/python/covsight/core/ncdb/dfs_util.py +51 -0
  220. covsight_core-0.1.2/python/covsight/core/ncdb/formal.py +81 -0
  221. covsight_core-0.1.2/python/covsight/core/ncdb/format_detect.py +43 -0
  222. covsight_core-0.1.2/python/covsight/core/ncdb/format_plugin.py +37 -0
  223. covsight_core-0.1.2/python/covsight/core/ncdb/fsm.py +144 -0
  224. covsight_core-0.1.2/python/covsight/core/ncdb/history.py +198 -0
  225. covsight_core-0.1.2/python/covsight/core/ncdb/history_buckets.py +328 -0
  226. covsight_core-0.1.2/python/covsight/core/ncdb/issues.py +625 -0
  227. covsight_core-0.1.2/python/covsight/core/ncdb/issues_history.py +342 -0
  228. covsight_core-0.1.2/python/covsight/core/ncdb/issues_meta.py +105 -0
  229. covsight_core-0.1.2/python/covsight/core/ncdb/manifest.py +166 -0
  230. covsight_core-0.1.2/python/covsight/core/ncdb/ncdb_merger.py +587 -0
  231. covsight_core-0.1.2/python/covsight/core/ncdb/ncdb_reader.py +294 -0
  232. covsight_core-0.1.2/python/covsight/core/ncdb/ncdb_ucis.py +735 -0
  233. covsight_core-0.1.2/python/covsight/core/ncdb/ncdb_writer.py +156 -0
  234. covsight_core-0.1.2/python/covsight/core/ncdb/properties.py +101 -0
  235. covsight_core-0.1.2/python/covsight/core/ncdb/reports.py +1192 -0
  236. covsight_core-0.1.2/python/covsight/core/ncdb/scope_tree.py +365 -0
  237. covsight_core-0.1.2/python/covsight/core/ncdb/sources.py +55 -0
  238. covsight_core-0.1.2/python/covsight/core/ncdb/squash_log.py +126 -0
  239. covsight_core-0.1.2/python/covsight/core/ncdb/string_table.py +72 -0
  240. covsight_core-0.1.2/python/covsight/core/ncdb/tags.py +52 -0
  241. covsight_core-0.1.2/python/covsight/core/ncdb/test_registry.py +217 -0
  242. covsight_core-0.1.2/python/covsight/core/ncdb/test_stats.py +316 -0
  243. covsight_core-0.1.2/python/covsight/core/ncdb/testplan.py +547 -0
  244. covsight_core-0.1.2/python/covsight/core/ncdb/testplan_closure.py +262 -0
  245. covsight_core-0.1.2/python/covsight/core/ncdb/testplan_export.py +301 -0
  246. covsight_core-0.1.2/python/covsight/core/ncdb/testplan_hjson.py +205 -0
  247. covsight_core-0.1.2/python/covsight/core/ncdb/testplan_imports.py +214 -0
  248. covsight_core-0.1.2/python/covsight/core/ncdb/testplan_questa.py +217 -0
  249. covsight_core-0.1.2/python/covsight/core/ncdb/testplan_vc_planner.py +222 -0
  250. covsight_core-0.1.2/python/covsight/core/ncdb/testplan_vpf.py +192 -0
  251. covsight_core-0.1.2/python/covsight/core/ncdb/testplan_yaml.py +284 -0
  252. covsight_core-0.1.2/python/covsight/core/ncdb/toggle.py +152 -0
  253. covsight_core-0.1.2/python/covsight/core/ncdb/varint.py +81 -0
  254. covsight_core-0.1.2/python/covsight/core/ncdb/waivers.py +195 -0
  255. covsight_core-0.1.2/python/covsight/core/schema/__init__.py +0 -0
  256. covsight_core-0.1.2/python/covsight/core/schema/cover.schema +0 -0
  257. covsight_core-0.1.2/python/covsight/core/schema/cover.yaml +20 -0
  258. covsight_core-0.1.2/python/covsight/core/schema/coverage.json +143 -0
  259. covsight_core-0.1.2/python/covsight/core/schema/covreport.json +156 -0
  260. covsight_core-0.1.2/python/covsight/core/schema/testplan.schema.json +168 -0
  261. covsight_core-0.1.2/python/covsight/core/schema/ucis.xsd +607 -0
  262. covsight_core-0.1.2/python/covsight/core/visitors/__init__.py +2 -0
  263. covsight_core-0.1.2/python/covsight/core/visitors/traverse.py +138 -0
  264. covsight_core-0.1.2/python/covsight/core/visitors/visitor.py +143 -0
  265. covsight_core-0.1.2/python/covsight_core.egg-info/PKG-INFO +25 -0
  266. covsight_core-0.1.2/python/covsight_core.egg-info/SOURCES.txt +471 -0
  267. covsight_core-0.1.2/python/covsight_core.egg-info/dependency_links.txt +1 -0
  268. covsight_core-0.1.2/python/covsight_core.egg-info/entry_points.txt +2 -0
  269. covsight_core-0.1.2/python/covsight_core.egg-info/requires.txt +14 -0
  270. covsight_core-0.1.2/python/covsight_core.egg-info/scm_file_list.json +467 -0
  271. covsight_core-0.1.2/python/covsight_core.egg-info/scm_version.json +8 -0
  272. covsight_core-0.1.2/python/covsight_core.egg-info/top_level.txt +1 -0
  273. covsight_core-0.1.2/setup.cfg +4 -0
  274. covsight_core-0.1.2/tests/__init__.py +0 -0
  275. covsight_core-0.1.2/tests/compat/PLAN.md +483 -0
  276. covsight_core-0.1.2/tests/compat/conftest.py +484 -0
  277. covsight_core-0.1.2/tests/compat/generate_golden.py +216 -0
  278. covsight_core-0.1.2/tests/compat/golden/README.md +29 -0
  279. covsight_core-0.1.2/tests/compat/golden/c_full.cdb +0 -0
  280. covsight_core-0.1.2/tests/compat/golden/c_full.json +612 -0
  281. covsight_core-0.1.2/tests/compat/golden/c_minimal.cdb +0 -0
  282. covsight_core-0.1.2/tests/compat/golden/c_minimal.json +42 -0
  283. covsight_core-0.1.2/tests/compat/golden/py_at_least.cdb +0 -0
  284. covsight_core-0.1.2/tests/compat/golden/py_at_least.json +48 -0
  285. covsight_core-0.1.2/tests/compat/golden/py_basic.cdb +0 -0
  286. covsight_core-0.1.2/tests/compat/golden/py_basic.json +319 -0
  287. covsight_core-0.1.2/tests/compat/golden/py_cross.cdb +0 -0
  288. covsight_core-0.1.2/tests/compat/golden/py_cross.json +95 -0
  289. covsight_core-0.1.2/tests/compat/golden/py_deep.cdb +0 -0
  290. covsight_core-0.1.2/tests/compat/golden/py_deep.json +81 -0
  291. covsight_core-0.1.2/tests/compat/golden/py_empty.cdb +0 -0
  292. covsight_core-0.1.2/tests/compat/golden/py_empty.json +9 -0
  293. covsight_core-0.1.2/tests/compat/golden/py_full.cdb +0 -0
  294. covsight_core-0.1.2/tests/compat/golden/py_full.json +612 -0
  295. covsight_core-0.1.2/tests/compat/golden/py_history.cdb +0 -0
  296. covsight_core-0.1.2/tests/compat/golden/py_history.json +59 -0
  297. covsight_core-0.1.2/tests/compat/golden/py_issues_full.cdb +0 -0
  298. covsight_core-0.1.2/tests/compat/golden/py_issues_full.json +102 -0
  299. covsight_core-0.1.2/tests/compat/golden/py_issues_minimal.cdb +0 -0
  300. covsight_core-0.1.2/tests/compat/golden/py_issues_minimal.json +31 -0
  301. covsight_core-0.1.2/tests/compat/golden/py_large_count.cdb +0 -0
  302. covsight_core-0.1.2/tests/compat/golden/py_large_count.json +42 -0
  303. covsight_core-0.1.2/tests/compat/golden/py_minimal.cdb +0 -0
  304. covsight_core-0.1.2/tests/compat/golden/py_minimal.json +42 -0
  305. covsight_core-0.1.2/tests/compat/golden/py_source_info.cdb +0 -0
  306. covsight_core-0.1.2/tests/compat/golden/py_source_info.json +67 -0
  307. covsight_core-0.1.2/tests/compat/golden/py_toggle.cdb +0 -0
  308. covsight_core-0.1.2/tests/compat/golden/py_toggle.json +60 -0
  309. covsight_core-0.1.2/tests/compat/golden/py_unicode_names.cdb +0 -0
  310. covsight_core-0.1.2/tests/compat/golden/py_unicode_names.json +42 -0
  311. covsight_core-0.1.2/tests/compat/golden/py_weight_goal.cdb +0 -0
  312. covsight_core-0.1.2/tests/compat/golden/py_weight_goal.json +42 -0
  313. covsight_core-0.1.2/tests/compat/golden/ts_full.cdb +0 -0
  314. covsight_core-0.1.2/tests/compat/golden/ts_full.json +612 -0
  315. covsight_core-0.1.2/tests/compat/golden/ts_minimal.cdb +0 -0
  316. covsight_core-0.1.2/tests/compat/golden/ts_minimal.json +42 -0
  317. covsight_core-0.1.2/tests/compat/helpers/Makefile +19 -0
  318. covsight_core-0.1.2/tests/compat/helpers/c_dump +0 -0
  319. covsight_core-0.1.2/tests/compat/helpers/c_dump.c +483 -0
  320. covsight_core-0.1.2/tests/compat/helpers/ts_dump.mjs +343 -0
  321. covsight_core-0.1.2/tests/compat/schema.md +130 -0
  322. covsight_core-0.1.2/tests/compat/test_cross_write_read.py +116 -0
  323. covsight_core-0.1.2/tests/compat/test_edge_cases.py +279 -0
  324. covsight_core-0.1.2/tests/compat/test_fidelity.py +478 -0
  325. covsight_core-0.1.2/tests/compat/test_golden.py +118 -0
  326. covsight_core-0.1.2/tests/compat/test_issues_compat.py +108 -0
  327. covsight_core-0.1.2/tests/conftest.py +37 -0
  328. covsight_core-0.1.2/tests/ncdb/__init__.py +1 -0
  329. covsight_core-0.1.2/tests/ncdb/test_attrs.py +133 -0
  330. covsight_core-0.1.2/tests/ncdb/test_bucket_index.py +113 -0
  331. covsight_core-0.1.2/tests/ncdb/test_cli.py +150 -0
  332. covsight_core-0.1.2/tests/ncdb/test_contrib.py +215 -0
  333. covsight_core-0.1.2/tests/ncdb/test_contrib_index.py +94 -0
  334. covsight_core-0.1.2/tests/ncdb/test_counts.py +47 -0
  335. covsight_core-0.1.2/tests/ncdb/test_cross.py +209 -0
  336. covsight_core-0.1.2/tests/ncdb/test_design_units.py +140 -0
  337. covsight_core-0.1.2/tests/ncdb/test_formal.py +213 -0
  338. covsight_core-0.1.2/tests/ncdb/test_format_detect.py +70 -0
  339. covsight_core-0.1.2/tests/ncdb/test_fsm.py +310 -0
  340. covsight_core-0.1.2/tests/ncdb/test_history_buckets.py +144 -0
  341. covsight_core-0.1.2/tests/ncdb/test_issues.py +246 -0
  342. covsight_core-0.1.2/tests/ncdb/test_issues_history.py +151 -0
  343. covsight_core-0.1.2/tests/ncdb/test_issues_integration.py +217 -0
  344. covsight_core-0.1.2/tests/ncdb/test_issues_meta.py +79 -0
  345. covsight_core-0.1.2/tests/ncdb/test_manifest.py +106 -0
  346. covsight_core-0.1.2/tests/ncdb/test_merger.py +336 -0
  347. covsight_core-0.1.2/tests/ncdb/test_properties.py +160 -0
  348. covsight_core-0.1.2/tests/ncdb/test_reports.py +705 -0
  349. covsight_core-0.1.2/tests/ncdb/test_roundtrip.py +324 -0
  350. covsight_core-0.1.2/tests/ncdb/test_scope_tree.py +229 -0
  351. covsight_core-0.1.2/tests/ncdb/test_squash_log.py +64 -0
  352. covsight_core-0.1.2/tests/ncdb/test_string_table.py +55 -0
  353. covsight_core-0.1.2/tests/ncdb/test_tags.py +140 -0
  354. covsight_core-0.1.2/tests/ncdb/test_test_registry.py +130 -0
  355. covsight_core-0.1.2/tests/ncdb/test_test_stats.py +178 -0
  356. covsight_core-0.1.2/tests/ncdb/test_testplan.py +569 -0
  357. covsight_core-0.1.2/tests/ncdb/test_testplan_closure.py +373 -0
  358. covsight_core-0.1.2/tests/ncdb/test_testplan_export.py +379 -0
  359. covsight_core-0.1.2/tests/ncdb/test_testplan_hjson.py +315 -0
  360. covsight_core-0.1.2/tests/ncdb/test_testplan_imports.py +202 -0
  361. covsight_core-0.1.2/tests/ncdb/test_testplan_ncdb_roundtrip.py +272 -0
  362. covsight_core-0.1.2/tests/ncdb/test_testplan_questa.py +251 -0
  363. covsight_core-0.1.2/tests/ncdb/test_testplan_schema.py +181 -0
  364. covsight_core-0.1.2/tests/ncdb/test_testplan_vc_planner.py +200 -0
  365. covsight_core-0.1.2/tests/ncdb/test_testplan_vpf.py +252 -0
  366. covsight_core-0.1.2/tests/ncdb/test_testplan_yaml.py +345 -0
  367. covsight_core-0.1.2/tests/ncdb/test_toggle.py +209 -0
  368. covsight_core-0.1.2/tests/ncdb/test_ucis_compliance.py +255 -0
  369. covsight_core-0.1.2/tests/ncdb/test_varint.py +57 -0
  370. covsight_core-0.1.2/tests/ncdb/test_waivers.py +140 -0
  371. covsight_core-0.1.2/tests/test_api_enums.py +25 -0
  372. covsight_core-0.1.2/tests/test_api_interfaces.py +13 -0
  373. covsight_core-0.1.2/tests/test_ext_registry.py +21 -0
  374. covsight_core-0.1.2/tests/test_integration.py +83 -0
  375. covsight_core-0.1.2/tests/test_mem_basic.py +147 -0
  376. covsight_core-0.1.2/tests/test_mem_code_cov.py +302 -0
  377. covsight_core-0.1.2/tests/test_mem_cover_items.py +174 -0
  378. covsight_core-0.1.2/tests/test_mem_covergroups.py +251 -0
  379. covsight_core-0.1.2/tests/test_mem_coverpoints.py +398 -0
  380. covsight_core-0.1.2/tests/test_mem_cross.py +323 -0
  381. covsight_core-0.1.2/tests/test_mem_delete.py +96 -0
  382. covsight_core-0.1.2/tests/test_mem_file_handles.py +296 -0
  383. covsight_core-0.1.2/tests/test_mem_fsm.py +217 -0
  384. covsight_core-0.1.2/tests/test_mem_hierarchy.py +253 -0
  385. covsight_core-0.1.2/tests/test_mem_properties.py +76 -0
  386. covsight_core-0.1.2/tests/test_mem_smoke.py +30 -0
  387. covsight_core-0.1.2/tests/test_mem_toggle.py +215 -0
  388. covsight_core-0.1.2/tests/test_mem_visitor.py +40 -0
  389. covsight_core-0.1.2/tests/test_merge.py +222 -0
  390. covsight_core-0.1.2/tests/test_smoke.py +2 -0
  391. covsight_core-0.1.2/tests/test_visitors.py +156 -0
  392. covsight_core-0.1.2/ts/.eslintrc.cjs +15 -0
  393. covsight_core-0.1.2/ts/DESIGN.md +943 -0
  394. covsight_core-0.1.2/ts/PLAN.md +1485 -0
  395. covsight_core-0.1.2/ts/jest.config.cjs +7 -0
  396. covsight_core-0.1.2/ts/package-lock.json +5490 -0
  397. covsight_core-0.1.2/ts/package.json +58 -0
  398. covsight_core-0.1.2/ts/src/api/CoverData.ts +10 -0
  399. covsight_core-0.1.2/ts/src/api/CoverIndex.ts +6 -0
  400. covsight_core-0.1.2/ts/src/api/CoverItem.ts +9 -0
  401. covsight_core-0.1.2/ts/src/api/Covergroup.ts +3 -0
  402. covsight_core-0.1.2/ts/src/api/Coverpoint.ts +8 -0
  403. covsight_core-0.1.2/ts/src/api/Cross.ts +7 -0
  404. covsight_core-0.1.2/ts/src/api/FileHandle.ts +6 -0
  405. covsight_core-0.1.2/ts/src/api/HistoryNode.ts +11 -0
  406. covsight_core-0.1.2/ts/src/api/Obj.ts +6 -0
  407. covsight_core-0.1.2/ts/src/api/Scope.ts +47 -0
  408. covsight_core-0.1.2/ts/src/api/SourceInfo.ts +7 -0
  409. covsight_core-0.1.2/ts/src/api/TestData.ts +27 -0
  410. covsight_core-0.1.2/ts/src/api/UCIS.ts +40 -0
  411. covsight_core-0.1.2/ts/src/api/enums/CoverFlagsT.ts +12 -0
  412. covsight_core-0.1.2/ts/src/api/enums/CoverTypeT.ts +28 -0
  413. covsight_core-0.1.2/ts/src/api/enums/FlagsT.ts +26 -0
  414. covsight_core-0.1.2/ts/src/api/enums/HistoryNodeKind.ts +6 -0
  415. covsight_core-0.1.2/ts/src/api/enums/IntProperty.ts +18 -0
  416. covsight_core-0.1.2/ts/src/api/enums/ScopeTypeT.ts +46 -0
  417. covsight_core-0.1.2/ts/src/api/enums/SourceT.ts +15 -0
  418. covsight_core-0.1.2/ts/src/api/enums/TestStatusT.ts +7 -0
  419. covsight_core-0.1.2/ts/src/api/enums/ToggleDirT.ts +6 -0
  420. covsight_core-0.1.2/ts/src/api/enums/ToggleMetricT.ts +5 -0
  421. covsight_core-0.1.2/ts/src/api/enums/ToggleTypeT.ts +5 -0
  422. covsight_core-0.1.2/ts/src/api/enums/index.ts +11 -0
  423. covsight_core-0.1.2/ts/src/api/index.ts +14 -0
  424. covsight_core-0.1.2/ts/src/ext.ts +51 -0
  425. covsight_core-0.1.2/ts/src/index.ts +5 -0
  426. covsight_core-0.1.2/ts/src/mem/MemCoverItem.ts +14 -0
  427. covsight_core-0.1.2/ts/src/mem/MemCovergroup.ts +72 -0
  428. covsight_core-0.1.2/ts/src/mem/MemCoverpoint.ts +40 -0
  429. covsight_core-0.1.2/ts/src/mem/MemCross.ts +38 -0
  430. covsight_core-0.1.2/ts/src/mem/MemHistoryNode.ts +9 -0
  431. covsight_core-0.1.2/ts/src/mem/MemObj.ts +14 -0
  432. covsight_core-0.1.2/ts/src/mem/MemScope.ts +206 -0
  433. covsight_core-0.1.2/ts/src/mem/MemUCIS.ts +149 -0
  434. covsight_core-0.1.2/ts/src/mem/index.ts +8 -0
  435. covsight_core-0.1.2/ts/src/ncdb/IssueSet.ts +536 -0
  436. covsight_core-0.1.2/ts/src/ncdb/IssuesMeta.ts +79 -0
  437. covsight_core-0.1.2/ts/src/ncdb/constants.ts +126 -0
  438. covsight_core-0.1.2/ts/src/ncdb/countsReader.ts +30 -0
  439. covsight_core-0.1.2/ts/src/ncdb/countsWriter.ts +39 -0
  440. covsight_core-0.1.2/ts/src/ncdb/crossReader.ts +44 -0
  441. covsight_core-0.1.2/ts/src/ncdb/crossWriter.ts +21 -0
  442. covsight_core-0.1.2/ts/src/ncdb/designUnitsReader.ts +39 -0
  443. covsight_core-0.1.2/ts/src/ncdb/designUnitsWriter.ts +16 -0
  444. covsight_core-0.1.2/ts/src/ncdb/dfsScopes.ts +40 -0
  445. covsight_core-0.1.2/ts/src/ncdb/historyReader.ts +68 -0
  446. covsight_core-0.1.2/ts/src/ncdb/historyWriter.ts +56 -0
  447. covsight_core-0.1.2/ts/src/ncdb/index.ts +22 -0
  448. covsight_core-0.1.2/ts/src/ncdb/issuesHistoryReader.ts +147 -0
  449. covsight_core-0.1.2/ts/src/ncdb/issuesHistoryWriter.ts +147 -0
  450. covsight_core-0.1.2/ts/src/ncdb/ncdbReader.ts +104 -0
  451. covsight_core-0.1.2/ts/src/ncdb/ncdbWriter.ts +71 -0
  452. covsight_core-0.1.2/ts/src/ncdb/scopeTreeReader.ts +201 -0
  453. covsight_core-0.1.2/ts/src/ncdb/scopeTreeWriter.ts +116 -0
  454. covsight_core-0.1.2/ts/src/ncdb/sourcesReader.ts +9 -0
  455. covsight_core-0.1.2/ts/src/ncdb/sourcesWriter.ts +7 -0
  456. covsight_core-0.1.2/ts/src/ncdb/stringTable.ts +71 -0
  457. covsight_core-0.1.2/ts/src/ncdb/varint.ts +32 -0
  458. covsight_core-0.1.2/ts/src/visitors.ts +36 -0
  459. covsight_core-0.1.2/ts/tests/enums.test.ts +21 -0
  460. covsight_core-0.1.2/ts/tests/ext.test.ts +27 -0
  461. covsight_core-0.1.2/ts/tests/mem.test.ts +21 -0
  462. covsight_core-0.1.2/ts/tests/ncdb/counts.test.ts +34 -0
  463. covsight_core-0.1.2/ts/tests/ncdb/issues.test.ts +124 -0
  464. covsight_core-0.1.2/ts/tests/ncdb/issuesHistory.test.ts +82 -0
  465. covsight_core-0.1.2/ts/tests/ncdb/issuesMeta.test.ts +53 -0
  466. covsight_core-0.1.2/ts/tests/ncdb/issuesRoundTrip.test.ts +49 -0
  467. covsight_core-0.1.2/ts/tests/ncdb/ncdbIssuesIntegration.test.ts +70 -0
  468. covsight_core-0.1.2/ts/tests/ncdb/string_table.test.ts +36 -0
  469. covsight_core-0.1.2/ts/tests/ncdb/varint.test.ts +21 -0
  470. covsight_core-0.1.2/ts/tests/ncdb-roundtrip.test.ts +76 -0
  471. covsight_core-0.1.2/ts/tests/visitors.test.ts +78 -0
  472. covsight_core-0.1.2/ts/tsconfig.eslint.json +8 -0
  473. covsight_core-0.1.2/ts/tsconfig.json +22 -0
@@ -0,0 +1,102 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main, master]
6
+ pull_request:
7
+ branches: [main, master]
8
+ workflow_dispatch:
9
+
10
+ permissions:
11
+ contents: read
12
+
13
+ jobs:
14
+ python:
15
+ name: Python tests
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - uses: actions/checkout@v6
19
+ with:
20
+ fetch-depth: 0
21
+ - uses: actions/setup-python@v6
22
+ with:
23
+ python-version: "3.11"
24
+ - name: Install
25
+ run: pip install -e ".[dev,validate]"
26
+ - name: Test
27
+ run: pytest
28
+
29
+ typescript:
30
+ name: TypeScript tests
31
+ runs-on: ubuntu-latest
32
+ steps:
33
+ - uses: actions/checkout@v6
34
+ - uses: actions/setup-node@v6
35
+ with:
36
+ node-version: "20"
37
+ cache: npm
38
+ cache-dependency-path: ts/package-lock.json
39
+ - name: Install
40
+ run: cd ts && npm ci
41
+ - name: Lint
42
+ run: cd ts && npm run lint
43
+ - name: Build
44
+ run: cd ts && npm run build
45
+ - name: Test
46
+ run: cd ts && npm test
47
+
48
+ c:
49
+ name: C tests
50
+ runs-on: ubuntu-latest
51
+ steps:
52
+ - uses: actions/checkout@v6
53
+ - name: Fetch C dependencies
54
+ run: pip install ivpm && ivpm update
55
+ - name: Build
56
+ run: cmake -S c -B c/build && cmake --build c/build
57
+ - name: Test
58
+ run: ctest --test-dir c/build --output-on-failure
59
+
60
+ docs:
61
+ # BUILD ONLY. This workflow does not publish docs, by design.
62
+ #
63
+ # Docs for every dvkit project are published by FORGEJO, not GitHub. The
64
+ # host-side poller (~/dvkit-docs/bin/docs-fetch) reads build artifacts from
65
+ # the Forgejo API, promotes them, and deploys with a Cloudflare token that
66
+ # never enters a job container. A Cloudflare Pages deployment replaces the
67
+ # WHOLE site, so dvkit.org is a single Pages space shared by every project
68
+ # -- there is exactly one publisher for it, and it is not here.
69
+ #
70
+ # What used to follow was a `docs-deploy` job. It was first converted from
71
+ # branch-driven to tag-driven (so a mirrored push could not republish as a
72
+ # side effect of a sync), and then removed outright: GitHub Pages would be
73
+ # a second, divergent copy of the docs, and the `docs-covsight-covsight-core`
74
+ # artifact this job used to upload for the poller was consumed by nothing,
75
+ # because the poller only ever looks at Forgejo.
76
+ #
77
+ # The Forgejo-side docs job that actually publishes lives in
78
+ # .forgejo/workflows/ and uploads `docs-covsight-covsight-core`.
79
+ #
80
+ # This job stays because a docs build that breaks should still fail a push.
81
+ name: Build docs
82
+ runs-on: ubuntu-latest
83
+ steps:
84
+ - uses: actions/checkout@v6
85
+ - uses: actions/setup-python@v6
86
+ with:
87
+ python-version: "3.11"
88
+ - uses: actions/setup-node@v6
89
+ with:
90
+ node-version: "20"
91
+ cache: npm
92
+ cache-dependency-path: ts/package-lock.json
93
+ - name: Install TypeScript dependencies
94
+ run: cd ts && npm ci
95
+ - name: Install doc dependencies
96
+ run: pip install -r docs/requirements.txt
97
+ - name: Patch sphinx-js BigInt bug
98
+ run: |
99
+ SPHINX_JS_PATH=$(python -c "import sphinx_js, os; print(os.path.dirname(sphinx_js.__file__))")
100
+ patch "$SPHINX_JS_PATH/js/convertType.ts" docs/patches/sphinx-js-bigint.patch
101
+ - name: Build docs
102
+ run: cd docs && make html
@@ -0,0 +1,156 @@
1
+ name: Publish
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+
8
+ jobs:
9
+ gate:
10
+ # Release master switch. ONE file, above both platforms, decides who
11
+ # releases this repo:
12
+ # https://dvkit.org/.well-known/release-authority.json
13
+ # Generated from /srv/forgejo/etc/sync-policy.toml by
14
+ # `git-sync emit-release-authority`, so GitHub and Forgejo cannot drift --
15
+ # there is only one copy for them to disagree about.
16
+ #
17
+ # The runner only READS it, over plain HTTPS with no credential: a workflow
18
+ # file is public and editable by anyone who can push, so nothing secret
19
+ # goes in one.
20
+ #
21
+ # `if:` on a job cannot reference a step in its own job, so the switch is
22
+ # resolved here and consumed via needs.gate.outputs.authority.
23
+ name: Release authority
24
+ runs-on: ubuntu-latest
25
+ outputs:
26
+ authority: ${{ steps.resolve.outputs.authority }}
27
+ steps:
28
+ - id: resolve
29
+ # The resolver is one line on purpose. A multi-line `python3 -c` script
30
+ # has to start at column 0, which terminates the YAML block scalar and
31
+ # silently corrupts the workflow.
32
+ run: |
33
+ url=https://dvkit.org/.well-known/release-authority.json
34
+ if ! body=$(curl -fsS --max-time 10 "$url"); then
35
+ # Fail CLOSED, but only make noise when a release was actually due:
36
+ # a missed release is recoverable, a wrong one is not.
37
+ case "$GITHUB_REF" in
38
+ refs/tags/v*)
39
+ echo "::error::release-authority switch unreachable; refusing to publish"
40
+ exit 1 ;;
41
+ *)
42
+ echo "authority=none" >> "$GITHUB_OUTPUT"
43
+ echo "switch unreachable on a non-tag ref; nothing to release"
44
+ exit 0 ;;
45
+ esac
46
+ fi
47
+ auth=$(printf '%s' "$body" | python3 -c 'import json,os,sys; d=json.load(sys.stdin); r=os.environ["GITHUB_REPOSITORY"]; print(d["repos"].get(r) or d["orgs"].get(r.split("/")[0]) or d["default"])')
48
+ echo "release authority for $GITHUB_REPOSITORY: $auth"
49
+ echo "authority=$auth" >> "$GITHUB_OUTPUT"
50
+
51
+ test-python:
52
+ name: Python tests
53
+ runs-on: ubuntu-latest
54
+ steps:
55
+ - uses: actions/checkout@v6
56
+ with:
57
+ fetch-depth: 0
58
+ - uses: actions/setup-python@v6
59
+ with:
60
+ python-version: "3.11"
61
+ - name: Install
62
+ # Must match ci.yml's extras exactly. This job used to install only
63
+ # ".[dev]" while ci.yml installed ".[dev,validate]", so the release
64
+ # path ran a suite that ci.yml never ran: 21 tests died with
65
+ # "ImportError: jsonschema is required for validation". It went
66
+ # unnoticed until the first tag, because until then this workflow had
67
+ # never run at all. The publish jobs `needs` this one, so the effect
68
+ # was a release that could never happen rather than a bad release --
69
+ # but the two extras lists must not drift again.
70
+ run: pip install -e ".[dev,validate]"
71
+ - name: Test
72
+ run: pytest
73
+
74
+ test-typescript:
75
+ name: TypeScript tests
76
+ runs-on: ubuntu-latest
77
+ steps:
78
+ - uses: actions/checkout@v6
79
+ - uses: actions/setup-node@v6
80
+ with:
81
+ node-version: "20"
82
+ cache: npm
83
+ cache-dependency-path: ts/package-lock.json
84
+ - name: Install
85
+ run: cd ts && npm ci
86
+ - name: Lint
87
+ run: cd ts && npm run lint
88
+ - name: Build
89
+ run: cd ts && npm run build
90
+ - name: Test
91
+ run: cd ts && npm test
92
+
93
+ publish-pypi:
94
+ name: Publish to PyPI
95
+ # Skips -- does not fail -- when the switch names the other side. A red
96
+ # build on the dormant side every time anyone tags would train people to
97
+ # ignore the signal, which is worse than no signal.
98
+ if: startsWith(github.ref, 'refs/tags/v') && needs.gate.outputs.authority == 'github'
99
+ needs: [gate, test-python, test-typescript]
100
+ runs-on: ubuntu-latest
101
+ steps:
102
+ - uses: actions/checkout@v6
103
+ with:
104
+ fetch-depth: 0
105
+ - uses: actions/setup-python@v6
106
+ with:
107
+ python-version: "3.11"
108
+ - name: Build
109
+ run: |
110
+ pip install build twine
111
+ python -m build
112
+ twine check dist/*
113
+ - name: Publish
114
+ uses: pypa/gh-action-pypi-publish@release/v1
115
+ with:
116
+ password: ${{ secrets.PYPI_API_TOKEN }}
117
+ # Idempotence net: with one switch and two possible publishers, a
118
+ # double-fire must be a no-op rather than a failure or a corruption.
119
+ skip-existing: true
120
+
121
+ publish-npm:
122
+ name: Publish to NPM
123
+ if: startsWith(github.ref, 'refs/tags/v') && needs.gate.outputs.authority == 'github'
124
+ needs: [gate, test-python, test-typescript]
125
+ runs-on: ubuntu-latest
126
+ steps:
127
+ - uses: actions/checkout@v6
128
+ - uses: actions/setup-node@v6
129
+ with:
130
+ node-version: "20"
131
+ registry-url: https://registry.npmjs.org
132
+ cache: npm
133
+ cache-dependency-path: ts/package-lock.json
134
+ - name: Install
135
+ run: cd ts && npm ci
136
+ - name: Set version
137
+ run: |
138
+ VERSION="${GITHUB_REF_NAME#v}"
139
+ cd ts && npm pkg set version="$VERSION"
140
+ - name: Build
141
+ run: cd ts && npm run build
142
+ - name: Dry run
143
+ run: cd ts && npm pack --dry-run
144
+ # npm has no --skip-existing, so the check is explicit. Same reasoning as
145
+ # the PyPI step: a re-run or a double-fire must be a no-op.
146
+ - name: Publish
147
+ run: |
148
+ cd ts
149
+ VERSION="${GITHUB_REF_NAME#v}"
150
+ if npm view "@covsight/core@$VERSION" version >/dev/null 2>&1; then
151
+ echo "@covsight/core@$VERSION is already published -- nothing to do"
152
+ exit 0
153
+ fi
154
+ npm publish --access public
155
+ env:
156
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -0,0 +1,18 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ *.so
4
+ *.o
5
+ *.egg-info/
6
+ dist/
7
+ build/
8
+ .eggs/
9
+ .pytest_cache/
10
+ *.cdb
11
+ # Golden compat fixtures are committed (see tests/compat/golden/README.md);
12
+ # the C migration tests read them and they cannot be regenerated in CI
13
+ # because they intentionally carry the pre-3.0 JSON manifest format.
14
+ !tests/compat/golden/*.cdb
15
+ packages/
16
+ node_modules/
17
+
18
+ _build*/
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,25 @@
1
+ Metadata-Version: 2.4
2
+ Name: covsight-core
3
+ Version: 0.1.2
4
+ Summary: Core UCIS data-model API and NCDB format for coverage data
5
+ Author: CovSight Contributors
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/covsight/covsight-core
8
+ Project-URL: Repository, https://github.com/covsight/covsight-core
9
+ Project-URL: Issues, https://github.com/covsight/covsight-core/issues
10
+ Requires-Python: >=3.10
11
+ Description-Content-Type: text/markdown
12
+ License-File: LICENSE
13
+ Requires-Dist: pyyaml>=5.1
14
+ Provides-Extra: accel
15
+ Requires-Dist: cffi>=1.15; extra == "accel"
16
+ Provides-Extra: dev
17
+ Requires-Dist: pytest>=7.0; extra == "dev"
18
+ Requires-Dist: pytest-cov; extra == "dev"
19
+ Provides-Extra: validate
20
+ Requires-Dist: jsonschema>=4.0; extra == "validate"
21
+ Provides-Extra: hjson
22
+ Requires-Dist: hjson>=3.0; extra == "hjson"
23
+ Dynamic: license-file
24
+
25
+ # covsight-core
@@ -0,0 +1 @@
1
+ # covsight-core
@@ -0,0 +1,58 @@
1
+ cmake_minimum_required(VERSION 3.16)
2
+ project(ncdb LANGUAGES C)
3
+
4
+ set(CMAKE_C_STANDARD 99)
5
+ set(CMAKE_C_STANDARD_REQUIRED ON)
6
+ set(CMAKE_C_EXTENSIONS OFF)
7
+ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
8
+
9
+ set(MZ_COMPAT ON CACHE BOOL "" FORCE)
10
+ set(MZ_BZIP2 OFF CACHE BOOL "" FORCE)
11
+ set(MZ_LZMA OFF CACHE BOOL "" FORCE)
12
+ set(MZ_PPMD OFF CACHE BOOL "" FORCE)
13
+ set(MZ_ZSTD OFF CACHE BOOL "" FORCE)
14
+ set(MZ_WZAES OFF CACHE BOOL "" FORCE)
15
+ set(MZ_OPENSSL OFF CACHE BOOL "" FORCE)
16
+ set(MZ_LIBBSD OFF CACHE BOOL "" FORCE)
17
+ set(MZ_BUILD_UNIT_TESTS OFF CACHE BOOL "" FORCE)
18
+ set(MZ_BUILD_TESTS OFF CACHE BOOL "" FORCE)
19
+
20
+ add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../packages/minizip-ng ${CMAKE_CURRENT_BINARY_DIR}/minizip-ng)
21
+
22
+ set(NCDB_SOURCES
23
+ src/ncdb_varint.c
24
+ src/ncdb_zip.c
25
+ src/ncdb_strings.c
26
+ src/ncdb_scope_tree.c
27
+ src/ncdb_counts.c
28
+ src/ncdb_manifest.c
29
+ src/ncdb_history.c
30
+ src/ncdb_sources.c
31
+ src/ncdb_attrs.c
32
+ src/ncdb_props.c
33
+ src/ncdb_unique_id.c
34
+ src/ncdb_tests_assoc.c
35
+ src/ncdb_formal.c
36
+ src/ncdb_metric.c
37
+ src/ncdb_toggle.c
38
+ src/ncdb_cross.c
39
+ src/ncdb_fsm.c
40
+ src/ncdb_tags.c
41
+ src/ncdb_issues.c
42
+ src/ncdb_db.c
43
+ ${CMAKE_CURRENT_SOURCE_DIR}/../packages/cjson/cJSON.c)
44
+
45
+ add_library(ncdb SHARED ${NCDB_SOURCES})
46
+ target_include_directories(ncdb
47
+ PUBLIC
48
+ ${CMAKE_CURRENT_SOURCE_DIR}/include
49
+ PRIVATE
50
+ ${CMAKE_CURRENT_SOURCE_DIR}/src
51
+ ${CMAKE_CURRENT_SOURCE_DIR}/../packages/cjson
52
+ ${CMAKE_CURRENT_SOURCE_DIR}/../packages/minizip-ng
53
+ ${CMAKE_CURRENT_BINARY_DIR}/minizip-ng)
54
+ target_link_libraries(ncdb PUBLIC MINIZIP::minizip)
55
+
56
+ enable_testing()
57
+ add_subdirectory(tests)
58
+ add_subdirectory(ucis)
@@ -0,0 +1,11 @@
1
+ # NCDB C Library
2
+
3
+ Native C99 reader/writer for the NCDB coverage database format.
4
+
5
+ ## Build
6
+
7
+ ```sh
8
+ cmake -S c -B c/build
9
+ cmake --build c/build
10
+ ctest --test-dir c/build --output-on-failure
11
+ ```