testing-conventions 0.0.77__tar.gz → 0.0.78__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 (322) hide show
  1. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/PKG-INFO +1 -1
  2. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/CHANGELOG.md +19 -0
  3. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/Cargo.lock +1 -1
  4. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/Cargo.toml +1 -1
  5. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/MIGRATIONS.md +41 -0
  6. testing_conventions-0.0.78/rust/src/e2e.rs +431 -0
  7. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/src/lib.rs +66 -52
  8. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/e2e_attest.rs +58 -21
  9. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/e2e_attest_e2e.rs +13 -13
  10. testing_conventions-0.0.78/rust/tests/e2e_receipts.rs +449 -0
  11. testing_conventions-0.0.78/rust/tests/e2e_receipts_e2e.rs +186 -0
  12. testing_conventions-0.0.78/rust/tests/e2e_verify.rs +579 -0
  13. testing_conventions-0.0.78/rust/tests/e2e_verify_e2e.rs +287 -0
  14. testing_conventions-0.0.77/rust/src/e2e.rs +0 -322
  15. testing_conventions-0.0.77/rust/tests/e2e_verify.rs +0 -800
  16. testing_conventions-0.0.77/rust/tests/e2e_verify_e2e.rs +0 -490
  17. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/README.md +0 -0
  18. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/pyproject.toml +0 -0
  19. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/python/testing_conventions/__init__.py +0 -0
  20. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/python/testing_conventions/config/__init__.py +0 -0
  21. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/python/testing_conventions/config/detect.py +0 -0
  22. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/python/testing_conventions/config/tomlcompat.py +0 -0
  23. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/python/testing_conventions/mutation/__init__.py +0 -0
  24. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/python/testing_conventions/mutation/baseline.py +0 -0
  25. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/python/testing_conventions/mutation/cli.py +0 -0
  26. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/python/testing_conventions/mutation/config.py +0 -0
  27. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/python/testing_conventions/mutation/conftest.py +0 -0
  28. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/python/testing_conventions/mutation/main.py +0 -0
  29. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/python/testing_conventions/mutation/normalize.py +0 -0
  30. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/python/testing_conventions/mutation/parse_args.py +0 -0
  31. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/python/testing_conventions/mutation/session.py +0 -0
  32. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/python/testing_conventions/pytest_plugin/__init__.py +0 -0
  33. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/python/testing_conventions/pytest_plugin/hooks.py +0 -0
  34. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/python/testing_conventions/pytest_plugin/plan.py +0 -0
  35. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/src/agents.rs +0 -0
  36. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/src/co_change.rs +0 -0
  37. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/src/colocated_test.rs +0 -0
  38. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/src/config.rs +0 -0
  39. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/src/coverage.rs +0 -0
  40. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/src/isolation.rs +0 -0
  41. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/src/lint.rs +0 -0
  42. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/src/main.rs +0 -0
  43. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/src/mutation.rs +0 -0
  44. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/src/packaging.rs +0 -0
  45. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/src/patch_coverage.rs +0 -0
  46. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/src/tiers.rs +0 -0
  47. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/src/ts.rs +0 -0
  48. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/src/violation.rs +0 -0
  49. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/src/workflow.rs +0 -0
  50. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/co_change.rs +0 -0
  51. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/co_change_e2e.rs +0 -0
  52. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/colocated_test.rs +0 -0
  53. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/colocated_test_e2e.rs +0 -0
  54. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/common/mod.rs +0 -0
  55. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/config_lines.rs +0 -0
  56. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/config_loader.rs +0 -0
  57. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/coverage.rs +0 -0
  58. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/coverage_base.rs +0 -0
  59. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/coverage_base_e2e.rs +0 -0
  60. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/coverage_base_rust.rs +0 -0
  61. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/coverage_base_rust_e2e.rs +0 -0
  62. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/coverage_base_ts.rs +0 -0
  63. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/coverage_base_ts_e2e.rs +0 -0
  64. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/coverage_e2e.rs +0 -0
  65. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/coverage_features.rs +0 -0
  66. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/coverage_features_e2e.rs +0 -0
  67. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/coverage_line_exempt_e2e.rs +0 -0
  68. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/coverage_metrics.rs +0 -0
  69. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/coverage_metrics_e2e.rs +0 -0
  70. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/coverage_rust.rs +0 -0
  71. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/coverage_rust_e2e.rs +0 -0
  72. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/coverage_ts.rs +0 -0
  73. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/coverage_ts_e2e.rs +0 -0
  74. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/diff_scoping.rs +0 -0
  75. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/bad_exempt/cli.py +0 -0
  76. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/bad_exempt/testing-conventions.toml +0 -0
  77. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/clean/pkg/helper.py +0 -0
  78. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/clean/widget.py +0 -0
  79. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/python_conftest/conftest.py +0 -0
  80. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/python_conftest/widget.py +0 -0
  81. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/python_exempt/__init__.py +0 -0
  82. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/python_exempt/cli.py +0 -0
  83. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/python_exempt/core.py +0 -0
  84. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/python_exempt/pkg/__init__.py +0 -0
  85. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/python_exempt/testing-conventions.toml +0 -0
  86. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/python_tiers/pyproject.toml +0 -0
  87. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/python_tiers/src/widget.py +0 -0
  88. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/python_tiers/tests/e2e/support.py +0 -0
  89. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/python_tiers/tests/integration/helper.py +0 -0
  90. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/red/lonely.py +0 -0
  91. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/red/pkg/orphan.py +0 -0
  92. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/red/pkg/paired.py +0 -0
  93. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/red/widget.py +0 -0
  94. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/stale_exempt/core.py +0 -0
  95. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/stale_exempt/testing-conventions.toml +0 -0
  96. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/typescript/clean/ambient.d.mts +0 -0
  97. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/typescript/clean/button.test.tsx +0 -0
  98. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/typescript/clean/button.tsx +0 -0
  99. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/typescript/clean/legacy.cts +0 -0
  100. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/typescript/clean/legacy.test.cts +0 -0
  101. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/typescript/clean/pkg/helper.test.ts +0 -0
  102. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/typescript/clean/pkg/helper.ts +0 -0
  103. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/typescript/clean/service.mts +0 -0
  104. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/typescript/clean/service.test.mts +0 -0
  105. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/typescript/clean/types.d.ts +0 -0
  106. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/typescript/clean/widget.test.ts +0 -0
  107. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/typescript/clean/widget.ts +0 -0
  108. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/typescript/exempt/index.ts +0 -0
  109. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/typescript/exempt/testing-conventions.toml +0 -0
  110. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/typescript/exempt/widget.test.ts +0 -0
  111. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/typescript/exempt/widget.ts +0 -0
  112. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/typescript/red/bridge.cts +0 -0
  113. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/typescript/red/lonely.ts +0 -0
  114. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/typescript/red/pkg/orphan.ts +0 -0
  115. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/typescript/red/shapes.d.cts +0 -0
  116. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/typescript/red/shapes.d.ts +0 -0
  117. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/typescript/red/solo.mts +0 -0
  118. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/typescript/red/widget.test.ts +0 -0
  119. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/typescript/red/widget.ts +0 -0
  120. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/typescript_tiers/package.json +0 -0
  121. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/typescript_tiers/src/widget.test.ts +0 -0
  122. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/typescript_tiers/src/widget.ts +0 -0
  123. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/colocated_test/typescript_tiers/tests/integration/helper.ts +0 -0
  124. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/e2e_extra_scope.toml +0 -0
  125. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/e2e_extra_scope_only.toml +0 -0
  126. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/e2e_unknown_key.toml +0 -0
  127. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/exempt.toml +0 -0
  128. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/exempt_empty_reason.toml +0 -0
  129. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/exempt_lines.toml +0 -0
  130. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/exempt_lines_bad_rule.toml +0 -0
  131. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/exempt_no_reason.toml +0 -0
  132. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/integration_lint/python/constant_patch/waived/testing-conventions.toml +0 -0
  133. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/integration_lint/python/environ/waived/testing-conventions.toml +0 -0
  134. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/integration_lint/python/inline_patch/waived/testing-conventions.toml +0 -0
  135. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/integration_lint/python/legacy_prefix/test_widget.py +0 -0
  136. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/integration_lint/python/monkeypatch/waived/testing-conventions.toml +0 -0
  137. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/integration_lint/python/no_first_party_patch/clean/pyproject.toml +0 -0
  138. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/integration_lint/python/no_first_party_patch/red/pyproject.toml +0 -0
  139. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/integration_lint/python/no_first_party_patch/waived/pyproject.toml +0 -0
  140. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/integration_lint/python/no_first_party_patch/waived/testing-conventions.toml +0 -0
  141. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/integration_lint/python/tier_layout/clean/pyproject.toml +0 -0
  142. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/integration_lint/python/tier_layout/clean/src/widget.py +0 -0
  143. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/integration_lint/python/tier_layout/red_e2e/pyproject.toml +0 -0
  144. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/integration_lint/python/tier_layout/red_e2e/src/widget.py +0 -0
  145. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/integration_lint/python/tier_layout/red_integration/pyproject.toml +0 -0
  146. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/integration_lint/python/tier_layout/red_integration/src/widget.py +0 -0
  147. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/integration_lint/python/tier_layout/unknown_tier/pyproject.toml +0 -0
  148. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/integration_lint/python/tier_layout/unknown_tier/src/widget.py +0 -0
  149. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/integration_lint/typescript/no_first_party_mock/clean/charge.test.ts +0 -0
  150. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/integration_lint/typescript/no_first_party_mock/clean/views/report.test.tsx +0 -0
  151. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/integration_lint/typescript/no_first_party_mock/red/charge.test.ts +0 -0
  152. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/integration_lint/typescript/no_first_party_mock/red/notify.test.mts +0 -0
  153. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/integration_lint/typescript/tier_layout/red/package.json +0 -0
  154. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/integration_lint/typescript/tier_layout/red/src/widget.ts +0 -0
  155. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/integration_lint/typescript/tier_layout/red/tests/integration/flow.test.ts +0 -0
  156. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/integration_lint/typescript/tier_layout/unknown_tier/package.json +0 -0
  157. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/integration_lint/typescript/tier_layout/unknown_tier/src/widget.ts +0 -0
  158. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/integration_lint/typescript/tier_layout/unknown_tier/tests/loose.test.ts +0 -0
  159. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/isolation/unit/stale_exempt.toml +0 -0
  160. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/malformed.toml +0 -0
  161. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/packaging/python_clean/widget.py +0 -0
  162. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/packaging/python_red/widget.py +0 -0
  163. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/packaging/python_sdist/clean-0.1.0.tar.gz +0 -0
  164. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/packaging/python_sdist/make_sdist.py +0 -0
  165. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/packaging/python_sdist/widget-0.1.0.tar.gz +0 -0
  166. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/packaging/python_wheel/clean.whl +0 -0
  167. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/packaging/python_wheel/make_wheels.py +0 -0
  168. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/packaging/python_wheel/red.whl +0 -0
  169. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/packaging/rust_crate/clean-0.1.0.crate +0 -0
  170. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/packaging/rust_crate/make_crates.py +0 -0
  171. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/packaging/rust_crate/widget-0.1.0.crate +0 -0
  172. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/packaging/typescript_clean/button.ts +0 -0
  173. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/packaging/typescript_npm/clean.tgz +0 -0
  174. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/packaging/typescript_npm/make_tarballs.py +0 -0
  175. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/packaging/typescript_npm/red.tgz +0 -0
  176. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/packaging/typescript_red/button.test.ts +0 -0
  177. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/packaging/typescript_red/button.ts +0 -0
  178. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/partial_coverage.toml +0 -0
  179. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/python_build_command.toml +0 -0
  180. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/python_build_command_blank_reason.toml +0 -0
  181. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/python_build_command_no_reason.toml +0 -0
  182. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/rust_build_command.toml +0 -0
  183. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/typescript_build_command.toml +0 -0
  184. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/typescript_build_command_blank_reason.toml +0 -0
  185. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/floor100.toml +0 -0
  186. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/floor100_exempt_shim.toml +0 -0
  187. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/floor85.toml +0 -0
  188. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/lines_py_shim_ok.toml +0 -0
  189. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/lines_py_shim_over.toml +0 -0
  190. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/lines_py_shim_under.toml +0 -0
  191. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/lines_rust_over.toml +0 -0
  192. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/lines_rust_shim_ok.toml +0 -0
  193. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/lines_ts_over.toml +0 -0
  194. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/lines_ts_shim_ok.toml +0 -0
  195. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/python/above_85/router.py +0 -0
  196. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/python/below_85/grade.py +0 -0
  197. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/python/conftest_omit/conftest.py +0 -0
  198. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/python/conftest_omit/widget.py +0 -0
  199. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/python/exempt_cov/core.py +0 -0
  200. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/python/exempt_cov/shim.py +0 -0
  201. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/python/full/widget.py +0 -0
  202. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/rust_branch_full.toml +0 -0
  203. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/rust_branch_mid.toml +0 -0
  204. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/rust_features_full.toml +0 -0
  205. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/rust_full.toml +0 -0
  206. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/rust_full_exempt_shim.toml +0 -0
  207. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/rust_functions_full.toml +0 -0
  208. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/rust_functions_mid.toml +0 -0
  209. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/rust_mid.toml +0 -0
  210. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/typescript/above/router.test.ts +0 -0
  211. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/typescript/above/router.ts +0 -0
  212. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/typescript/below/grade.test.ts +0 -0
  213. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/typescript/below/grade.ts +0 -0
  214. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/typescript/exempt_cov/core.test.ts +0 -0
  215. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/typescript/exempt_cov/core.ts +0 -0
  216. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/typescript/exempt_cov/shim.test.ts +0 -0
  217. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/typescript/exempt_cov/shim.ts +0 -0
  218. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/typescript/full/widget.test.ts +0 -0
  219. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/typescript/full/widget.ts +0 -0
  220. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/typescript/full_with_config/vitest.config.ts +0 -0
  221. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/typescript/full_with_config/widget.test.ts +0 -0
  222. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/typescript/full_with_config/widget.ts +0 -0
  223. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/typescript/package-lock.json +0 -0
  224. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/typescript/package.json +0 -0
  225. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/typescript/ts_full.toml +0 -0
  226. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/typescript/ts_full_exempt_shim.toml +0 -0
  227. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_coverage/typescript/ts_mid.toml +0 -0
  228. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_isolation/python/barrel/clean/myproject/__init__.py +0 -0
  229. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_isolation/python/barrel/clean/myproject/core.py +0 -0
  230. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_isolation/python/barrel/clean/pyproject.toml +0 -0
  231. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_isolation/python/barrel/red/myproject/__init__.py +0 -0
  232. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_isolation/python/barrel/red/myproject/core.py +0 -0
  233. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_isolation/python/barrel/red/pyproject.toml +0 -0
  234. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_isolation/python/clean/pyproject.toml +0 -0
  235. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_isolation/python/external/clean/pyproject.toml +0 -0
  236. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_isolation/python/external/red/pyproject.toml +0 -0
  237. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_isolation/python/external/waived/pyproject.toml +0 -0
  238. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_isolation/python/external/waived/testing-conventions.toml +0 -0
  239. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_isolation/python/legacy_prefix/pyproject.toml +0 -0
  240. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_isolation/python/legacy_prefix/test_widget.py +0 -0
  241. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_isolation/python/overmatch/clean/pyproject.toml +0 -0
  242. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_isolation/python/overmatch/red/pyproject.toml +0 -0
  243. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_isolation/python/red/pyproject.toml +0 -0
  244. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_isolation/python/tier_layout/pyproject.toml +0 -0
  245. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_isolation/python/tier_layout/src/widget.py +0 -0
  246. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_isolation/python/waived/pyproject.toml +0 -0
  247. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_isolation/python/waived/testing-conventions.toml +0 -0
  248. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_isolation/python/wrong_module/red/pyproject.toml +0 -0
  249. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_isolation/typescript/clean/widget.test.ts +0 -0
  250. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_isolation/typescript/ext_normalize/clean/widget.test.ts +0 -0
  251. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_isolation/typescript/red/widget.test.ts +0 -0
  252. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_isolation/typescript/tier_layout/package.json +0 -0
  253. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_isolation/typescript/tier_layout/src/widget.ts +0 -0
  254. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_isolation/typescript/tier_layout/tests/integration/flow.test.ts +0 -0
  255. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_isolation/typescript/untyped_mock/clean/widget.test.ts +0 -0
  256. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_isolation/typescript/untyped_mock/red/widget.test.ts +0 -0
  257. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_isolation/typescript/untyped_mock/spy_clean/widget.test.ts +0 -0
  258. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_mutation/lines_mut_py_ok.toml +0 -0
  259. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_mutation/lines_mut_py_over.toml +0 -0
  260. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_mutation/lines_mut_rust_ok.toml +0 -0
  261. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_mutation/lines_mut_rust_over.toml +0 -0
  262. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_mutation/lines_mut_ts_ok.toml +0 -0
  263. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_mutation/lines_mut_ts_over.toml +0 -0
  264. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_mutation/lines_mut_ts_under.toml +0 -0
  265. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_mutation/mutation_exempt.toml +0 -0
  266. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_mutation/mutation_exempt_py.toml +0 -0
  267. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_mutation/mutation_exempt_ts.toml +0 -0
  268. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_mutation/python/killed/calc.py +0 -0
  269. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_mutation/python/survivors/calc.py +0 -0
  270. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_mutation/rust_features.toml +0 -0
  271. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_mutation/typescript/killed/index.test.ts +0 -0
  272. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_mutation/typescript/killed/index.ts +0 -0
  273. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_mutation/typescript/killed/stryker.conf.json +0 -0
  274. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_mutation/typescript/package-lock.json +0 -0
  275. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_mutation/typescript/package.json +0 -0
  276. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_mutation/typescript/survivors/index.test.ts +0 -0
  277. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_mutation/typescript/survivors/index.ts +0 -0
  278. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unit_mutation/typescript/survivors/stryker.conf.json +0 -0
  279. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unknown_coverage_field.toml +0 -0
  280. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/unknown_key.toml +0 -0
  281. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/valid.toml +0 -0
  282. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/workflow/clean/conventions.yml +0 -0
  283. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/workflow/install_line/conventions.yml +0 -0
  284. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/fixtures/workflow/red/conventions.yml +0 -0
  285. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/install.rs +0 -0
  286. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/install_e2e.rs +0 -0
  287. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/integration_lint.rs +0 -0
  288. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/integration_lint_e2e.rs +0 -0
  289. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/isolation.rs +0 -0
  290. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/isolation_e2e.rs +0 -0
  291. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/mutation_base_py.rs +0 -0
  292. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/mutation_base_rust.rs +0 -0
  293. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/mutation_base_ts.rs +0 -0
  294. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/mutation_features_e2e.rs +0 -0
  295. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/mutation_line_exempt_e2e.rs +0 -0
  296. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/mutation_provision_rust.rs +0 -0
  297. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/mutation_python.rs +0 -0
  298. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/mutation_python_e2e.rs +0 -0
  299. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/mutation_rust.rs +0 -0
  300. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/mutation_rust_e2e.rs +0 -0
  301. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/mutation_typescript.rs +0 -0
  302. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/mutation_typescript_e2e.rs +0 -0
  303. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/packaging.rs +0 -0
  304. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/packaging_crate.rs +0 -0
  305. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/packaging_crate_e2e.rs +0 -0
  306. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/packaging_e2e.rs +0 -0
  307. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/packaging_npm.rs +0 -0
  308. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/packaging_npm_e2e.rs +0 -0
  309. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/packaging_sdist.rs +0 -0
  310. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/packaging_sdist_e2e.rs +0 -0
  311. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/packaging_wheel.rs +0 -0
  312. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/packaging_wheel_e2e.rs +0 -0
  313. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/py_unit_isolation.rs +0 -0
  314. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/py_unit_isolation_e2e.rs +0 -0
  315. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/rust_integration_lint.rs +0 -0
  316. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/rust_integration_lint_e2e.rs +0 -0
  317. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/ts_integration_lint.rs +0 -0
  318. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/ts_integration_lint_e2e.rs +0 -0
  319. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/unit_isolation.rs +0 -0
  320. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/unit_isolation_e2e.rs +0 -0
  321. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/workflow.rs +0 -0
  322. {testing_conventions-0.0.77 → testing_conventions-0.0.78}/rust/tests/workflow_e2e.rs +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testing-conventions
3
- Version: 0.0.77
3
+ Version: 0.0.78
4
4
  Requires-Dist: cosmic-ray
5
5
  Requires-Dist: coverage
6
6
  Summary: Enforce testing conventions in libraries (Python, TypeScript, and Rust).
@@ -7,6 +7,25 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
7
7
 
8
8
  ### Changed
9
9
 
10
+ - **E2E attestation is one branch-keyed decision per branch, not a SHA-fresh stamp per push.**
11
+ `e2e attest '<cmd>'` now writes `e2e-attestations/<branch-slug>.json` — keyed by the
12
+ branch so parallel pull requests write distinct files and never merge-conflict — recording the
13
+ command, timestamp, exit code, commit, and branch; it prunes the receipts other branches left
14
+ behind. The command is unrestricted and *is* the judgment being recorded: the full suite, a
15
+ subset, or a no-op are all valid receipts. `e2e verify --base <ref>` asks two content questions
16
+ of `<base>...HEAD`: a branch that left the scoped source untouched passes with no receipt owed,
17
+ and a branch that changed it passes when its diff adds or updates a receipt. It no longer
18
+ compares commit SHAs, so one receipt covers the branch — later pushes stay green, and rebases
19
+ and squash merges never disturb it. Without `--base`, `verify` checks receipt presence.
20
+ The filename derivation is public: **`e2e slug [branch]`** prints the standardized slug
21
+ (default: the checked-out branch), and `e2e::branch_slug` exposes it in the crate API;
22
+ `Attestation` gains a `branch` field recording the raw name. `attest` requires a checked-out
23
+ branch (a detached `HEAD` is an error naming the fix) and collects a committed legacy
24
+ `e2e-attestation.json` in the same receipt commit.
25
+ **Breaking:** the single `e2e-attestation.json` is replaced by the `e2e-attestations/`
26
+ directory (`e2e::ATTESTATION_PATH` by `e2e::RECEIPTS_DIR`), `Verification::Stale` is gone,
27
+ and the exact-match freshness contract is retired. See `MIGRATIONS.md`.
28
+
10
29
  - **The suite tiers derive from the package root** (#418). `integration lint` takes its subjects
11
30
  from the standard suite directories — `<package root>/tests/integration/` and
12
31
  `<package root>/tests/e2e/`, both run first-party code for real and so both are held to the
@@ -1203,7 +1203,7 @@ dependencies = [
1203
1203
 
1204
1204
  [[package]]
1205
1205
  name = "testing-conventions"
1206
- version = "0.0.77"
1206
+ version = "0.0.78"
1207
1207
  dependencies = [
1208
1208
  "anyhow",
1209
1209
  "clap",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "testing-conventions"
3
- version = "0.0.77"
3
+ version = "0.0.78"
4
4
  edition = "2021"
5
5
  license = "MIT"
6
6
  authors = ["Kevin Scott <me@thekevinscott.com>"]
@@ -15,6 +15,17 @@ Each entry has five sections, in order:
15
15
 
16
16
  ### Summary
17
17
 
18
+ Retires the exact-match e2e freshness contract in favor of **one branch-keyed decision per
19
+ branch**. `e2e attest '<cmd>'` writes `e2e-attestations/<branch-slug>.json` — parallel
20
+ pull requests write distinct files, so attestation merge conflicts are structurally gone — and
21
+ prunes the receipts other branches left behind. The command is unrestricted and is itself the
22
+ judgment being recorded: the full suite, a targeted subset, or a no-op are all valid receipts.
23
+ `e2e verify --base <ref>` asks two content questions of `<base>...HEAD`: did the branch change
24
+ the scoped source (no → pass, nothing owed), and does its diff add or update a receipt (yes →
25
+ pass; no → fail, naming `attest` as the fix). Commit SHAs are no longer compared, so one receipt
26
+ covers the branch — later pushes stay green, and rebases and squash merges never disturb it.
27
+ Without `--base`, `verify` checks that a committed receipt is present.
28
+
18
29
  Derives the suite tiers from the package root (#418). `integration lint` takes its subjects from
19
30
  the standard suite directories — `<package root>/tests/integration/` and
20
31
  `<package root>/tests/e2e/`, both of which run first-party code for real and so are held to the
@@ -714,6 +725,16 @@ and `--base` semantics are unchanged; only the consumer-visible **check names**
714
725
 
715
726
  ### Required changes
716
727
 
728
+ **Re-attest once per open branch; delete the legacy `e2e-attestation.json`.** The single-file
729
+ attestation is replaced by the `e2e-attestations/` directory. A branch open across the upgrade
730
+ that changed scoped source runs `e2e attest '<cmd>'` once (writing its branch-keyed receipt); the
731
+ legacy file at the package root is deleted whenever convenient — `verify` no longer reads it.
732
+ `attest` must run on a checked-out branch: a detached `HEAD` is an error naming the fix.
733
+
734
+ `e2e::Verification` loses its `Stale { attested, latest }` variant — freshness is no longer a
735
+ SHA comparison — and `e2e::ATTESTATION_PATH` (the single-file location) is replaced by the
736
+ receipts-directory constant. Exhaustive `match`es on `Verification` drop the `Stale` arm.
737
+
717
738
  **Move each suite to its standard tier, or exempt it** (#418). `integration lint` finds the
718
739
  integration and e2e suites at `<package root>/tests/integration/` and `<package root>/tests/e2e/`
719
740
  (Rust: the crate root's `tests/`). A Python/TypeScript package whose suites live elsewhere moves
@@ -984,6 +1005,14 @@ a deprecation cycle (pre-1.0, so no prior warning was shipped).
984
1005
 
985
1006
  ### Behavior changes without code changes
986
1007
 
1008
+ The `e2e verify` gate re-demands a receipt only when scoped **content** changes, once per branch.
1009
+ A branch that attests and then pushes further scoped commits stays green (previously each scoped
1010
+ push re-demanded a fresh attestation naming its newest commit); a rebase or squash merge leaves a
1011
+ receipt standing (previously either could strand the recorded SHA and red the gate with nothing
1012
+ to re-run). The reusable workflow's e2e-verify job discovers receipts at `e2e-attestations/`
1013
+ instead of the single `e2e-attestation.json`, so a repo that has not yet re-attested with the new
1014
+ CLI has its gate skip (verify-if-present) rather than fail until its next scoped branch attests.
1015
+
987
1016
  `integration lint` scans the derived suite tiers instead of the scanned `path` (#418). Three
988
1017
  verdicts can move at the same invocation: a suite beside the scanned source directory is now
989
1018
  linted (violations it always carried now fail the gate — previously the scan never reached it); a
@@ -1236,6 +1265,18 @@ Exemptions (#32) change runtime behavior:
1236
1265
 
1237
1266
  ### Verification
1238
1267
 
1268
+ ```
1269
+ git checkout -b tc-migration-check
1270
+ testing-conventions e2e attest 'true'
1271
+ ls e2e-attestations/
1272
+ testing-conventions e2e verify --base origin/main
1273
+ ```
1274
+
1275
+ Expected: `attest` commits one `e2e-attestations/<branch-slug>.json` naming the branch;
1276
+ `verify` passes. Push a scoped source change on a second branch without attesting and `verify
1277
+ --base origin/main` fails there, naming `e2e attest` as the fix; rebasing the attested branch
1278
+ onto a moved `main` leaves its `verify` green.
1279
+
1239
1280
  ```
1240
1281
  testing-conventions integration lint --language python <package>/src
1241
1282
  testing-conventions unit lint --language python <package>
@@ -0,0 +1,431 @@
1
+ //! `e2e attest` / `e2e verify` — the e2e decision nudge.
2
+ //!
3
+ //! `attest` runs the e2e command of the runner's choosing and records the
4
+ //! decision as a branch-keyed receipt; `verify` confirms in CI that a branch
5
+ //! changing the scoped source carries a receipt in its own diff. CI never runs
6
+ //! e2e, and the command is unrestricted — the choice of command (the full
7
+ //! suite, a targeted subset, a no-op) *is* the judgment the receipt records.
8
+
9
+ use std::path::{Path, PathBuf};
10
+ use std::process::Command;
11
+ use std::time::{SystemTime, UNIX_EPOCH};
12
+
13
+ use anyhow::{bail, Context, Result};
14
+ use serde::{Deserialize, Serialize};
15
+
16
+ /// Where the branch-keyed receipts live, relative to the package root. Each
17
+ /// receipt is `<branch_slug>.json`, so parallel branches write distinct files.
18
+ pub const RECEIPTS_DIR: &str = "e2e-attestations";
19
+
20
+ /// The retired single-file attestation location: never read as a receipt and
21
+ /// never counted as scoped source, so a branch deleting it owes nothing.
22
+ const LEGACY_ATTESTATION: &str = "e2e-attestation.json";
23
+
24
+ /// A record of one e2e decision — written to `RECEIPTS_DIR/<branch_slug>.json`
25
+ /// and committed by [`attest`].
26
+ ///
27
+ /// Everything here is information for humans — [`verify`] reads only the
28
+ /// receipt's presence in the branch's diff, never its contents.
29
+ #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
30
+ pub struct Attestation {
31
+ /// The command that was run (e.g. `pnpm run e2e`) — the judgment itself.
32
+ pub command: String,
33
+ /// When it ran, as a Unix timestamp (seconds).
34
+ pub ran_at: u64,
35
+ /// The command's exit code — recorded, never gated on.
36
+ pub exit_code: i32,
37
+ /// The commit the run was made against (HEAD at attest time).
38
+ pub commit: String,
39
+ /// The raw branch name the receipt is keyed by (the filename carries only
40
+ /// its sanitized slug).
41
+ #[serde(default)]
42
+ pub branch: String,
43
+ }
44
+
45
+ /// The standardized receipt slug for a branch name — the receipt lives at
46
+ /// `e2e-attestations/<slug>.json`. Lowercased; every character outside
47
+ /// `[a-z0-9._-]` becomes `-`; runs of `-` collapse to one; truncated to 80
48
+ /// characters; leading/trailing `-` and `.` trimmed; an empty result falls
49
+ /// back to `branch`. Deterministic and git-free, so a script can locate a
50
+ /// branch's receipt; exposed on the CLI as `e2e slug`.
51
+ pub fn branch_slug(branch: &str) -> String {
52
+ let mut slug = String::new();
53
+ for c in branch.to_lowercase().chars() {
54
+ let mapped = if c.is_ascii_lowercase() || c.is_ascii_digit() || c == '.' || c == '_' {
55
+ c
56
+ } else {
57
+ '-'
58
+ };
59
+ if mapped == '-' && slug.ends_with('-') {
60
+ continue;
61
+ }
62
+ slug.push(mapped);
63
+ }
64
+ let slug: String = slug.chars().take(80).collect();
65
+ let slug = slug.trim_matches(|c| c == '-' || c == '.');
66
+ if slug.is_empty() {
67
+ "branch".to_string()
68
+ } else {
69
+ slug.to_string()
70
+ }
71
+ }
72
+
73
+ /// The checked-out branch of `repo`, or an error naming the fix on a detached
74
+ /// HEAD — the receipt is keyed by branch, so attest needs one.
75
+ pub(crate) fn current_branch(repo: &Path) -> Result<String> {
76
+ git_capture(repo, &["symbolic-ref", "--short", "-q", "HEAD"]).context(
77
+ "resolving the current branch — the receipt is keyed by branch, so this \
78
+ must run on a checked-out branch (a detached HEAD has none): `git switch <branch>`",
79
+ )
80
+ }
81
+
82
+ /// Run `command` in `repo`, write the branch's receipt to
83
+ /// `repo`/[`RECEIPTS_DIR`]`/<branch_slug>.json`, prune the receipts other
84
+ /// branches left behind (and the retired single-file attestation), and commit.
85
+ /// Returns the attestation.
86
+ ///
87
+ /// Writes regardless of the command's exit code — the record is the decision
88
+ /// and what ran, and the honest result is part of the record.
89
+ pub fn attest(repo: &Path, command: &str) -> Result<Attestation> {
90
+ let commit = git_capture(repo, &["rev-parse", "HEAD"])
91
+ .context("resolving HEAD — `e2e attest` must run inside a git repo with a commit")?;
92
+ let branch = current_branch(repo)?;
93
+
94
+ // Run the e2e command via the shell, streaming its output through.
95
+ let status = Command::new("sh")
96
+ .arg("-c")
97
+ .arg(command)
98
+ .current_dir(repo)
99
+ .status()
100
+ .with_context(|| format!("running e2e command `{command}`"))?;
101
+ let exit_code = status.code().unwrap_or(-1);
102
+
103
+ let ran_at = SystemTime::now()
104
+ .duration_since(UNIX_EPOCH)
105
+ .map(|d| d.as_secs())
106
+ .unwrap_or(0);
107
+
108
+ let attestation = Attestation {
109
+ command: command.to_string(),
110
+ ran_at,
111
+ exit_code,
112
+ commit,
113
+ branch: branch.clone(),
114
+ };
115
+
116
+ // Prune sibling receipts — dead weight once their branches merge, since
117
+ // `verify` reads only the current branch's diff. Write-once files make the
118
+ // deletions merge-clean (delete/delete or delete/absent, never a conflict).
119
+ let dir = repo.join(RECEIPTS_DIR);
120
+ std::fs::create_dir_all(&dir).with_context(|| format!("creating {}", dir.display()))?;
121
+ for entry in std::fs::read_dir(&dir).with_context(|| format!("reading {}", dir.display()))? {
122
+ let path = entry?.path();
123
+ if path.extension().is_some_and(|e| e == "json") {
124
+ std::fs::remove_file(&path).with_context(|| format!("pruning {}", path.display()))?;
125
+ }
126
+ }
127
+ let path = dir.join(format!("{}.json", branch_slug(&branch)));
128
+ let json = serde_json::to_string_pretty(&attestation).context("serializing the receipt")?;
129
+ std::fs::write(&path, format!("{json}\n"))
130
+ .with_context(|| format!("writing {}", path.display()))?;
131
+ git_run(repo, &["add", "-A", "--", RECEIPTS_DIR])?;
132
+
133
+ // The retired single-file attestation is dead weight too; collect it here
134
+ // so the migration is one attest away.
135
+ if pathspec_matches_tracked(repo, LEGACY_ATTESTATION)? {
136
+ git_run(
137
+ repo,
138
+ &["rm", "-q", "--ignore-unmatch", "--", LEGACY_ATTESTATION],
139
+ )?;
140
+ }
141
+
142
+ let message = format!("e2e attestation for {branch}");
143
+ // A plain commit that inherits the repo's signing policy: a repo requiring
144
+ // verified signatures gets a signed (mergeable) receipt, instead of the
145
+ // unsigned commit a forced `commit.gpgsign=false` would leave behind.
146
+ git_run(repo, &["commit", "-q", "-m", message.as_str()])?;
147
+
148
+ Ok(attestation)
149
+ }
150
+
151
+ /// The outcome of [`verify`] — whether a committed receipt answers the branch's
152
+ /// e2e nudge.
153
+ #[derive(Debug, Clone, PartialEq, Eq)]
154
+ pub enum Verification {
155
+ /// The branch owes no decision (its scoped diff is empty), or a receipt in
156
+ /// its diff answers the one it owes — the gate passes.
157
+ Fresh,
158
+ /// No receipt answers the nudge: the branch changed the scoped source and
159
+ /// its diff adds or updates no receipt (or, without a base, no committed
160
+ /// receipt is present at all) — the gate fails.
161
+ Missing,
162
+ }
163
+
164
+ /// Verify the e2e decision at `repo` — the CI side of the nudge. Reads only
165
+ /// receipt presence and content diffs: never runs e2e, never inspects a
166
+ /// recorded command or exit code, never compares commit SHAs.
167
+ ///
168
+ /// Equivalent to [`verify_scoped`] with `scope` set to `repo`.
169
+ pub fn verify(repo: &Path) -> Result<Verification> {
170
+ verify_scoped(repo, repo)
171
+ }
172
+
173
+ /// Verify the e2e decision at `repo`, with `scope` (rather than all of `repo`)
174
+ /// defining what counts as scoped source.
175
+ ///
176
+ /// `repo` and `scope` serve different roles: `repo` is where the receipts live
177
+ /// (the package root — a manifest's own natural home), while `scope` is what
178
+ /// counts as "code" (the directory a `path`-scoped call actually named, which
179
+ /// can be narrower — a package root commonly also holds `tests/`, docs, and
180
+ /// config files that aren't the attestable source). `scope` must be `repo` or
181
+ /// a descendant of it.
182
+ ///
183
+ /// Equivalent to [`verify_since`] with no `base`.
184
+ pub fn verify_scoped(repo: &Path, scope: &Path) -> Result<Verification> {
185
+ verify_since(repo, scope, None)
186
+ }
187
+
188
+ /// Equivalent to [`verify_extra_scoped`] with no extra roots and no excludes.
189
+ pub fn verify_since(repo: &Path, scope: &Path, base: Option<&str>) -> Result<Verification> {
190
+ verify_extra_scoped(repo, scope, base, &[], &[])
191
+ }
192
+
193
+ /// Verify the e2e decision at `repo`, joining **extra scopes** outside `scope`
194
+ /// into what counts as scoped source.
195
+ ///
196
+ /// With `base`, both checks are content diffs of `<base>...HEAD`, read from
197
+ /// the merge base — indifferent to commit identity, so rebases and squash
198
+ /// merges never disturb a receipt:
199
+ ///
200
+ /// 1. A branch whose diff leaves the scoped source untouched owes no decision
201
+ /// and passes. The scoped source is the union of `scope` and every
202
+ /// repo-root-relative `extra_scopes` entry (a shared source tree beside the
203
+ /// package — a native core bound into several bindings — which no `scope`
204
+ /// at-or-below `repo` can reach), minus the `excludes` (feature-gated
205
+ /// subtrees compiled out of the package). Receipts and the retired
206
+ /// single-file attestation are never scoped source.
207
+ /// 2. Otherwise the branch passes when its diff **adds or updates** a receipt
208
+ /// under `repo`'s receipts directory. A deletion (the prune) is not a
209
+ /// decision.
210
+ ///
211
+ /// Without `base` there is no branch diff to read, so presence is the check: a
212
+ /// committed receipt at `repo` passes.
213
+ pub fn verify_extra_scoped(
214
+ repo: &Path,
215
+ scope: &Path,
216
+ base: Option<&str>,
217
+ extra_scopes: &[PathBuf],
218
+ excludes: &[PathBuf],
219
+ ) -> Result<Verification> {
220
+ let Some(base) = base else {
221
+ return Ok(if has_receipts(repo) {
222
+ Verification::Fresh
223
+ } else {
224
+ Verification::Missing
225
+ });
226
+ };
227
+ validate_scopes(repo, scope, extra_scopes)?;
228
+
229
+ // Question 1 — did this branch change the scoped source? `<base>...HEAD`
230
+ // diffs from the merge base, so only the branch's own changes count.
231
+ let mut args: Vec<String> = vec![
232
+ "diff".into(),
233
+ "--quiet".into(),
234
+ format!("{base}...HEAD"),
235
+ "--".into(),
236
+ relative_pathspec(repo, scope),
237
+ ];
238
+ for extra in extra_scopes {
239
+ args.push(format!(":(top){}", extra.display()));
240
+ }
241
+ args.push(format!(":(exclude){RECEIPTS_DIR}"));
242
+ args.push(format!(":(exclude){LEGACY_ATTESTATION}"));
243
+ // Receipts and legacy files anywhere in the tree (a monorepo sibling's, an
244
+ // extra scope's) are never scoped source either.
245
+ args.push(format!(":(top,exclude,glob)**/{RECEIPTS_DIR}/**"));
246
+ args.push(format!(":(top,exclude,glob)**/{LEGACY_ATTESTATION}"));
247
+ for exclude in excludes {
248
+ args.push(format!(":(top,exclude){}", exclude.display()));
249
+ }
250
+ let arg_refs: Vec<&str> = args.iter().map(String::as_str).collect();
251
+ if !git_diff_changed(repo, &arg_refs)? {
252
+ return Ok(Verification::Fresh);
253
+ }
254
+
255
+ // Question 2 — does the branch's diff add or update a receipt? The
256
+ // diff-filter drops deletions, so the prune never counts as a decision.
257
+ let out = git_capture(
258
+ repo,
259
+ &[
260
+ "diff",
261
+ "--name-only",
262
+ "--diff-filter=ACMRT",
263
+ &format!("{base}...HEAD"),
264
+ "--",
265
+ RECEIPTS_DIR,
266
+ ],
267
+ )?;
268
+ Ok(if out.is_empty() {
269
+ Verification::Missing
270
+ } else {
271
+ Verification::Fresh
272
+ })
273
+ }
274
+
275
+ /// `true` when a receipt (`*.json` under [`RECEIPTS_DIR`]) sits at `repo`.
276
+ fn has_receipts(repo: &Path) -> bool {
277
+ let Ok(entries) = std::fs::read_dir(repo.join(RECEIPTS_DIR)) else {
278
+ return false;
279
+ };
280
+ entries
281
+ .flatten()
282
+ .any(|e| e.path().extension().is_some_and(|ext| ext == "json") && e.path().is_file())
283
+ }
284
+
285
+ /// `scope` as a pathspec relative to `repo` (git resolves pathspecs relative to
286
+ /// the invocation's cwd, which is always `repo` here). `.` when `scope` is
287
+ /// `repo` itself.
288
+ fn relative_pathspec(repo: &Path, scope: &Path) -> String {
289
+ if scope == repo {
290
+ return ".".to_string();
291
+ }
292
+ match scope.strip_prefix(repo) {
293
+ Ok(rel) if !rel.as_os_str().is_empty() => rel.to_string_lossy().into_owned(),
294
+ _ => scope.to_string_lossy().into_owned(),
295
+ }
296
+ }
297
+
298
+ /// Confirm `scope` and every `extra_scope` name at least one path git tracks under
299
+ /// `repo`, erroring loudly on one that matches nothing (#391).
300
+ ///
301
+ /// A typo'd or outside `scope` otherwise falls through [`relative_pathspec`] as a
302
+ /// pathspec matching nothing, and a diff over nothing is always empty — a branch
303
+ /// that changed real source would pass forever. Each `extra_scope` has the same
304
+ /// failure mode: a misspelled shared-tree root silently drops out of the scoped
305
+ /// diff. Confirming the pathspec matches a tracked path first turns both into an
306
+ /// honest error naming the bad scope.
307
+ fn validate_scopes(repo: &Path, scope: &Path, extra_scopes: &[PathBuf]) -> Result<()> {
308
+ let scope_spec = relative_pathspec(repo, scope);
309
+ if !pathspec_matches_tracked(repo, &scope_spec)? {
310
+ bail!(
311
+ "e2e verify: --scope `{}` matches no tracked path under `{}` — \
312
+ --scope must name `{}` or a directory beneath it that git tracks",
313
+ scope.display(),
314
+ repo.display(),
315
+ repo.display(),
316
+ );
317
+ }
318
+ for extra in extra_scopes {
319
+ let extra_spec = format!(":(top){}", extra.display());
320
+ if !pathspec_matches_tracked(repo, &extra_spec)? {
321
+ bail!(
322
+ "e2e verify: --extra-scope `{}` matches no tracked path — \
323
+ --extra-scope must name a repo-root-relative directory that git tracks",
324
+ extra.display(),
325
+ );
326
+ }
327
+ }
328
+ Ok(())
329
+ }
330
+
331
+ /// `true` when git tracks at least one path matching `pathspec` (run with cwd
332
+ /// `repo`). A pathspec git rejects as outside the repository exits non-zero; that
333
+ /// is treated identically to "matches nothing" — either way the scope names no
334
+ /// tracked path.
335
+ fn pathspec_matches_tracked(repo: &Path, pathspec: &str) -> Result<bool> {
336
+ let out = Command::new("git")
337
+ .args(["ls-files", "--", pathspec])
338
+ .current_dir(repo)
339
+ .output()
340
+ .with_context(|| format!("running `git ls-files -- {pathspec}`"))?;
341
+ Ok(out.status.success() && !out.stdout.is_empty())
342
+ }
343
+
344
+ /// Run `git diff --quiet …` in `repo`: `false` for no differences, `true` for
345
+ /// differences, an error (with git's stderr) for anything else — a bad base
346
+ /// ref must fail loudly, never read as "no changes".
347
+ fn git_diff_changed(repo: &Path, args: &[&str]) -> Result<bool> {
348
+ let out = Command::new("git")
349
+ .args(args)
350
+ .current_dir(repo)
351
+ .output()
352
+ .with_context(|| format!("running `git {}`", args.join(" ")))?;
353
+ match out.status.code() {
354
+ Some(0) => Ok(false),
355
+ Some(1) => Ok(true),
356
+ _ => bail!(
357
+ "`git {}` failed: {}",
358
+ args.join(" "),
359
+ String::from_utf8_lossy(&out.stderr).trim()
360
+ ),
361
+ }
362
+ }
363
+
364
+ /// Run `git` with `args` in `repo`, returning trimmed stdout; errors if git fails.
365
+ fn git_capture(repo: &Path, args: &[&str]) -> Result<String> {
366
+ let out = Command::new("git")
367
+ .args(args)
368
+ .current_dir(repo)
369
+ .output()
370
+ .with_context(|| format!("running `git {}`", args.join(" ")))?;
371
+ if !out.status.success() {
372
+ bail!(
373
+ "`git {}` failed: {}",
374
+ args.join(" "),
375
+ String::from_utf8_lossy(&out.stderr).trim()
376
+ );
377
+ }
378
+ Ok(String::from_utf8(out.stdout)?.trim().to_string())
379
+ }
380
+
381
+ /// Run `git` with `args` in `repo` for its side effect; errors if git fails.
382
+ fn git_run(repo: &Path, args: &[&str]) -> Result<()> {
383
+ let status = Command::new("git")
384
+ .args(args)
385
+ .current_dir(repo)
386
+ .status()
387
+ .with_context(|| format!("running `git {}`", args.join(" ")))?;
388
+ if !status.success() {
389
+ bail!("`git {}` failed", args.join(" "));
390
+ }
391
+ Ok(())
392
+ }
393
+
394
+ #[cfg(test)]
395
+ mod tests {
396
+ use super::branch_slug;
397
+
398
+ #[test]
399
+ fn slug_lowercases_and_maps_separators() {
400
+ assert_eq!(branch_slug("feature/one"), "feature-one");
401
+ assert_eq!(branch_slug("Feature/One"), "feature-one");
402
+ assert_eq!(
403
+ branch_slug("claude/e2e-attestation-conflicts-mrkc1b"),
404
+ "claude-e2e-attestation-conflicts-mrkc1b"
405
+ );
406
+ }
407
+
408
+ #[test]
409
+ fn slug_keeps_dots_and_underscores() {
410
+ assert_eq!(branch_slug("v1.2_rc"), "v1.2_rc");
411
+ }
412
+
413
+ #[test]
414
+ fn slug_collapses_runs_and_trims_edges() {
415
+ assert_eq!(branch_slug("wip//Émil's"), "wip-mil-s");
416
+ assert_eq!(branch_slug("--dashes--"), "dashes");
417
+ assert_eq!(branch_slug(".hidden."), "hidden");
418
+ }
419
+
420
+ #[test]
421
+ fn slug_truncates_to_80() {
422
+ let long = "x".repeat(300);
423
+ assert_eq!(branch_slug(&long).len(), 80);
424
+ }
425
+
426
+ #[test]
427
+ fn slug_never_returns_empty() {
428
+ assert_eq!(branch_slug(""), "branch");
429
+ assert_eq!(branch_slug("É"), "branch");
430
+ }
431
+ }