@overkill-dev/run 0.0.83 → 0.0.85
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.
- package/attachments/failure-artifact-stream.js +2 -2
- package/attachments/failure-artifact-stream.js.map +1 -1
- package/attachments/run-json-artifact.js +1 -1
- package/attachments/run-json-artifact.js.map +1 -1
- package/baselines/calibration-store.js +2 -2
- package/baselines/calibration-store.js.map +1 -1
- package/baselines/performance-adapter.d.ts +2 -2
- package/baselines/performance-adapter.d.ts.map +1 -1
- package/baselines/performance-baseline.d.ts +2 -2
- package/baselines/performance-baseline.d.ts.map +1 -1
- package/baselines/performance-baseline.js +1 -1
- package/baselines/performance-baseline.js.map +1 -1
- package/baselines/performance-check.js +2 -2
- package/baselines/performance-check.js.map +1 -1
- package/baselines/performance-evaluation.js +1 -1
- package/baselines/performance-evaluation.js.map +1 -1
- package/baselines/performance-observation.js +1 -1
- package/baselines/performance-observation.js.map +1 -1
- package/baselines/performance-plan.js +3 -3
- package/baselines/performance-plan.js.map +1 -1
- package/baselines/performance-store.js +2 -2
- package/baselines/performance-store.js.map +1 -1
- package/baselines/performance-workflow.js +2 -2
- package/baselines/performance-workflow.js.map +1 -1
- package/bench/benchmark-statistics-schema.d.ts +1 -1
- package/bench/benchmark-statistics-schema.d.ts.map +1 -1
- package/bench/calibration-evidence.js +1 -1
- package/bench/calibration-evidence.js.map +1 -1
- package/bench/calibration-report.d.ts +1 -1
- package/bench/calibration-report.d.ts.map +1 -1
- package/bench/timeline-schema.js +1 -1
- package/bench/timeline-schema.js.map +1 -1
- package/config/config.js +1 -1
- package/config/config.js.map +1 -1
- package/config/execution.d.ts +1 -1
- package/config/execution.d.ts.map +1 -1
- package/config/property-policy.js +1 -1
- package/config/property-policy.js.map +1 -1
- package/config/schema.d.ts +4 -4
- package/config/schema.d.ts.map +1 -1
- package/config/schema.js +2 -2
- package/config/schema.js.map +1 -1
- package/config/types.d.ts +6 -6
- package/config/types.d.ts.map +1 -1
- package/package.json +4 -28
- package/packages/run/run.entry-point.d.ts +3 -3
- package/packages/run/run.entry-point.d.ts.map +1 -1
- package/packages/run/run.entry-point.js +1 -1
- package/packages/run/run.entry-point.js.map +1 -1
- package/reporters/human-reporter-rendering.js +2 -2
- package/reporters/human-reporter-rendering.js.map +1 -1
- package/reporters/line-failure-rendering.js +1 -1
- package/reporters/line-failure-rendering.js.map +1 -1
- package/reporters/line-reporter.js +2 -2
- package/reporters/line-reporter.js.map +1 -1
- package/reporters/progress-reporter.js +1 -1
- package/reporters/progress-reporter.js.map +1 -1
- package/reporters/tree-reporter.js +1 -1
- package/reporters/tree-reporter.js.map +1 -1
- package/resources/resource-definition-shape.d.ts +1 -1
- package/resources/resource-definition-shape.d.ts.map +1 -1
- package/resources/resource-workload-binding.js +2 -2
- package/resources/resource-workload-binding.js.map +1 -1
- package/run/attachment-eligibility.js +1 -1
- package/run/attachment-eligibility.js.map +1 -1
- package/run/attachment-execution.js +2 -2
- package/run/attachment-execution.js.map +1 -1
- package/run/attachment-failure.js +1 -1
- package/run/attachment-failure.js.map +1 -1
- package/run/attachment-protocol.js +1 -1
- package/run/attachment-protocol.js.map +1 -1
- package/run/attachment-reporter.js +2 -2
- package/run/attachment-reporter.js.map +1 -1
- package/run/attachment-results.js +3 -3
- package/run/attachment-results.js.map +1 -1
- package/run/attachment-retention.js +1 -1
- package/run/attachment-retention.js.map +1 -1
- package/run/attachment-store.js +1 -1
- package/run/attachment-store.js.map +1 -1
- package/run/benchmark-baseline-commands.js +1 -1
- package/run/benchmark-baseline-commands.js.map +1 -1
- package/run/benchmark-baseline-finalization.js +1 -1
- package/run/benchmark-baseline-finalization.js.map +1 -1
- package/run/benchmark-garbage-collection.js +1 -1
- package/run/benchmark-garbage-collection.js.map +1 -1
- package/run/benchmark-policy-schema.js +1 -1
- package/run/benchmark-policy-schema.js.map +1 -1
- package/run/benchmark-report-metadata.js +1 -1
- package/run/benchmark-report-metadata.js.map +1 -1
- package/run/benchmark-result-schema.js +1 -1
- package/run/benchmark-result-schema.js.map +1 -1
- package/run/calibration-capture-session.js +2 -2
- package/run/calibration-capture-session.js.map +1 -1
- package/run/calibration-inventory.js +2 -2
- package/run/calibration-inventory.js.map +1 -1
- package/run/calibration-maintenance.js +1 -1
- package/run/calibration-maintenance.js.map +1 -1
- package/run/capability-policy-snapshots.d.ts +1 -1
- package/run/capability-policy-snapshots.d.ts.map +1 -1
- package/run/capability-policy.js +3 -3
- package/run/capability-policy.js.map +1 -1
- package/run/collected-run-execution.js +1 -1
- package/run/collected-run-execution.js.map +1 -1
- package/run/collected-run-plan-schema.js +2 -2
- package/run/collected-run-plan-schema.js.map +1 -1
- package/run/collected-run-plan.js +4 -4
- package/run/collected-run-plan.js.map +1 -1
- package/run/command-line-command.d.ts +1 -1
- package/run/command-line-command.d.ts.map +1 -1
- package/run/command-line-command.js +1 -1
- package/run/command-line-command.js.map +1 -1
- package/run/command-line-config.d.ts +1 -1
- package/run/command-line-config.d.ts.map +1 -1
- package/run/default-direct-reporter.js +1 -1
- package/run/default-direct-reporter.js.map +1 -1
- package/run/default-run-engine.js +7 -7
- package/run/default-run-engine.js.map +1 -1
- package/run/direct-entrypoint-collection.js +3 -3
- package/run/direct-entrypoint-collection.js.map +1 -1
- package/run/execution-plan-resolution.js +1 -1
- package/run/execution-plan-resolution.js.map +1 -1
- package/run/execution-session-child.js +1 -1
- package/run/execution-session-child.js.map +1 -1
- package/run/execution-session-collected.js +1 -1
- package/run/execution-session-collected.js.map +1 -1
- package/run/execution-session-host.js +1 -1
- package/run/execution-session-host.js.map +1 -1
- package/run/execution-session-lifecycle.js +2 -2
- package/run/execution-session-lifecycle.js.map +1 -1
- package/run/execution-session-observation.js +1 -1
- package/run/execution-session-observation.js.map +1 -1
- package/run/execution-session-schema.js +1 -1
- package/run/execution-session-schema.js.map +1 -1
- package/run/execution-session-types.d.ts +1 -1
- package/run/execution-session-types.d.ts.map +1 -1
- package/run/execution-session.js +1 -1
- package/run/execution-session.js.map +1 -1
- package/run/failure-artifact-retention.js +2 -2
- package/run/failure-artifact-retention.js.map +1 -1
- package/run/file-module-boundary.d.ts.map +1 -1
- package/run/file-module-boundary.js +36 -3
- package/run/file-module-boundary.js.map +1 -1
- package/run/frozen-run-policy.js +1 -1
- package/run/frozen-run-policy.js.map +1 -1
- package/run/initialized-run-collection.js +1 -1
- package/run/initialized-run-collection.js.map +1 -1
- package/run/node-command-line-runner.d.ts +1 -1
- package/run/node-command-line-runner.d.ts.map +1 -1
- package/run/node-process-policy-observation.js +1 -1
- package/run/node-process-policy-observation.js.map +1 -1
- package/run/node-run-execution.js +1 -1
- package/run/node-run-execution.js.map +1 -1
- package/run/node-run-orchestrator-dependencies.js +1 -1
- package/run/node-run-orchestrator-dependencies.js.map +1 -1
- package/run/permission-denial-runtime-policy.js +3 -3
- package/run/permission-denial-runtime-policy.js.map +1 -1
- package/run/placement-trace.d.ts +2 -2
- package/run/placement-trace.d.ts.map +1 -1
- package/run/property-collection.js +1 -1
- package/run/property-collection.js.map +1 -1
- package/run/recorded-coverage-session.js +1 -1
- package/run/recorded-coverage-session.js.map +1 -1
- package/run/reporter-event-schema.js +1 -1
- package/run/reporter-event-schema.js.map +1 -1
- package/run/resource-lifecycle-boundaries.js +1 -1
- package/run/resource-lifecycle-boundaries.js.map +1 -1
- package/run/resource-lifecycle-cache-identity.js +2 -2
- package/run/resource-lifecycle-cache-identity.js.map +1 -1
- package/run/resource-lifecycle-composition.d.ts +1 -1
- package/run/resource-lifecycle-composition.d.ts.map +1 -1
- package/run/resource-lifecycle-error.d.ts +1 -1
- package/run/resource-lifecycle-error.d.ts.map +1 -1
- package/run/resource-lifecycle-error.js +1 -1
- package/run/resource-lifecycle-error.js.map +1 -1
- package/run/resource-lifecycle-session-acquirer.js +1 -1
- package/run/resource-lifecycle-session-acquirer.js.map +1 -1
- package/run/resource-lifecycle-state.d.ts +3 -3
- package/run/resource-lifecycle-state.d.ts.map +1 -1
- package/run/resource-lifecycle-state.js +2 -2
- package/run/resource-lifecycle-state.js.map +1 -1
- package/run/resource-ownership-plan.d.ts +2 -2
- package/run/resource-ownership-plan.d.ts.map +1 -1
- package/run/retry-artifact-retention.js +1 -1
- package/run/retry-artifact-retention.js.map +1 -1
- package/run/run-artifact-schema.d.ts +1 -1
- package/run/run-artifact-schema.d.ts.map +1 -1
- package/run/run-case-facts.js +1 -1
- package/run/run-case-facts.js.map +1 -1
- package/run/run-collection-error-result.js +2 -2
- package/run/run-collection-error-result.js.map +1 -1
- package/run/run-discovery-types.d.ts +1 -1
- package/run/run-discovery-types.d.ts.map +1 -1
- package/run/run-engine-primitives.d.ts +8 -8
- package/run/run-engine-primitives.d.ts.map +1 -1
- package/run/run-engine-selection.d.ts +1 -1
- package/run/run-engine-selection.d.ts.map +1 -1
- package/run/run-errors.d.ts +2 -2
- package/run/run-errors.d.ts.map +1 -1
- package/run/run-errors.js +1 -1
- package/run/run-errors.js.map +1 -1
- package/run/run-if-main-options.d.ts +3 -3
- package/run/run-if-main-options.d.ts.map +1 -1
- package/run/run-if-main.d.ts +1 -1
- package/run/run-if-main.d.ts.map +1 -1
- package/run/run-list-renderer.js +2 -2
- package/run/run-list-renderer.js.map +1 -1
- package/run/run-local-sharding.js +1 -1
- package/run/run-local-sharding.js.map +1 -1
- package/run/run-local-test-plan.js +21 -17
- package/run/run-local-test-plan.js.map +1 -1
- package/run/run-record-outcomes.d.ts +5 -5
- package/run/run-record-outcomes.d.ts.map +1 -1
- package/run/run-record-result.d.ts +1 -1
- package/run/run-record-result.d.ts.map +1 -1
- package/run/run-record-result.js +2 -2
- package/run/run-record-result.js.map +1 -1
- package/run/run-record-storage.js +1 -1
- package/run/run-record-storage.js.map +1 -1
- package/run/run-record-types.d.ts +3 -3
- package/run/run-record-types.d.ts.map +1 -1
- package/run/run-request-types.d.ts +3 -3
- package/run/run-request-types.d.ts.map +1 -1
- package/run/run-result-reporting.js +1 -1
- package/run/run-result-reporting.js.map +1 -1
- package/run/run-result-schema.d.ts +1 -1
- package/run/run-result-schema.d.ts.map +1 -1
- package/run/run-runtime-schema.js +1 -1
- package/run/run-runtime-schema.js.map +1 -1
- package/run/run-selection-filters.d.ts +2 -2
- package/run/run-selection-filters.d.ts.map +1 -1
- package/run/run-selection-filters.js +1 -1
- package/run/run-selection-filters.js.map +1 -1
- package/run/run-selection.js +2 -2
- package/run/run-selection.js.map +1 -1
- package/run/run-sharding.js +1 -1
- package/run/run-sharding.js.map +1 -1
- package/run/run-test-modules.d.ts +3 -3
- package/run/run-test-modules.d.ts.map +1 -1
- package/run/run-timing-collection.d.ts +2 -2
- package/run/run-timing-collection.d.ts.map +1 -1
- package/run/run-timing-collection.js +1 -1
- package/run/run-timing-collection.js.map +1 -1
- package/run/run-types.d.ts +1 -1
- package/run/run-types.d.ts.map +1 -1
- package/run/run-validation.js +1 -1
- package/run/run-validation.js.map +1 -1
- package/run/simulation-witness.js +1 -1
- package/run/simulation-witness.js.map +1 -1
- package/run/supervised-child-execution.js +3 -3
- package/run/supervised-child-execution.js.map +1 -1
- package/run/supervised-child-test-plan.js +1 -1
- package/run/supervised-child-test-plan.js.map +1 -1
- package/run/supervised-child.js +1 -1
- package/run/supervised-child.js.map +1 -1
- package/run/supervised-output-capture.js +1 -1
- package/run/supervised-output-capture.js.map +1 -1
- package/run/supervised-protocol.js +1 -1
- package/run/supervised-protocol.js.map +1 -1
- package/run/supervised-run-process-policy.js +2 -2
- package/run/supervised-run-process-policy.js.map +1 -1
- package/run/supervised-run-runtime.js +1 -1
- package/run/supervised-run-runtime.js.map +1 -1
- package/run/supervised-run-state.js +3 -3
- package/run/supervised-run-state.js.map +1 -1
- package/run/work-unit-identity.js +1 -1
- package/run/work-unit-identity.js.map +1 -1
- package/run/work-unit-planning.js +1 -1
- package/run/work-unit-planning.js.map +1 -1
- package/run/work-unit-resource-constraints.js +2 -2
- package/run/work-unit-resource-constraints.js.map +1 -1
- package/run/worker-execution-engine.js +2 -2
- package/run/worker-execution-engine.js.map +1 -1
- package/run/worker-pool-hedge-dispatch.js +1 -1
- package/run/worker-pool-hedge-dispatch.js.map +1 -1
- package/run/worker-pool-hedged-arbitration.js +1 -1
- package/run/worker-pool-hedged-arbitration.js.map +1 -1
- package/run/worker-pool-host.entry-point.js +1 -1
- package/run/worker-pool-host.entry-point.js.map +1 -1
- package/run/worker-pool-output.js +1 -1
- package/run/worker-pool-output.js.map +1 -1
- package/run/worker-pool-pending-splitting.js +1 -1
- package/run/worker-pool-pending-splitting.js.map +1 -1
- package/run/worker-pool-placement-planning.js +1 -1
- package/run/worker-pool-placement-planning.js.map +1 -1
- package/run/worker-pool-resource-lifecycle-execution.js +1 -1
- package/run/worker-pool-resource-lifecycle-execution.js.map +1 -1
- package/run/worker-pool-results.js +1 -1
- package/run/worker-pool-results.js.map +1 -1
- package/run/worker-pool-task-events.js +2 -2
- package/run/worker-pool-task-events.js.map +1 -1
- package/run/worker-pool-warm-lane-affinity.js +1 -1
- package/run/worker-pool-warm-lane-affinity.js.map +1 -1
- package/run/worker-pool-work-load.js +1 -1
- package/run/worker-pool-work-load.js.map +1 -1
- package/run/worker-pool-worker-plan.js +2 -2
- package/run/worker-pool-worker-plan.js.map +1 -1
- package/run/worker-pool-worker-resources.js +1 -1
- package/run/worker-pool-worker-resources.js.map +1 -1
- package/run/worker-pool-worker.js +1 -1
- package/run/worker-pool-worker.js.map +1 -1
- package/run/workload-input-validation.js +1 -1
- package/run/workload-input-validation.js.map +1 -1
- package/software-bill-of-materials.cyclonedx.json +21 -38
- package/transcript/http-transcript-artifact.js +1 -1
- package/transcript/http-transcript-artifact.js.map +1 -1
- package/assertion-protocol/assertion-evaluation.js +0 -6
- package/assertion-protocol/assertion-evaluation.js.map +0 -1
- package/assertion-protocol/assertion-node-shape.d.ts +0 -81
- package/assertion-protocol/assertion-node-shape.d.ts.map +0 -1
- package/assertion-protocol/assertion-node.d.ts +0 -82
- package/assertion-protocol/assertion-node.d.ts.map +0 -1
- package/assertion-protocol/assertion-node.js +0 -33
- package/assertion-protocol/assertion-node.js.map +0 -1
- package/assertion-protocol/assertion-reference.d.ts +0 -50
- package/assertion-protocol/assertion-reference.d.ts.map +0 -1
- package/assertion-protocol/assertion-reference.js +0 -22
- package/assertion-protocol/assertion-reference.js.map +0 -1
- package/assertion-protocol/assertions/boolean.d.ts +0 -4
- package/assertion-protocol/assertions/boolean.d.ts.map +0 -1
- package/assertion-protocol/assertions/boolean.js +0 -12
- package/assertion-protocol/assertions/boolean.js.map +0 -1
- package/assertion-protocol/assertions/collection.d.ts +0 -13
- package/assertion-protocol/assertions/collection.d.ts.map +0 -1
- package/assertion-protocol/assertions/collection.js +0 -21
- package/assertion-protocol/assertions/collection.js.map +0 -1
- package/assertion-protocol/assertions/dispatch.js +0 -47
- package/assertion-protocol/assertions/dispatch.js.map +0 -1
- package/assertion-protocol/assertions/equality.d.ts +0 -6
- package/assertion-protocol/assertions/equality.d.ts.map +0 -1
- package/assertion-protocol/assertions/equality.js +0 -24
- package/assertion-protocol/assertions/equality.js.map +0 -1
- package/assertion-protocol/assertions/fail.d.ts +0 -8
- package/assertion-protocol/assertions/fail.d.ts.map +0 -1
- package/assertion-protocol/assertions/fail.js +0 -8
- package/assertion-protocol/assertions/fail.js.map +0 -1
- package/assertion-protocol/assertions/numeric.d.ts +0 -16
- package/assertion-protocol/assertions/numeric.d.ts.map +0 -1
- package/assertion-protocol/assertions/numeric.js +0 -43
- package/assertion-protocol/assertions/numeric.js.map +0 -1
- package/assertion-protocol/assertions/partial.d.ts +0 -5
- package/assertion-protocol/assertions/partial.d.ts.map +0 -1
- package/assertion-protocol/assertions/partial.js +0 -17
- package/assertion-protocol/assertions/partial.js.map +0 -1
- package/assertion-protocol/assertions/presence.d.ts +0 -6
- package/assertion-protocol/assertions/presence.d.ts.map +0 -1
- package/assertion-protocol/assertions/presence.js +0 -20
- package/assertion-protocol/assertions/presence.js.map +0 -1
- package/assertion-protocol/assertions/string.d.ts +0 -15
- package/assertion-protocol/assertions/string.d.ts.map +0 -1
- package/assertion-protocol/assertions/string.js +0 -33
- package/assertion-protocol/assertions/string.js.map +0 -1
- package/assertion-protocol/assertions/type-shape.d.ts +0 -23
- package/assertion-protocol/assertions/type-shape.d.ts.map +0 -1
- package/assertion-protocol/assertions/type-shape.js +0 -43
- package/assertion-protocol/assertions/type-shape.js.map +0 -1
- package/assertion-protocol/collection-count.js +0 -42
- package/assertion-protocol/collection-count.js.map +0 -1
- package/assertion-protocol/evaluation.js +0 -175
- package/assertion-protocol/evaluation.js.map +0 -1
- package/assertion-protocol/partial-matching.js +0 -13
- package/assertion-protocol/partial-matching.js.map +0 -1
- package/assertion-protocol/source-location-forwarding.js +0 -32
- package/assertion-protocol/source-location-forwarding.js.map +0 -1
- package/assertion-protocol/source-location.js +0 -119
- package/assertion-protocol/source-location.js.map +0 -1
- package/assertion-protocol/thrown-error-record.d.ts +0 -7
- package/assertion-protocol/thrown-error-record.d.ts.map +0 -1
- package/assertion-protocol/thrown-error-record.js +0 -17
- package/assertion-protocol/thrown-error-record.js.map +0 -1
- package/assertion-protocol/thrown-matcher.d.ts +0 -34
- package/assertion-protocol/thrown-matcher.d.ts.map +0 -1
- package/assertion-protocol/thrown-matcher.js +0 -201
- package/assertion-protocol/thrown-matcher.js.map +0 -1
- package/attachments/json-snapshot.js +0 -125
- package/attachments/json-snapshot.js.map +0 -1
- package/canonical-identity.js +0 -54
- package/canonical-identity.js.map +0 -1
- package/compare/comparison-result.js +0 -47
- package/compare/comparison-result.js.map +0 -1
- package/compare/comparison-state.js +0 -20
- package/compare/comparison-state.js.map +0 -1
- package/compare/comparison.js +0 -78
- package/compare/comparison.js.map +0 -1
- package/compare/diff-path.js +0 -37
- package/compare/diff-path.js.map +0 -1
- package/compare/raw-comparison.js +0 -285
- package/compare/raw-comparison.js.map +0 -1
- package/compare/serialized-value-classification.js +0 -99
- package/compare/serialized-value-classification.js.map +0 -1
- package/compare/serialized-value-shape.d.ts +0 -134
- package/compare/serialized-value-shape.d.ts.map +0 -1
- package/compare/serialized-value-shape.js +0 -12
- package/compare/serialized-value-shape.js.map +0 -1
- package/compare/serialized-value-state.js +0 -55
- package/compare/serialized-value-state.js.map +0 -1
- package/compare/serialized-value.d.ts +0 -4
- package/compare/serialized-value.d.ts.map +0 -1
- package/compare/serialized-value.js +0 -389
- package/compare/serialized-value.js.map +0 -1
- package/compare/structured-diff.js +0 -382
- package/compare/structured-diff.js.map +0 -1
- package/compare/value-classification.js +0 -112
- package/compare/value-classification.js.map +0 -1
- package/diff/binary-diff.js +0 -49
- package/diff/binary-diff.js.map +0 -1
- package/diff/diff-shape.d.ts +0 -122
- package/diff/diff-shape.d.ts.map +0 -1
- package/diff/string-diff.js +0 -22
- package/diff/string-diff.js.map +0 -1
- package/engine/assertion-facade.d.ts +0 -47
- package/engine/assertion-facade.d.ts.map +0 -1
- package/engine/assertion-facade.js +0 -362
- package/engine/assertion-facade.js.map +0 -1
- package/engine/assertion-recorder.d.ts +0 -12
- package/engine/assertion-recorder.d.ts.map +0 -1
- package/engine/assertion-recorder.js +0 -251
- package/engine/assertion-recorder.js.map +0 -1
- package/engine/async-control.d.ts +0 -7
- package/engine/async-control.d.ts.map +0 -1
- package/engine/async-control.js +0 -162
- package/engine/async-control.js.map +0 -1
- package/engine/async-leak-diagnostics.js +0 -188
- package/engine/async-leak-diagnostics.js.map +0 -1
- package/engine/benchmark-environment.d.ts +0 -8
- package/engine/benchmark-environment.d.ts.map +0 -1
- package/engine/benchmark-garbage-collection.d.ts +0 -8
- package/engine/benchmark-garbage-collection.d.ts.map +0 -1
- package/engine/benchmark-garbage-collection.js +0 -4
- package/engine/benchmark-garbage-collection.js.map +0 -1
- package/engine/benchmark-limits.js +0 -3
- package/engine/benchmark-limits.js.map +0 -1
- package/engine/benchmark-node.d.ts +0 -37
- package/engine/benchmark-node.d.ts.map +0 -1
- package/engine/benchmark-node.js +0 -9
- package/engine/benchmark-node.js.map +0 -1
- package/engine/benchmark-result.d.ts +0 -247
- package/engine/benchmark-result.d.ts.map +0 -1
- package/engine/benchmark-result.js +0 -2
- package/engine/benchmark-result.js.map +0 -1
- package/engine/benchmark-timeline.d.ts +0 -12
- package/engine/benchmark-timeline.d.ts.map +0 -1
- package/engine/case-attempt-execution.js +0 -234
- package/engine/case-attempt-execution.js.map +0 -1
- package/engine/case-body-execution.js +0 -232
- package/engine/case-body-execution.js.map +0 -1
- package/engine/case-execution-lifecycle.js +0 -22
- package/engine/case-execution-lifecycle.js.map +0 -1
- package/engine/case-execution.d.ts +0 -14
- package/engine/case-execution.d.ts.map +0 -1
- package/engine/case-execution.js +0 -225
- package/engine/case-execution.js.map +0 -1
- package/engine/case-interruption.js +0 -26
- package/engine/case-interruption.js.map +0 -1
- package/engine/coverage-artifact.d.ts +0 -36
- package/engine/coverage-artifact.d.ts.map +0 -1
- package/engine/custom-assertion-recording.js +0 -175
- package/engine/custom-assertion-recording.js.map +0 -1
- package/engine/engine.d.ts +0 -21
- package/engine/engine.d.ts.map +0 -1
- package/engine/engine.js +0 -35
- package/engine/engine.js.map +0 -1
- package/engine/execution-async-leak-policy.d.ts +0 -3
- package/engine/execution-async-leak-policy.d.ts.map +0 -1
- package/engine/execution-async-leak-policy.js +0 -95
- package/engine/execution-async-leak-policy.js.map +0 -1
- package/engine/execution-error-ownership.d.ts +0 -6
- package/engine/execution-error-ownership.d.ts.map +0 -1
- package/engine/execution-error-ownership.js +0 -83
- package/engine/execution-error-ownership.js.map +0 -1
- package/engine/execution-global-error-observer.d.ts +0 -15
- package/engine/execution-global-error-observer.d.ts.map +0 -1
- package/engine/execution-global-error-observer.js +0 -276
- package/engine/execution-global-error-observer.js.map +0 -1
- package/engine/execution-observation.js +0 -212
- package/engine/execution-observation.js.map +0 -1
- package/engine/execution-options.d.ts +0 -39
- package/engine/execution-options.d.ts.map +0 -1
- package/engine/execution-options.js +0 -42
- package/engine/execution-options.js.map +0 -1
- package/engine/execution-preparation.d.ts +0 -13
- package/engine/execution-preparation.d.ts.map +0 -1
- package/engine/execution-preparation.js +0 -34
- package/engine/execution-preparation.js.map +0 -1
- package/engine/execution-process-budget-breach.d.ts +0 -8
- package/engine/execution-process-budget-breach.d.ts.map +0 -1
- package/engine/execution-process-budget-breach.js +0 -30
- package/engine/execution-process-budget-breach.js.map +0 -1
- package/engine/execution-process-budget-tracking.js +0 -33
- package/engine/execution-process-budget-tracking.js.map +0 -1
- package/engine/execution-process-tracked-cases.js +0 -40
- package/engine/execution-process-tracked-cases.js.map +0 -1
- package/engine/execution-result.js +0 -120
- package/engine/execution-result.js.map +0 -1
- package/engine/execution-supervision-state.js +0 -54
- package/engine/execution-supervision-state.js.map +0 -1
- package/engine/execution-supervision.d.ts +0 -16
- package/engine/execution-supervision.d.ts.map +0 -1
- package/engine/execution-supervision.js +0 -345
- package/engine/execution-supervision.js.map +0 -1
- package/engine/execution-test-plan-cases.js +0 -216
- package/engine/execution-test-plan-cases.js.map +0 -1
- package/engine/execution-test-plan-process-usage.js +0 -14
- package/engine/execution-test-plan-process-usage.js.map +0 -1
- package/engine/execution.d.ts +0 -8
- package/engine/execution.d.ts.map +0 -1
- package/engine/execution.js +0 -71
- package/engine/execution.js.map +0 -1
- package/engine/identity.d.ts +0 -31
- package/engine/identity.d.ts.map +0 -1
- package/engine/identity.js +0 -68
- package/engine/identity.js.map +0 -1
- package/engine/native-resource-observation.js +0 -70
- package/engine/native-resource-observation.js.map +0 -1
- package/engine/node-assertion-error.js +0 -47
- package/engine/node-assertion-error.js.map +0 -1
- package/engine/process-usage-growth.js +0 -12
- package/engine/process-usage-growth.js.map +0 -1
- package/engine/process-usage.d.ts +0 -22
- package/engine/process-usage.d.ts.map +0 -1
- package/engine/property-node.d.ts +0 -30
- package/engine/property-node.d.ts.map +0 -1
- package/engine/property-node.js +0 -9
- package/engine/property-node.js.map +0 -1
- package/engine/recorded-assertion-failure.js +0 -30
- package/engine/recorded-assertion-failure.js.map +0 -1
- package/engine/reporter-dispatcher.d.ts +0 -17
- package/engine/reporter-dispatcher.d.ts.map +0 -1
- package/engine/reporter-dispatcher.js +0 -316
- package/engine/reporter-dispatcher.js.map +0 -1
- package/engine/reporter-disposal.js +0 -13
- package/engine/reporter-disposal.js.map +0 -1
- package/engine/reporter-error-delivery-tracking.js +0 -33
- package/engine/reporter-error-delivery-tracking.js.map +0 -1
- package/engine/reporter-event-queue.js +0 -55
- package/engine/reporter-event-queue.js.map +0 -1
- package/engine/reporter-managed-output.js +0 -105
- package/engine/reporter-managed-output.js.map +0 -1
- package/engine/reporter-output-scope.js +0 -65
- package/engine/reporter-output-scope.js.map +0 -1
- package/engine/reporter-output.d.ts +0 -28
- package/engine/reporter-output.d.ts.map +0 -1
- package/engine/reporter-output.js +0 -17
- package/engine/reporter-output.js.map +0 -1
- package/engine/reporter.d.ts +0 -197
- package/engine/reporter.d.ts.map +0 -1
- package/engine/reporter.js +0 -111
- package/engine/reporter.js.map +0 -1
- package/engine/reporting-context.d.ts +0 -6
- package/engine/reporting-context.d.ts.map +0 -1
- package/engine/reporting-context.js +0 -74
- package/engine/reporting-context.js.map +0 -1
- package/engine/require-assertion-facade.d.ts +0 -18
- package/engine/require-assertion-facade.d.ts.map +0 -1
- package/engine/require-assertion-facade.js +0 -128
- package/engine/require-assertion-facade.js.map +0 -1
- package/engine/resource-owner-observation.js +0 -143
- package/engine/resource-owner-observation.js.map +0 -1
- package/engine/retry-policy.d.ts +0 -4
- package/engine/retry-policy.d.ts.map +0 -1
- package/engine/retry-policy.js +0 -22
- package/engine/retry-policy.js.map +0 -1
- package/engine/run-artifact.d.ts +0 -45
- package/engine/run-artifact.d.ts.map +0 -1
- package/engine/run-result.d.ts +0 -215
- package/engine/run-result.d.ts.map +0 -1
- package/engine/run-result.js +0 -202
- package/engine/run-result.js.map +0 -1
- package/engine/run-timings.d.ts +0 -57
- package/engine/run-timings.d.ts.map +0 -1
- package/engine/run-timings.js +0 -120
- package/engine/run-timings.js.map +0 -1
- package/engine/runner-error-reporting.js +0 -29
- package/engine/runner-error-reporting.js.map +0 -1
- package/engine/runtime-attachment.d.ts +0 -82
- package/engine/runtime-attachment.d.ts.map +0 -1
- package/engine/test-attempt-history.js +0 -25
- package/engine/test-attempt-history.js.map +0 -1
- package/engine/test-body-resource-attachment.d.ts +0 -53
- package/engine/test-body-resource-attachment.d.ts.map +0 -1
- package/engine/test-body-resource-attachment.js +0 -30
- package/engine/test-body-resource-attachment.js.map +0 -1
- package/engine/test-body.d.ts +0 -16
- package/engine/test-body.d.ts.map +0 -1
- package/engine/test-body.js +0 -51
- package/engine/test-body.js.map +0 -1
- package/engine/test-data.d.ts +0 -25
- package/engine/test-data.d.ts.map +0 -1
- package/engine/test-data.js +0 -126
- package/engine/test-data.js.map +0 -1
- package/engine/test-node.d.ts +0 -178
- package/engine/test-node.d.ts.map +0 -1
- package/engine/test-node.js +0 -226
- package/engine/test-node.js.map +0 -1
- package/engine/test-plan.d.ts +0 -52
- package/engine/test-plan.d.ts.map +0 -1
- package/engine/test-plan.js +0 -315
- package/engine/test-plan.js.map +0 -1
- package/engine/test-scope-lifecycle.js +0 -65
- package/engine/test-scope-lifecycle.js.map +0 -1
- package/engine/throwing-test-scope.js +0 -27
- package/engine/throwing-test-scope.js.map +0 -1
- package/engine/workload-input.d.ts +0 -3
- package/engine/workload-input.d.ts.map +0 -1
- package/engine/workload-input.js +0 -54
- package/engine/workload-input.js.map +0 -1
- package/engine/workload-parameters.d.ts +0 -3
- package/engine/workload-parameters.d.ts.map +0 -1
- package/engine/workload-parameters.js +0 -67
- package/engine/workload-parameters.js.map +0 -1
- package/engine/workload-test-case.d.ts +0 -8
- package/engine/workload-test-case.d.ts.map +0 -1
- package/engine/workload-test-case.js +0 -33
- package/engine/workload-test-case.js.map +0 -1
- package/stored-value.js +0 -12
- package/stored-value.js.map +0 -1
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
import { createThrownErrorRecord } from "../assertion-protocol/thrown-error-record.js";
|
|
2
|
-
import { isTestContractFailure, RequireFailedSignalError, TestContractSignalError } from "./assertion-recorder.js";
|
|
3
|
-
import { isNodeAssertionError, nodeAssertionErrorFailure } from "./node-assertion-error.js";
|
|
4
|
-
import { isCaseRunnerError, permissionDeniedRunnerErrorFromThrown } from "./run-result.js";
|
|
5
|
-
import { readTestBodyFamily } from "./test-body.js";
|
|
6
|
-
export function createBenchmarkAttempt(testCase, onUpdate, benchmarkEnvironment) {
|
|
7
|
-
let result = null;
|
|
8
|
-
const errors = [];
|
|
9
|
-
const cleanupErrors = [];
|
|
10
|
-
return {
|
|
11
|
-
benchmarkEnvironment,
|
|
12
|
-
cleanupErrors() {
|
|
13
|
-
return cleanupErrors;
|
|
14
|
-
},
|
|
15
|
-
reportCleanupError(error) {
|
|
16
|
-
cleanupErrors.push(error);
|
|
17
|
-
},
|
|
18
|
-
result() {
|
|
19
|
-
return result;
|
|
20
|
-
},
|
|
21
|
-
errors() {
|
|
22
|
-
return errors;
|
|
23
|
-
},
|
|
24
|
-
async updateResult(updated) {
|
|
25
|
-
result = updated;
|
|
26
|
-
await onUpdate(updated);
|
|
27
|
-
},
|
|
28
|
-
reportError(error) {
|
|
29
|
-
errors.push(error.runnerError(testCase.id, testCase.workId));
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
export function builderBodyForAttempt(testCase, attempt) {
|
|
34
|
-
const { execution } = testCase;
|
|
35
|
-
if (execution.kind !== 'body' || execution.bodyMode === 'throwing') {
|
|
36
|
-
throw new TypeError('Test case does not have a builder body.');
|
|
37
|
-
}
|
|
38
|
-
if (execution.bodyMode === 'builder' || execution.bodyMode === 'property') {
|
|
39
|
-
return execution.body;
|
|
40
|
-
}
|
|
41
|
-
const { workload } = testCase.workId;
|
|
42
|
-
if (workload === null) {
|
|
43
|
-
throw new TypeError('Benchmark execution requires a selected workload.');
|
|
44
|
-
}
|
|
45
|
-
return async function runBenchmark(scope) {
|
|
46
|
-
return execution.body({
|
|
47
|
-
workId: testCase.workId,
|
|
48
|
-
benchmarkEnvironment: attempt.benchmarkEnvironment,
|
|
49
|
-
reportCleanupError: attempt.reportCleanupError,
|
|
50
|
-
cleanup: scope.cleanup,
|
|
51
|
-
signal: scope.signal,
|
|
52
|
-
workload,
|
|
53
|
-
updateResult: attempt.updateResult,
|
|
54
|
-
reportError: attempt.reportError
|
|
55
|
-
});
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
export function testBodyExecutionError(testCase) {
|
|
59
|
-
const { execution } = testCase;
|
|
60
|
-
if (execution.kind !== 'body') {
|
|
61
|
-
return null;
|
|
62
|
-
}
|
|
63
|
-
if (execution.bodyMode === 'property' || readTestBodyFamily(execution.body)?.family === 'property') {
|
|
64
|
-
return new TypeError('Property execution is not available. Property policy and generator execution are required.');
|
|
65
|
-
}
|
|
66
|
-
return null;
|
|
67
|
-
}
|
|
68
|
-
function caseRunnerError(testCase, error) {
|
|
69
|
-
if (isCaseRunnerError(error)) {
|
|
70
|
-
return error.runnerError(testCase.id, testCase.workId);
|
|
71
|
-
}
|
|
72
|
-
return permissionDeniedRunnerErrorFromThrown(error, {
|
|
73
|
-
attributedTo: testCase.id,
|
|
74
|
-
attributedToWork: testCase.workId,
|
|
75
|
-
boundary: null,
|
|
76
|
-
diagnosticChannel: null,
|
|
77
|
-
hook: null,
|
|
78
|
-
phase: 'body'
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
function finishedCaseCleanup(testCase, cleanupErrors) {
|
|
82
|
-
const bodyErrors = [];
|
|
83
|
-
const runnerErrors = [];
|
|
84
|
-
for (const error of cleanupErrors) {
|
|
85
|
-
const runnerError = caseRunnerError(testCase, error);
|
|
86
|
-
if (runnerError === null) {
|
|
87
|
-
bodyErrors.push(createThrownErrorRecord(error));
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
runnerErrors.push(runnerError);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
return {
|
|
94
|
-
cleanupErrors: bodyErrors,
|
|
95
|
-
runnerErrors
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
function requireFailedBody(context) {
|
|
99
|
-
const { cleanupErrors, contractFailures, recorder, runnerErrors } = context;
|
|
100
|
-
return {
|
|
101
|
-
bodyError: null,
|
|
102
|
-
cleanupErrors,
|
|
103
|
-
contractFailures,
|
|
104
|
-
requireFailed: true,
|
|
105
|
-
runnerErrors,
|
|
106
|
-
returnedAssertions: recorder.activeRecordedAssertions()
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
function contractFailedBody(context, contractFailures) {
|
|
110
|
-
const { cleanupErrors, recorder, runnerErrors } = context;
|
|
111
|
-
return {
|
|
112
|
-
bodyError: null,
|
|
113
|
-
cleanupErrors,
|
|
114
|
-
contractFailures,
|
|
115
|
-
requireFailed: false,
|
|
116
|
-
runnerErrors,
|
|
117
|
-
returnedAssertions: recorder.activeRecordedAssertions()
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
export function bodyErrorResult(context, error) {
|
|
121
|
-
const { cleanupErrors, contractFailures, recorder, runnerErrors } = context;
|
|
122
|
-
return {
|
|
123
|
-
bodyError: createThrownErrorRecord(error),
|
|
124
|
-
cleanupErrors,
|
|
125
|
-
contractFailures,
|
|
126
|
-
requireFailed: false,
|
|
127
|
-
runnerErrors,
|
|
128
|
-
returnedAssertions: recorder.activeRecordedAssertions()
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
function caseRunnerErrorBody(context, runnerError) {
|
|
132
|
-
const { cleanupErrors, contractFailures, recorder, runnerErrors } = context;
|
|
133
|
-
return {
|
|
134
|
-
bodyError: null,
|
|
135
|
-
cleanupErrors,
|
|
136
|
-
contractFailures,
|
|
137
|
-
requireFailed: false,
|
|
138
|
-
runnerErrors: [runnerError, ...runnerErrors],
|
|
139
|
-
returnedAssertions: recorder.activeRecordedAssertions()
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
function nodeAssertionFailedBody(testCase, context, error) {
|
|
143
|
-
return {
|
|
144
|
-
bodyError: null,
|
|
145
|
-
cleanupErrors: context.cleanupErrors,
|
|
146
|
-
contractFailures: context.contractFailures,
|
|
147
|
-
requireFailed: false,
|
|
148
|
-
runnerErrors: context.runnerErrors,
|
|
149
|
-
returnedAssertions: [
|
|
150
|
-
...context.recorder.activeRecordedAssertions(),
|
|
151
|
-
nodeAssertionErrorFailure(error, testCase.definitionLocations[0])
|
|
152
|
-
]
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
export function completedBody(input) {
|
|
156
|
-
const { assertionResult, context } = input;
|
|
157
|
-
const { recorder } = context;
|
|
158
|
-
if (recorder.requireFailed()) {
|
|
159
|
-
return requireFailedBody(context);
|
|
160
|
-
}
|
|
161
|
-
const returnedAssertions = recorder.returnedAssertions(assertionResult);
|
|
162
|
-
if (isTestContractFailure(returnedAssertions)) {
|
|
163
|
-
return contractFailedBody(context, [returnedAssertions, ...context.contractFailures]);
|
|
164
|
-
}
|
|
165
|
-
return {
|
|
166
|
-
bodyError: null,
|
|
167
|
-
cleanupErrors: context.cleanupErrors,
|
|
168
|
-
contractFailures: context.contractFailures,
|
|
169
|
-
requireFailed: false,
|
|
170
|
-
runnerErrors: context.runnerErrors,
|
|
171
|
-
returnedAssertions
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
export function completedThrowingBody(recorder) {
|
|
175
|
-
if (recorder.requireFailed()) {
|
|
176
|
-
return requireFailedBody({
|
|
177
|
-
cleanupErrors: [],
|
|
178
|
-
contractFailures: [],
|
|
179
|
-
recorder,
|
|
180
|
-
runnerErrors: []
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
const returnedAssertions = recorder.completedThrowingAssertions();
|
|
184
|
-
return isTestContractFailure(returnedAssertions)
|
|
185
|
-
? contractFailedBody({
|
|
186
|
-
cleanupErrors: [],
|
|
187
|
-
contractFailures: [],
|
|
188
|
-
recorder,
|
|
189
|
-
runnerErrors: []
|
|
190
|
-
}, [returnedAssertions])
|
|
191
|
-
: {
|
|
192
|
-
bodyError: null,
|
|
193
|
-
cleanupErrors: [],
|
|
194
|
-
contractFailures: [],
|
|
195
|
-
requireFailed: false,
|
|
196
|
-
runnerErrors: [],
|
|
197
|
-
returnedAssertions
|
|
198
|
-
};
|
|
199
|
-
}
|
|
200
|
-
function nonRunnerFailedBody(input) {
|
|
201
|
-
const { context, error, testCase } = input;
|
|
202
|
-
if (error instanceof RequireFailedSignalError) {
|
|
203
|
-
return requireFailedBody(context);
|
|
204
|
-
}
|
|
205
|
-
if (error instanceof TestContractSignalError) {
|
|
206
|
-
return contractFailedBody(context, [error.failure(), ...context.contractFailures]);
|
|
207
|
-
}
|
|
208
|
-
if (testCase.execution.kind === 'body' &&
|
|
209
|
-
testCase.execution.bodyMode === 'throwing' &&
|
|
210
|
-
isNodeAssertionError(error)) {
|
|
211
|
-
return nodeAssertionFailedBody(testCase, context, error);
|
|
212
|
-
}
|
|
213
|
-
return bodyErrorResult(context, error);
|
|
214
|
-
}
|
|
215
|
-
export function failedBody(input) {
|
|
216
|
-
const { context, error, testCase } = input;
|
|
217
|
-
const runnerError = caseRunnerError(testCase, error);
|
|
218
|
-
if (runnerError !== null) {
|
|
219
|
-
return caseRunnerErrorBody(context, runnerError);
|
|
220
|
-
}
|
|
221
|
-
return nonRunnerFailedBody(input);
|
|
222
|
-
}
|
|
223
|
-
export function bodyResultContext(recorder, testCase, finishedScope, sampleCleanupErrors) {
|
|
224
|
-
const cleanup = finishedCaseCleanup(testCase, [...sampleCleanupErrors, ...finishedScope.cleanupErrors]);
|
|
225
|
-
return {
|
|
226
|
-
cleanupErrors: cleanup.cleanupErrors,
|
|
227
|
-
contractFailures: finishedScope.lifecycleFailures,
|
|
228
|
-
recorder,
|
|
229
|
-
runnerErrors: cleanup.runnerErrors
|
|
230
|
-
};
|
|
231
|
-
}
|
|
232
|
-
//# sourceMappingURL=case-body-execution.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"case-body-execution.js","sourceRoot":"","sources":["../../../../source/engine/case-body-execution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAu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AAK,CAAC,CAAC;AACtC,CAAC;AAED,MAAM,UAAU,iBAAiB,CAC7B,QAA2B,EAC3B,QAAsB,EACtB,aAA4B,EAC5B,mBAAuC;IAEvC,MAAM,OAAO,GAAG,mBAAmB,CAAC,QAAQ,EAAE,CAAE,GAAG,mBAAmB,EAAE,GAAG,aAAa,CAAC,aAAa,CAAE,CAAC,CAAC;IAE1G,OAAO;QACH,aAAa,EAAE,OAAO,CAAC,aAAa;QACpC,gBAAgB,EAAE,aAAa,CAAC,iBAAiB;QACjD,QAAQ;QACR,YAAY,EAAE,OAAO,CAAC,YAAY;KACrC,CAAC;AACN,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { AsyncLocalStorage } from 'node:async_hooks';
|
|
2
|
-
const lifecycleKey = Symbol.for('@overkill-dev/engine/caseExecutionLifecycle');
|
|
3
|
-
function isLifecycleStorage(value) {
|
|
4
|
-
return value instanceof AsyncLocalStorage;
|
|
5
|
-
}
|
|
6
|
-
function sharedLifecycleStorage() {
|
|
7
|
-
const existing = Reflect.get(globalThis, lifecycleKey);
|
|
8
|
-
if (isLifecycleStorage(existing)) {
|
|
9
|
-
return existing;
|
|
10
|
-
}
|
|
11
|
-
const created = new AsyncLocalStorage();
|
|
12
|
-
Reflect.set(globalThis, lifecycleKey, created);
|
|
13
|
-
return created;
|
|
14
|
-
}
|
|
15
|
-
const lifecycle = sharedLifecycleStorage();
|
|
16
|
-
export const currentCaseExecutionLifecycle = function () {
|
|
17
|
-
return lifecycle.getStore() ?? null;
|
|
18
|
-
};
|
|
19
|
-
export async function withCaseExecutionLifecycle(observer, run) {
|
|
20
|
-
return await lifecycle.run(observer, run);
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=case-execution-lifecycle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"case-execution-lifecycle.js","sourceRoot":"","sources":["../../../../source/engine/case-execution-lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AASrD,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,6CAA6C,CAAC,CAAC;AAE/E,SAAS,kBAAkB,CAAC,KAAc;IACtC,OAAO,KAAK,YAAY,iBAAiB,CAAC;AAC9C,CAAC;AAED,SAAS,sBAAsB;IAC3B,MAAM,QAAQ,GAAY,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;IAChE,IAAI,kBAAkB,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC/B,OAAO,QAAQ,CAAC;IACpB,CAAC;IACD,MAAM,OAAO,GAAG,IAAI,iBAAiB,EAA0B,CAAC;IAChE,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;IAC/C,OAAO,OAAO,CAAC;AACnB,CAAC;AAED,MAAM,SAAS,GAAG,sBAAsB,EAAE,CAAC;AAE3C,MAAM,CAAC,MAAM,6BAA6B,GAAG;IACzC,OAAO,SAAS,CAAC,QAAQ,EAAE,IAAI,IAAI,CAAC;AACxC,CAAC,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC5C,QAAgC,EAChC,GAAyB;IAEzB,OAAO,MAAM,SAAS,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;AAC9C,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type PerTestResult, type RunnerError } from './run-result.ts';
|
|
2
|
-
import type { TestPlanCase } from './test-plan.ts';
|
|
3
|
-
type AttemptId = PerTestResult['attempts'][number]['attempt'];
|
|
4
|
-
export type TestRuntimePolicy = {
|
|
5
|
-
readonly prepareAttempt: (testCase: TestPlanCase, attempt: AttemptId) => Promise<void>;
|
|
6
|
-
readonly runAttempt: <Value>(testCase: TestPlanCase, attempt: AttemptId, run: () => Promise<Value>) => Promise<Value>;
|
|
7
|
-
readonly completeCase: (testCase: TestPlanCase, attempt: AttemptId) => Promise<void>;
|
|
8
|
-
readonly runLoad: <Value>(run: () => Promise<Value>) => Promise<Value>;
|
|
9
|
-
readonly takeAttemptErrors: (testCase: TestPlanCase, attempt: AttemptId) => readonly RunnerError[];
|
|
10
|
-
readonly takePendingRunErrors: () => readonly RunnerError[];
|
|
11
|
-
readonly takeRunErrors: () => readonly RunnerError[];
|
|
12
|
-
};
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=case-execution.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"case-execution.d.ts","sourceRoot":"","sources":["../../../../source/engine/case-execution.ts"],"names":[],"mappings":"AAAA,OAAY,OAuBH,aAAa,EAClB,KAAK,aAKR,MAAM,iBAAiB,CAAC;AAGzB,OAAwD,KAC5C,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,KAAK,SAAS,GAAG,aAAa,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC;IAG1D,QAIwB,iBAAiB,GAGW;IACpD,QAAQ,eAQe,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACvF,QAAQ,CAAC,UAAU,EAAE,CAAC,KAAK,EACvB,QAAQ,EAAE,YAAY,EACtB,OAAO,EAAE,SAAS,EAClB,GAAG,EAAE,MAAM,OAAO,CAAC,KAAK,CAAC,KACxB,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,QAAQ,CAAC,YAAY,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrF,QAAQ,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC,KAAK,CAAC,KAAK,OAAO,CAAC,KAAK,CAAC,CAAC;IACvE,QAAQ,CAAC,iBAAiB,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,SAAS,KAAK,SAAS,WAAW,EAAE,CAAC;IACnG,QAAQ,CAAC,oBAAoB,EAAE,MAAM,SAAS,WAAW,EAAE,CAAC;IAC5D,QAAQ,CAAC,aAAa,EAAE,MAAM,SAAS,WAAW,EAAE,CAAC;CACxD,CAAC;AAiNF"}
|
package/engine/case-execution.js
DELETED
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
import { createBenchmarkAttempt, bodyResultContext, bodyErrorResult, completedBody, completedThrowingBody, failedBody, builderBodyForAttempt, testBodyExecutionError } from "./case-body-execution.js";
|
|
2
|
-
import { assertionFailure } from "./recorded-assertion-failure.js";
|
|
3
|
-
import { assertNonEmptyItems, createAssertionRecorder } from "./assertion-recorder.js";
|
|
4
|
-
import { singleAttemptResult, verdictFromOutcome } from "./run-result.js";
|
|
5
|
-
import { createTestScopeLifecycle } from "./test-scope-lifecycle.js";
|
|
6
|
-
import { createThrowingTestScope } from "./throwing-test-scope.js";
|
|
7
|
-
import { createCaseInterruption } from "./case-interruption.js";
|
|
8
|
-
async function prepareCaseArtifacts(testCase, options) {
|
|
9
|
-
const policy = options.runtimePolicy;
|
|
10
|
-
if (policy === null) {
|
|
11
|
-
return [];
|
|
12
|
-
}
|
|
13
|
-
try {
|
|
14
|
-
await policy.prepareAttempt(testCase, options.attempt);
|
|
15
|
-
return [];
|
|
16
|
-
}
|
|
17
|
-
catch (error) {
|
|
18
|
-
return [error];
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
function interruptedBody(context) {
|
|
22
|
-
return {
|
|
23
|
-
bodyError: null,
|
|
24
|
-
cleanupErrors: context.cleanupErrors,
|
|
25
|
-
contractFailures: context.contractFailures,
|
|
26
|
-
requireFailed: context.recorder.requireFailed(),
|
|
27
|
-
runnerErrors: context.runnerErrors,
|
|
28
|
-
returnedAssertions: context.recorder.activeRecordedAssertions()
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
async function runBuilderCaseBody(testCase, recorder, options, benchmarkAttempt) {
|
|
32
|
-
const lifecycle = createTestScopeLifecycle(recorder);
|
|
33
|
-
const runBody = async function runUserBody() {
|
|
34
|
-
return await lifecycle.runBody(options.controller.signal, builderBodyForAttempt(testCase, benchmarkAttempt));
|
|
35
|
-
};
|
|
36
|
-
const runAndCleanUp = async function runBodyAndScopeCleanup() {
|
|
37
|
-
const completion = await options.interruption.run(runBody);
|
|
38
|
-
const preparationErrors = await prepareCaseArtifacts(testCase, options);
|
|
39
|
-
const context = bodyResultContext(recorder, testCase, await lifecycle.finish(options.controller), [...preparationErrors, ...benchmarkAttempt.cleanupErrors()]);
|
|
40
|
-
if (completion.kind === 'returned') {
|
|
41
|
-
return completedBody({ assertionResult: completion.value, context });
|
|
42
|
-
}
|
|
43
|
-
return completion.kind === 'threw'
|
|
44
|
-
? failedBody({ context, error: completion.error, testCase })
|
|
45
|
-
: interruptedBody(context);
|
|
46
|
-
};
|
|
47
|
-
return options.runtimePolicy === null
|
|
48
|
-
? await runAndCleanUp()
|
|
49
|
-
: await options.runtimePolicy.runAttempt(testCase, options.attempt, runAndCleanUp);
|
|
50
|
-
}
|
|
51
|
-
async function runThrowingCaseBody(testCase, recorder, options) {
|
|
52
|
-
const runBody = async function runUserBody() {
|
|
53
|
-
if (testCase.execution.kind !== 'body' || testCase.execution.bodyMode !== 'throwing') {
|
|
54
|
-
throw new TypeError('Non-throwing test cases do not have throwing bodies.');
|
|
55
|
-
}
|
|
56
|
-
await testCase.execution.body(createThrowingTestScope(recorder, options.controller.signal));
|
|
57
|
-
};
|
|
58
|
-
const runAndPrepare = async function runThrowingBodyAndPreparation() {
|
|
59
|
-
const completion = await options.interruption.run(runBody);
|
|
60
|
-
const preparationErrors = await prepareCaseArtifacts(testCase, options);
|
|
61
|
-
options.controller.abort();
|
|
62
|
-
const context = bodyResultContext(recorder, testCase, { cleanupErrors: preparationErrors, lifecycleFailures: [] }, []);
|
|
63
|
-
if (completion.kind === 'threw') {
|
|
64
|
-
return failedBody({ context, error: completion.error, testCase });
|
|
65
|
-
}
|
|
66
|
-
const body = completion.kind === 'returned' ? completedThrowingBody(recorder) : interruptedBody(context);
|
|
67
|
-
return { ...body, cleanupErrors: context.cleanupErrors, runnerErrors: context.runnerErrors };
|
|
68
|
-
};
|
|
69
|
-
return options.runtimePolicy === null
|
|
70
|
-
? await runAndPrepare()
|
|
71
|
-
: await options.runtimePolicy.runAttempt(testCase, options.attempt, runAndPrepare);
|
|
72
|
-
}
|
|
73
|
-
async function runCaseBody(testCase, recorder, options, benchmarkAttempt) {
|
|
74
|
-
if (testCase.execution.kind !== 'body') {
|
|
75
|
-
throw new TypeError('Skipped test cases do not have executable bodies.');
|
|
76
|
-
}
|
|
77
|
-
const executionError = testBodyExecutionError(testCase);
|
|
78
|
-
if (executionError !== null) {
|
|
79
|
-
return bodyErrorResult({ cleanupErrors: [], contractFailures: [], recorder, runnerErrors: [] }, executionError);
|
|
80
|
-
}
|
|
81
|
-
return testCase.execution.bodyMode === 'throwing'
|
|
82
|
-
? await runThrowingCaseBody(testCase, recorder, options)
|
|
83
|
-
: await runBuilderCaseBody(testCase, recorder, options, benchmarkAttempt);
|
|
84
|
-
}
|
|
85
|
-
function bodyFailures(executedBody) {
|
|
86
|
-
const failures = Array.from(executedBody.contractFailures);
|
|
87
|
-
if (executedBody.bodyError !== null) {
|
|
88
|
-
failures.push({
|
|
89
|
-
error: executedBody.bodyError,
|
|
90
|
-
kind: 'body-error'
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
for (const cleanupError of executedBody.cleanupErrors) {
|
|
94
|
-
failures.push({
|
|
95
|
-
error: cleanupError,
|
|
96
|
-
kind: 'cleanup-error'
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
return failures;
|
|
100
|
-
}
|
|
101
|
-
function planFailure(recorder, executedBody) {
|
|
102
|
-
if (executedBody.requireFailed ||
|
|
103
|
-
executedBody.contractFailures.length > 0 ||
|
|
104
|
-
executedBody.bodyError !== null ||
|
|
105
|
-
executedBody.cleanupErrors.length > 0 ||
|
|
106
|
-
executedBody.runnerErrors.length > 0) {
|
|
107
|
-
return null;
|
|
108
|
-
}
|
|
109
|
-
return recorder.validateAssertionCount(executedBody.returnedAssertions.length);
|
|
110
|
-
}
|
|
111
|
-
function runnerErrorOutcome(executedBody) {
|
|
112
|
-
const [runnerError] = executedBody.runnerErrors;
|
|
113
|
-
if (runnerError === undefined) {
|
|
114
|
-
return { kind: 'pass' };
|
|
115
|
-
}
|
|
116
|
-
if (executedBody.runnerErrors.every(function permissionFailure(error) {
|
|
117
|
-
return error.subtype === 'permission';
|
|
118
|
-
})) {
|
|
119
|
-
return null;
|
|
120
|
-
}
|
|
121
|
-
return {
|
|
122
|
-
kind: 'inconclusive',
|
|
123
|
-
reason: runnerError.message
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
function createOutcome(recorder, executedBody, generated) {
|
|
127
|
-
const failures = [
|
|
128
|
-
assertionFailure(executedBody.returnedAssertions),
|
|
129
|
-
...bodyFailures(executedBody),
|
|
130
|
-
generated ? null : planFailure(recorder, executedBody)
|
|
131
|
-
]
|
|
132
|
-
.filter(function isTestFailure(failure) {
|
|
133
|
-
return failure !== null;
|
|
134
|
-
});
|
|
135
|
-
if (failures.length === 0) {
|
|
136
|
-
return runnerErrorOutcome(executedBody);
|
|
137
|
-
}
|
|
138
|
-
assertNonEmptyItems(failures, 'Expected test failures to be non-empty.');
|
|
139
|
-
return {
|
|
140
|
-
failures,
|
|
141
|
-
kind: 'fail'
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
function defaultRunTestCaseOptions() {
|
|
145
|
-
const controller = new AbortController();
|
|
146
|
-
return {
|
|
147
|
-
async onBenchmarkUpdate() {
|
|
148
|
-
return undefined;
|
|
149
|
-
},
|
|
150
|
-
benchmarkEnvironment: null,
|
|
151
|
-
attempt: { index: 0 },
|
|
152
|
-
controller,
|
|
153
|
-
runtimePolicy: null,
|
|
154
|
-
interruption: null
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
export function timeoutFailure(deadlineMilliseconds, elapsedMilliseconds) {
|
|
158
|
-
return {
|
|
159
|
-
deadlineMilliseconds,
|
|
160
|
-
elapsedMilliseconds,
|
|
161
|
-
kind: 'timeout'
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
export function invalidTimeoutControlFailure(actual, expected) {
|
|
165
|
-
return {
|
|
166
|
-
actual,
|
|
167
|
-
code: 'invalid-timeout-control',
|
|
168
|
-
expected,
|
|
169
|
-
kind: 'test-contract',
|
|
170
|
-
summary: 'Timeout control must be a positive safe integer within the profile soft timeout.'
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
function skippedCase(testCase, reason, durationMicroseconds) {
|
|
174
|
-
const outcome = { kind: 'skip', reason };
|
|
175
|
-
return {
|
|
176
|
-
result: singleAttemptResult({
|
|
177
|
-
definitionLocations: testCase.definitionLocations,
|
|
178
|
-
id: testCase.id,
|
|
179
|
-
outcome,
|
|
180
|
-
verdict: verdictFromOutcome(outcome),
|
|
181
|
-
workId: testCase.workId,
|
|
182
|
-
durationMicroseconds
|
|
183
|
-
}, { index: 0 }),
|
|
184
|
-
runnerErrors: [],
|
|
185
|
-
durationMicroseconds
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
function completedCaseOutcome(recorder, body, terminal, generated) {
|
|
189
|
-
const outcome = createOutcome(recorder, body, terminal !== null || generated);
|
|
190
|
-
if (terminal !== null && (outcome === null || outcome.kind === 'pass')) {
|
|
191
|
-
return { outcome: terminal.result.outcome, verdict: terminal.result.verdict };
|
|
192
|
-
}
|
|
193
|
-
return { outcome, verdict: outcome === null ? 'runtime-policy' : verdictFromOutcome(outcome) };
|
|
194
|
-
}
|
|
195
|
-
export async function runTestCase(testCase, wallClock, options = defaultRunTestCaseOptions()) {
|
|
196
|
-
const startedAtMicroseconds = Number(wallClock.currentMonotonicMicroseconds);
|
|
197
|
-
if (testCase.execution.kind === 'skip') {
|
|
198
|
-
return skippedCase(testCase, testCase.execution.reason, Number(wallClock.currentMonotonicMicroseconds) - startedAtMicroseconds);
|
|
199
|
-
}
|
|
200
|
-
const execution = {
|
|
201
|
-
recorder: createAssertionRecorder(),
|
|
202
|
-
benchmark: createBenchmarkAttempt(testCase, options.onBenchmarkUpdate, options.benchmarkEnvironment),
|
|
203
|
-
interruption: createCaseInterruption(options.interruption)
|
|
204
|
-
};
|
|
205
|
-
const completed = await runCaseBody(testCase, execution.recorder, {
|
|
206
|
-
...options,
|
|
207
|
-
interruption: execution.interruption
|
|
208
|
-
}, execution.benchmark);
|
|
209
|
-
const executedBody = { ...completed, runnerErrors: [...completed.runnerErrors, ...execution.benchmark.errors()] };
|
|
210
|
-
const completion = completedCaseOutcome(execution.recorder, executedBody, execution.interruption.result(), testCase.execution.bodyMode === 'benchmark');
|
|
211
|
-
const durationMicroseconds = Number(wallClock.currentMonotonicMicroseconds) - startedAtMicroseconds;
|
|
212
|
-
return {
|
|
213
|
-
result: singleAttemptResult({
|
|
214
|
-
benchmark: execution.interruption.result()?.result.benchmark ?? execution.benchmark.result(),
|
|
215
|
-
definitionLocations: testCase.definitionLocations,
|
|
216
|
-
id: testCase.id,
|
|
217
|
-
...completion,
|
|
218
|
-
workId: testCase.workId,
|
|
219
|
-
durationMicroseconds
|
|
220
|
-
}, { index: 0 }),
|
|
221
|
-
runnerErrors: executedBody.runnerErrors,
|
|
222
|
-
durationMicroseconds
|
|
223
|
-
};
|
|
224
|
-
}
|
|
225
|
-
//# sourceMappingURL=case-execution.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"case-execution.js","sourceRoot":"","sources":["../../../../source/engine/case-execution.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,sBAAsB,EACtB,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,qBAAqB,EACrB,UAAU,EAGV,qBAAqB,EACrB,sBAAsB,EAEzB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAA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 @@
|
|
|
1
|
-
import { createStoredValue } from "../stored-value.js";
|
|
2
|
-
async function completeBody(operation) {
|
|
3
|
-
try {
|
|
4
|
-
return { kind: 'returned', value: await operation() };
|
|
5
|
-
}
|
|
6
|
-
catch (error) {
|
|
7
|
-
return { kind: 'threw', error };
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
export function createCaseInterruption(completion) {
|
|
11
|
-
const terminal = createStoredValue(null);
|
|
12
|
-
async function retainInterruption(pending) {
|
|
13
|
-
const result = await pending;
|
|
14
|
-
terminal.write(result);
|
|
15
|
-
return { kind: 'interrupted', result };
|
|
16
|
-
}
|
|
17
|
-
const interrupted = completion === null ? null : retainInterruption(completion);
|
|
18
|
-
return {
|
|
19
|
-
result: terminal.read,
|
|
20
|
-
async run(operation) {
|
|
21
|
-
const body = completeBody(operation);
|
|
22
|
-
return interrupted === null ? await body : await Promise.race([body, interrupted]);
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=case-interruption.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"case-interruption.js","sourceRoot":"","sources":["../../../../source/engine/case-interruption.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAyBvD,KAAK,UAAU,YAAY,CAAQ,SAA+B;IAC9D,IAAI,CAAC;QACD,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,SAAS,EAAE,EAAE,CAAC;IAC1D,CAAC;IAAC,OAAO,KAAc,EAAE,CAAC;QACtB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IACpC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,UAAwC;IAC3E,MAAM,QAAQ,GAAG,iBAAiB,CAAsB,IAAI,CAAC,CAAC;IAC9D,KAAK,UAAU,kBAAkB,CAAC,OAA8B;QAC5D,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC;QAC7B,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACvB,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,CAAC;IAC3C,CAAC;IACD,MAAM,WAAW,GAAG,UAAU,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAChF,OAAO;QACH,MAAM,EAAE,QAAQ,CAAC,IAAI;QACrB,KAAK,CAAC,GAAG,CAAC,SAAS;YACf,MAAM,IAAI,GAAG,YAAY,CAAC,SAAS,CAAC,CAAC;YACrC,OAAO,WAAW,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAE,IAAI,EAAE,WAAW,CAAE,CAAC,CAAC;QACzF,CAAC;KACJ,CAAC;AACN,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { RuntimeId, WorkloadId } from './identity.ts';
|
|
2
|
-
export type CoverageMetric = {
|
|
3
|
-
readonly covered: number;
|
|
4
|
-
readonly total: number;
|
|
5
|
-
};
|
|
6
|
-
export type CoverageReportFile = {
|
|
7
|
-
readonly format: 'html' | 'json' | 'lcov' | 'text' | 'v8';
|
|
8
|
-
readonly path: string;
|
|
9
|
-
};
|
|
10
|
-
export type CoverageArtifactPayload = {
|
|
11
|
-
readonly completeness: 'complete';
|
|
12
|
-
readonly directory: string;
|
|
13
|
-
readonly kind: 'coverage';
|
|
14
|
-
readonly rawDataDirectory: string;
|
|
15
|
-
readonly reports: readonly CoverageReportFile[];
|
|
16
|
-
readonly summary: {
|
|
17
|
-
readonly branches: CoverageMetric;
|
|
18
|
-
readonly functions: CoverageMetric;
|
|
19
|
-
readonly lines: CoverageMetric;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export type CoverageArtifact = {
|
|
23
|
-
readonly id: {
|
|
24
|
-
readonly attempt: null;
|
|
25
|
-
readonly runtimes: readonly RuntimeId[];
|
|
26
|
-
readonly scope: {
|
|
27
|
-
readonly kind: 'run';
|
|
28
|
-
};
|
|
29
|
-
readonly sequence: number;
|
|
30
|
-
readonly subtype: 'coverage';
|
|
31
|
-
readonly workload: WorkloadId | null;
|
|
32
|
-
};
|
|
33
|
-
readonly payload: CoverageArtifactPayload;
|
|
34
|
-
readonly source: 'v8-native';
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=coverage-artifact.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"coverage-artifact.d.ts","sourceRoot":"","sources":["../../../../source/engine/coverage-artifact.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WACW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3D,MAAM,MAAM,cAAc,GAAG;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC1D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,uBAeuB,GAAG;IAClC,QAAQ,CAAC,YAAY,EAAE,UAAU,CAAC;IAClC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,OAAO,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAChD,QAAQ,CAAC,OAAO,EAAE;QACd,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;QAClC,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAC;QACnC,QAAQ,CAAC,K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