@overkill-dev/run 0.0.84 → 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/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,251 +0,0 @@
|
|
|
1
|
-
import { assertionPasses } from "../assertion-protocol/evaluation.js";
|
|
2
|
-
export class RequireFailedSignalError extends Error {
|
|
3
|
-
constructor() {
|
|
4
|
-
super('Requirement failed.');
|
|
5
|
-
this.name = 'RequireFailedSignalError';
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
export class TestContractSignalError extends Error {
|
|
9
|
-
contractFailure;
|
|
10
|
-
constructor(failure, options) {
|
|
11
|
-
super(failure.summary, options);
|
|
12
|
-
this.name = 'TestContractSignalError';
|
|
13
|
-
this.contractFailure = failure;
|
|
14
|
-
}
|
|
15
|
-
failure() {
|
|
16
|
-
return this.contractFailure;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
export function assertNonEmptyItems(items, message) {
|
|
20
|
-
if (items.length === 0) {
|
|
21
|
-
throw new TypeError(message);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
function createNoAssertionsFailure() {
|
|
25
|
-
return {
|
|
26
|
-
actual: 0,
|
|
27
|
-
code: 'no-assertions',
|
|
28
|
-
expected: 'at least one assertion',
|
|
29
|
-
kind: 'test-contract',
|
|
30
|
-
summary: 'Expected at least one assertion.'
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
function createInvalidPlanFailure(actual) {
|
|
34
|
-
return {
|
|
35
|
-
actual,
|
|
36
|
-
code: 'invalid-plan',
|
|
37
|
-
expected: 'positive integer plan before assertions',
|
|
38
|
-
kind: 'test-contract',
|
|
39
|
-
summary: 'Assertion plan must be a positive integer before assertions.'
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
function createPlanMismatchFailure(actual, expected) {
|
|
43
|
-
return {
|
|
44
|
-
actual,
|
|
45
|
-
code: 'plan-mismatch',
|
|
46
|
-
expected: String(expected),
|
|
47
|
-
kind: 'test-contract',
|
|
48
|
-
summary: 'Assertion plan count did not match.'
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
function createDeadBuilderAssertionFailure() {
|
|
52
|
-
return {
|
|
53
|
-
actual: 'missing recorded builder assertion',
|
|
54
|
-
code: 'dead-builder-assertion',
|
|
55
|
-
expected: 'returned assertions include every recorded builder assertion',
|
|
56
|
-
kind: 'test-contract',
|
|
57
|
-
summary: 'Returned assertions must include every recorded builder assertion.'
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
function createPendingAsyncAssertionFailure() {
|
|
61
|
-
return {
|
|
62
|
-
actual: 'pending async assertion',
|
|
63
|
-
code: 'pending-async-assertion',
|
|
64
|
-
expected: 'all async assertions awaited before collect',
|
|
65
|
-
kind: 'test-contract',
|
|
66
|
-
summary: 'Async assertion must be awaited before scope.assert.collect().'
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
export function isTestContractFailure(value) {
|
|
70
|
-
return !Array.isArray(value);
|
|
71
|
-
}
|
|
72
|
-
function isAssertionNode(assertionResult) {
|
|
73
|
-
return !Array.isArray(assertionResult);
|
|
74
|
-
}
|
|
75
|
-
function normalizeAssertionResult(assertionResult) {
|
|
76
|
-
const assertions = isAssertionNode(assertionResult) ? [assertionResult] : assertionResult;
|
|
77
|
-
assertNonEmptyItems(assertions, 'Expected returned assertions to be non-empty.');
|
|
78
|
-
return assertions;
|
|
79
|
-
}
|
|
80
|
-
function builderAssertionsInReturnedOrder(builderAssertions, returnedAssertions) {
|
|
81
|
-
let returnedIndex = 0;
|
|
82
|
-
return builderAssertions.every(function builderAssertionReturned(builderAssertion) {
|
|
83
|
-
while (returnedIndex < returnedAssertions.length) {
|
|
84
|
-
const returnedAssertion = returnedAssertions[returnedIndex];
|
|
85
|
-
returnedIndex += 1;
|
|
86
|
-
if (returnedAssertion === builderAssertion) {
|
|
87
|
-
return true;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
return false;
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
function recordContainsBuilderAssertion(recorded, builderAssertion) {
|
|
94
|
-
return recorded?.builderAssertion === builderAssertion;
|
|
95
|
-
}
|
|
96
|
-
function requireAssertionFromRecord(recorded) {
|
|
97
|
-
if (recorded?.assertion?.source === 'require') {
|
|
98
|
-
return recorded.assertion;
|
|
99
|
-
}
|
|
100
|
-
return null;
|
|
101
|
-
}
|
|
102
|
-
function requireAssertionsFromRecord(recorded) {
|
|
103
|
-
const requireAssertion = requireAssertionFromRecord(recorded);
|
|
104
|
-
if (requireAssertion !== null) {
|
|
105
|
-
return [requireAssertion];
|
|
106
|
-
}
|
|
107
|
-
return [];
|
|
108
|
-
}
|
|
109
|
-
function appendRecordedRequiresBeforeBuilderAssertion(recordedAssertions, recordIndex, builderAssertion) {
|
|
110
|
-
let nextRecordIndex = recordIndex;
|
|
111
|
-
const assertions = [];
|
|
112
|
-
while (nextRecordIndex < recordedAssertions.length) {
|
|
113
|
-
const recorded = recordedAssertions[nextRecordIndex];
|
|
114
|
-
if (recordContainsBuilderAssertion(recorded, builderAssertion)) {
|
|
115
|
-
return { assertions, recordIndex: nextRecordIndex + 1 };
|
|
116
|
-
}
|
|
117
|
-
assertions.push(...requireAssertionsFromRecord(recorded));
|
|
118
|
-
nextRecordIndex += 1;
|
|
119
|
-
}
|
|
120
|
-
return { assertions, recordIndex: nextRecordIndex };
|
|
121
|
-
}
|
|
122
|
-
function appendRemainingRecordedRequires(recordedAssertions, recordIndex) {
|
|
123
|
-
const assertions = [];
|
|
124
|
-
for (const recorded of recordedAssertions.slice(recordIndex)) {
|
|
125
|
-
if (recorded.assertion?.source === 'require') {
|
|
126
|
-
assertions.push(recorded.assertion);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
return assertions;
|
|
130
|
-
}
|
|
131
|
-
function mergeRecordedRequires(recordedAssertions, returnedAssertions) {
|
|
132
|
-
const mergedAssertions = [];
|
|
133
|
-
let recordIndex = 0;
|
|
134
|
-
for (const returnedAssertion of returnedAssertions) {
|
|
135
|
-
const step = appendRecordedRequiresBeforeBuilderAssertion(recordedAssertions, recordIndex, returnedAssertion);
|
|
136
|
-
recordIndex = step.recordIndex;
|
|
137
|
-
mergedAssertions.push(...step.assertions, returnedAssertion);
|
|
138
|
-
}
|
|
139
|
-
mergedAssertions.push(...appendRemainingRecordedRequires(recordedAssertions, recordIndex));
|
|
140
|
-
return mergedAssertions;
|
|
141
|
-
}
|
|
142
|
-
function recordedAssertionNodes(records) {
|
|
143
|
-
return records.flatMap(function toAssertion(recorded) {
|
|
144
|
-
return recorded.assertion === null ? [] : [recorded.assertion];
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
export function createAssertionRecorder() {
|
|
148
|
-
const builderAssertions = [];
|
|
149
|
-
const recordedAssertions = [];
|
|
150
|
-
let failedRequireIndex = null;
|
|
151
|
-
let plannedCount = null;
|
|
152
|
-
function activeRecords() {
|
|
153
|
-
if (failedRequireIndex === null) {
|
|
154
|
-
return recordedAssertions;
|
|
155
|
-
}
|
|
156
|
-
return recordedAssertions.slice(0, failedRequireIndex + 1);
|
|
157
|
-
}
|
|
158
|
-
function pendingAssertionExists() {
|
|
159
|
-
return builderAssertions.includes(null);
|
|
160
|
-
}
|
|
161
|
-
function ensurePlanAllowed(count) {
|
|
162
|
-
if (!Number.isSafeInteger(count) || count <= 0 || plannedCount !== null || recordedAssertions.length > 0) {
|
|
163
|
-
throw new TestContractSignalError(createInvalidPlanFailure(count), undefined);
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
function collect() {
|
|
167
|
-
if (builderAssertions.length === 0) {
|
|
168
|
-
throw new TestContractSignalError(createNoAssertionsFailure(), undefined);
|
|
169
|
-
}
|
|
170
|
-
if (pendingAssertionExists()) {
|
|
171
|
-
throw new TestContractSignalError(createPendingAsyncAssertionFailure(), undefined);
|
|
172
|
-
}
|
|
173
|
-
const resolvedAssertions = builderAssertions.filter(function resolvedAssertion(assertion) {
|
|
174
|
-
return assertion !== null;
|
|
175
|
-
});
|
|
176
|
-
assertNonEmptyItems(resolvedAssertions, 'Expected builder assertions to be non-empty.');
|
|
177
|
-
return resolvedAssertions;
|
|
178
|
-
}
|
|
179
|
-
function validateReturnedAssertions(assertions) {
|
|
180
|
-
if (pendingAssertionExists()) {
|
|
181
|
-
return createPendingAsyncAssertionFailure();
|
|
182
|
-
}
|
|
183
|
-
const resolvedAssertions = builderAssertions.filter(function resolvedAssertion(assertion) {
|
|
184
|
-
return assertion !== null;
|
|
185
|
-
});
|
|
186
|
-
if (!builderAssertionsInReturnedOrder(resolvedAssertions, assertions)) {
|
|
187
|
-
return createDeadBuilderAssertionFailure();
|
|
188
|
-
}
|
|
189
|
-
return null;
|
|
190
|
-
}
|
|
191
|
-
return {
|
|
192
|
-
activeRecordedAssertions() {
|
|
193
|
-
return recordedAssertionNodes(activeRecords());
|
|
194
|
-
},
|
|
195
|
-
collect,
|
|
196
|
-
completedThrowingAssertions() {
|
|
197
|
-
if (pendingAssertionExists()) {
|
|
198
|
-
return createPendingAsyncAssertionFailure();
|
|
199
|
-
}
|
|
200
|
-
return recordedAssertionNodes(activeRecords());
|
|
201
|
-
},
|
|
202
|
-
failContract(failure) {
|
|
203
|
-
throw new TestContractSignalError(failure, undefined);
|
|
204
|
-
},
|
|
205
|
-
plan(count) {
|
|
206
|
-
ensurePlanAllowed(count);
|
|
207
|
-
plannedCount = count;
|
|
208
|
-
},
|
|
209
|
-
recordAssert(assertion) {
|
|
210
|
-
builderAssertions.push(assertion);
|
|
211
|
-
recordedAssertions.push({ assertion, builderAssertion: assertion });
|
|
212
|
-
},
|
|
213
|
-
recordPendingAssert() {
|
|
214
|
-
const builderIndex = builderAssertions.length;
|
|
215
|
-
const recordIndex = recordedAssertions.length;
|
|
216
|
-
builderAssertions.push(null);
|
|
217
|
-
recordedAssertions.push({ assertion: null, builderAssertion: null });
|
|
218
|
-
return {
|
|
219
|
-
resolve(assertion) {
|
|
220
|
-
builderAssertions[builderIndex] = assertion;
|
|
221
|
-
recordedAssertions[recordIndex] = { assertion, builderAssertion: assertion };
|
|
222
|
-
}
|
|
223
|
-
};
|
|
224
|
-
},
|
|
225
|
-
recordRequire(assertion) {
|
|
226
|
-
recordedAssertions.push({ assertion, builderAssertion: null });
|
|
227
|
-
if (!assertionPasses(assertion)) {
|
|
228
|
-
failedRequireIndex = recordedAssertions.length - 1;
|
|
229
|
-
throw new RequireFailedSignalError();
|
|
230
|
-
}
|
|
231
|
-
},
|
|
232
|
-
requireFailed() {
|
|
233
|
-
return failedRequireIndex !== null;
|
|
234
|
-
},
|
|
235
|
-
returnedAssertions(assertionResult) {
|
|
236
|
-
const assertions = normalizeAssertionResult(assertionResult);
|
|
237
|
-
const contractFailure = validateReturnedAssertions(assertions);
|
|
238
|
-
if (contractFailure !== null) {
|
|
239
|
-
return contractFailure;
|
|
240
|
-
}
|
|
241
|
-
return mergeRecordedRequires(activeRecords(), assertions);
|
|
242
|
-
},
|
|
243
|
-
validateAssertionCount(reachedAssertionCount) {
|
|
244
|
-
if (plannedCount !== null && plannedCount !== reachedAssertionCount) {
|
|
245
|
-
return createPlanMismatchFailure(reachedAssertionCount, plannedCount);
|
|
246
|
-
}
|
|
247
|
-
return null;
|
|
248
|
-
}
|
|
249
|
-
};
|
|
250
|
-
}
|
|
251
|
-
//# sourceMappingURL=assertion-recorder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assertion-recorder.js","sourceRoot":"","sources":["../../../../source/engine/assertion-recorder.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EAClB,MAAM,qCAAqC,CAAC;AAsC7C,MAAM,OAAO,wBAAyB,SAAQ,KAAK;IAC/C;QACI,KAAK,CAAC,qBAAqB,CAAC,CAAC;QAC7B,IAAI,CAAC,IAAI,GAAG,0BAA0B,CAAC;IAC3C,CAAC;CACJ;AAED,MAAM,OAAO,uBAAwB,SAAQ,KAAK;IAC7B,eAAe,CAAsB;IAEtD,YAAmB,OAA4B,EAAE,OAA2C;QACxF,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAChC,IAAI,CAAC,IAAI,GAAG,yBAAyB,CAAC;QACtC,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC;IACnC,CAAC;IAEM,OAAO;QACV,OAAO,IAAI,CAAC,eAAe,CAAC;IAChC,CAAC;CACJ;AAED,MAAM,UAAU,mBAAmB,CAC/B,KAAsB,EACtB,OAAe;IAEf,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;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AAwB,CAAC,eAAe,CAAC,CAAC;YAC7D,MAAM,eAAe,GAAG,0BAA0B,CAAC,UAAU,CAAC,CAAC;YAE/D,IAAI,eAAe,KAAK,IAAI,EAAE,CAAC;gBAC3B,OAAO,eAAe,CAAC;YAC3B,CAAC;YAED,OAAO,qBAAqB,CAAC,aAAa,EAAE,EAAE,UAAU,CAAC,CAAC;QAC9D,CAAC;QAED,sBAAsB,CAAC,qBAAqB;YACxC,IAAI,YAAY,KAAK,IAAI,IAAI,YAAY,KAAK,qBAAqB,EAAE,CAAC;gBAClE,OAAO,yBAAyB,CAAC,qBAAqB,EAAE,YAAY,CAAC,CAAC;YAC1E,CAAC;YAED,OAAO,IAAI,CAAC;QAChB,CAAC;KACJ,CAAC;AACN,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ThrownMatcher } from '../assertion-protocol/thrown-matcher.ts';
|
|
2
|
-
export type InFlightTask<Value> = {
|
|
3
|
-
readonly rejects: (matcher: ThrownMatcher) => Promise<void>;
|
|
4
|
-
readonly wait: () => Promise<Value>;
|
|
5
|
-
};
|
|
6
|
-
export {};
|
|
7
|
-
//# sourceMappingURL=async-control.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"async-control.d.ts","sourceRoot":"","sources":["../../../../source/engine/async-control.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;MAevE,MAAM,YAAY,CAAC,KAAK,IAAI;IAC9B,QAAQ,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5D,QAAQ,CAAC,IAAI,EAAE,MAAM,OAAO,CAAC,KAAK,CAAC,CAAC;CACvC,CAAC;AAEF,MAAM,CAA0B,EAO/B,CAAC"}
|
package/engine/async-control.js
DELETED
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import { setImmediate as waitForImmediate } from 'node:timers/promises';
|
|
2
|
-
const settleCheckpointCount = 5;
|
|
3
|
-
export async function drainMicrotasks() {
|
|
4
|
-
await Promise.resolve();
|
|
5
|
-
}
|
|
6
|
-
export async function yieldToNextTurn() {
|
|
7
|
-
await waitForImmediate();
|
|
8
|
-
}
|
|
9
|
-
export async function settleAsyncWork() {
|
|
10
|
-
for (let checkpoint = 0; checkpoint < settleCheckpointCount; checkpoint += 1) {
|
|
11
|
-
await drainMicrotasks();
|
|
12
|
-
await yieldToNextTurn();
|
|
13
|
-
}
|
|
14
|
-
await drainMicrotasks();
|
|
15
|
-
}
|
|
16
|
-
export function createAsyncControlState() {
|
|
17
|
-
let cleanupStarted = false;
|
|
18
|
-
const cleanupCallbacks = [];
|
|
19
|
-
const inFlightRecords = [];
|
|
20
|
-
return {
|
|
21
|
-
cleanupStarted() {
|
|
22
|
-
return cleanupStarted;
|
|
23
|
-
},
|
|
24
|
-
inFlightRecords() {
|
|
25
|
-
return inFlightRecords;
|
|
26
|
-
},
|
|
27
|
-
registerCleanup(callback) {
|
|
28
|
-
cleanupCallbacks.push(callback);
|
|
29
|
-
},
|
|
30
|
-
registerInFlight(record) {
|
|
31
|
-
inFlightRecords.push(record);
|
|
32
|
-
},
|
|
33
|
-
startCleanup() {
|
|
34
|
-
cleanupStarted = true;
|
|
35
|
-
const registered = Array.from(cleanupCallbacks);
|
|
36
|
-
cleanupCallbacks.length = 0;
|
|
37
|
-
return registered;
|
|
38
|
-
},
|
|
39
|
-
releaseInFlight() {
|
|
40
|
-
inFlightRecords.length = 0;
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
function callbackRegisteredAfterCleanupFailure() {
|
|
45
|
-
return new TypeError('scope.cleanup() cannot be called after test cleanup has started.');
|
|
46
|
-
}
|
|
47
|
-
export function registerCleanup(state, callback) {
|
|
48
|
-
if (state.cleanupStarted()) {
|
|
49
|
-
throw callbackRegisteredAfterCleanupFailure();
|
|
50
|
-
}
|
|
51
|
-
state.registerCleanup(callback);
|
|
52
|
-
}
|
|
53
|
-
async function operationPromise(operation) {
|
|
54
|
-
return await operation();
|
|
55
|
-
}
|
|
56
|
-
async function recordSettlement(record) {
|
|
57
|
-
try {
|
|
58
|
-
await record.promise;
|
|
59
|
-
}
|
|
60
|
-
catch {
|
|
61
|
-
}
|
|
62
|
-
finally {
|
|
63
|
-
record.markSettled();
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
export function startInFlight(state, assertContext, operation) {
|
|
67
|
-
if (state.cleanupStarted()) {
|
|
68
|
-
throw new TypeError('scope.startInFlight() cannot be called after test cleanup has started.');
|
|
69
|
-
}
|
|
70
|
-
let observed = false;
|
|
71
|
-
let settled = false;
|
|
72
|
-
const promise = operationPromise(operation);
|
|
73
|
-
const record = {
|
|
74
|
-
markObserved() {
|
|
75
|
-
observed = true;
|
|
76
|
-
},
|
|
77
|
-
markSettled() {
|
|
78
|
-
settled = true;
|
|
79
|
-
},
|
|
80
|
-
observed() {
|
|
81
|
-
return observed;
|
|
82
|
-
},
|
|
83
|
-
promise,
|
|
84
|
-
settlement: recordSettlement({
|
|
85
|
-
markSettled() {
|
|
86
|
-
settled = true;
|
|
87
|
-
},
|
|
88
|
-
promise
|
|
89
|
-
}),
|
|
90
|
-
settled() {
|
|
91
|
-
return settled;
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
state.registerInFlight(record);
|
|
95
|
-
return {
|
|
96
|
-
async rejects(matcher) {
|
|
97
|
-
record.markObserved();
|
|
98
|
-
await assertContext.rejects(async function waitForTrackedRejection() {
|
|
99
|
-
return record.promise;
|
|
100
|
-
}, matcher);
|
|
101
|
-
},
|
|
102
|
-
async wait() {
|
|
103
|
-
record.markObserved();
|
|
104
|
-
return await record.promise;
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
export async function runCleanups(state) {
|
|
109
|
-
const cleanupCallbacks = state.startCleanup();
|
|
110
|
-
const errors = [];
|
|
111
|
-
for (const cleanupCallback of cleanupCallbacks.toReversed()) {
|
|
112
|
-
try {
|
|
113
|
-
await cleanupCallback();
|
|
114
|
-
}
|
|
115
|
-
catch (error) {
|
|
116
|
-
errors.push(error);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
return errors;
|
|
120
|
-
}
|
|
121
|
-
function pendingInFlightTaskFailure(count) {
|
|
122
|
-
return {
|
|
123
|
-
actual: count,
|
|
124
|
-
code: 'pending-in-flight-task',
|
|
125
|
-
expected: 'all in-flight tasks to settle before the test ends',
|
|
126
|
-
kind: 'test-contract',
|
|
127
|
-
summary: 'In-flight tasks must settle before the test ends.'
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
function unobservedInFlightTaskFailure(count) {
|
|
131
|
-
return {
|
|
132
|
-
actual: count,
|
|
133
|
-
code: 'unobserved-in-flight-task',
|
|
134
|
-
expected: 'all in-flight tasks to be awaited or asserted before the test ends',
|
|
135
|
-
kind: 'test-contract',
|
|
136
|
-
summary: 'In-flight tasks must be observed before the test ends.'
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
export function validateInFlightTasks(state) {
|
|
140
|
-
const pendingCount = state
|
|
141
|
-
.inFlightRecords()
|
|
142
|
-
.filter(function pendingTask(record) {
|
|
143
|
-
return !record.settled();
|
|
144
|
-
})
|
|
145
|
-
.length;
|
|
146
|
-
const unobservedCount = state
|
|
147
|
-
.inFlightRecords()
|
|
148
|
-
.filter(function unobservedTask(record) {
|
|
149
|
-
return record.settled() && !record.observed();
|
|
150
|
-
})
|
|
151
|
-
.length;
|
|
152
|
-
const failures = [];
|
|
153
|
-
if (pendingCount > 0) {
|
|
154
|
-
failures.push(pendingInFlightTaskFailure(pendingCount));
|
|
155
|
-
}
|
|
156
|
-
if (unobservedCount > 0) {
|
|
157
|
-
failures.push(unobservedInFlightTaskFailure(unobservedCount));
|
|
158
|
-
}
|
|
159
|
-
state.releaseInFlight();
|
|
160
|
-
return failures;
|
|
161
|
-
}
|
|
162
|
-
//# sourceMappingURL=async-control.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"async-control.js","sourceRoot":"","sources":["../../../../source/engine/async-control.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AA8BxE,MAAM,qBAAqB,GAAG,CAAC,CAAC;AAEhC,MAAM,CAAC,KAAK,UAAU,eAAe;IACjC,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC;AAC5B,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe;IACjC,MAAM,gBAAgB,EAAE,CAAC;AAC7B,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe;IACjC,KAAK,IAAI,UAAU,GAAG,CAAC,EAAE,UAAU,GAAG,qBAAqB,EAAE,UAAU,IAAI,CAAC,EAAE,CAAC;QAC3E,MAAM,eAAe,EAAE,CAAC;QACxB,MAAM,eAAe,EAAE,CAAC;IAC5B,CAAC;IAED,MAAM,eAAe,EAAE,CAAC;AAC5B,CAAC;AAED,MAAM,UAAU,uBAAuB;IACnC,IAAI,cAAc,GAAG,KAAK,CAAC;IAC3B,MAAM,gBAAgB,GAAsB,EAAE,CAAC;IAC/C,MAAM,eAAe,GAA8B,EAAE,CAAC;IAEtD,OAAO;QACH,cAAc;YACV,OAAO,cAAc,CAAC;QAC1B,CAAC;QACD,eAAe;YACX,OAAO,eAAe,CAAC;QAC3B,CAAC;QACD,eAAe,CAAC,QAAQ;YACpB,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACpC,CAAC;QACD,gBAAgB,CAAC,MAAM;YACnB,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACjC,CAAC;QACD,YAAY;YACR,cAAc,GAAG,IAAI,CAAC;YACtB,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;YAChD,gBAAgB,CAAC,MAAM,GAAG,CAAC,CAAC;YAC5B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BAA2B;QACjC,QAAQ,EAAE,oEAAoE;QAC9E,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,wDAAwD;KACpE,CAAC;AACN,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,KAAwB;IAC1D,MAAM,YAAY,GAAG,KAAK;SACrB,eAAe,EAAE;SACjB,MAAM,CAAC,SAAS,WAAW,CAAC,MAAM;QAC/B,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;IAC7B,CAAC,CAAC;SACD,MAAM,CAAC;IACZ,MAAM,eAAe,GAAG,KAAK;SACxB,eAAe,EAAE;SACjB,MAAM,CAAC,SAAS,cAAc,CAAC,MAAM;QAClC,OAAO,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;IAClD,CAAC,CAAC;SACD,MAAM,CAAC;IACZ,MAAM,QAAQ,GAA0B,EAAE,CAAC;IAE3C,IAAI,YAAY,GAAG,CAAC,EAAE,CAAC;QACnB,QAAQ,CAAC,IAAI,CAAC,0BAA0B,CAAC,YAAY,CAAC,CAAC,CAAC;IAC5D,CAAC;IAED,IAAI,eAAe,GAAG,CAAC,EAAE,CAAC;QACtB,QAAQ,CAAC,IAAI,CAAC,6BAA6B,CAAC,eAAe,CAAC,CAAC,CAAC;IAClE,CAAC;IAED,KAAK,CAAC,eAAe,EAAE,CAAC;IACxB,OAAO,QAAQ,CAAC;AACpB,CAAC"}
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import asyncHooks, { AsyncLocalStorage } from 'node:async_hooks';
|
|
2
|
-
import { observeResourceOwnerAllocations } from "./resource-owner-observation.js";
|
|
3
|
-
import { createExecutionObservation } from "./execution-observation.js";
|
|
4
|
-
export function createDisabledAsyncLeakMonitor() {
|
|
5
|
-
return {
|
|
6
|
-
async runOutsideCase(run) {
|
|
7
|
-
return await run();
|
|
8
|
-
},
|
|
9
|
-
casePromiseLeakError() {
|
|
10
|
-
return null;
|
|
11
|
-
},
|
|
12
|
-
async runCase(_testCase, run) {
|
|
13
|
-
return await run();
|
|
14
|
-
},
|
|
15
|
-
stop() {
|
|
16
|
-
return undefined;
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
const ignoredActiveResourceTypes = new Set(['PipeWrap']);
|
|
21
|
-
function sortedResourceTypes(types) {
|
|
22
|
-
return Array
|
|
23
|
-
.from(types)
|
|
24
|
-
.filter(function reportableResourceType(type) {
|
|
25
|
-
return !ignoredActiveResourceTypes.has(type);
|
|
26
|
-
})
|
|
27
|
-
.toSorted(function compareType(first, second) {
|
|
28
|
-
return first.localeCompare(second);
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
function resourceCounts(types) {
|
|
32
|
-
const counts = new Map();
|
|
33
|
-
for (const type of types) {
|
|
34
|
-
counts.set(type, (counts.get(type) ?? 0) + 1);
|
|
35
|
-
}
|
|
36
|
-
return counts;
|
|
37
|
-
}
|
|
38
|
-
function increasedResourceTypes(before, after) {
|
|
39
|
-
const beforeCounts = resourceCounts(before);
|
|
40
|
-
const afterCounts = resourceCounts(after);
|
|
41
|
-
const increasedTypes = [];
|
|
42
|
-
for (const [type, afterCount] of afterCounts) {
|
|
43
|
-
const beforeCount = beforeCounts.get(type) ?? 0;
|
|
44
|
-
if (afterCount > beforeCount) {
|
|
45
|
-
increasedTypes.push(...Array.from({ length: afterCount - beforeCount }, function repeatType() {
|
|
46
|
-
return type;
|
|
47
|
-
}));
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return sortedResourceTypes(increasedTypes);
|
|
51
|
-
}
|
|
52
|
-
export function activeResourceLeakError(input) {
|
|
53
|
-
const resourceTypes = increasedResourceTypes(input.before, input.after);
|
|
54
|
-
if (resourceTypes.length === 0) {
|
|
55
|
-
return null;
|
|
56
|
-
}
|
|
57
|
-
const cause = {
|
|
58
|
-
capability: 'async-leak',
|
|
59
|
-
leak: 'active-resource',
|
|
60
|
-
phase: input.phase,
|
|
61
|
-
resourceTypes,
|
|
62
|
-
strictness: 'observed'
|
|
63
|
-
};
|
|
64
|
-
return {
|
|
65
|
-
attributedToAttempt: null,
|
|
66
|
-
attributedTo: input.attributedTo,
|
|
67
|
-
attributedToWork: input.attributedToWork,
|
|
68
|
-
cause,
|
|
69
|
-
diagnostics: [
|
|
70
|
-
{ label: 'capability', value: cause.capability },
|
|
71
|
-
{ label: 'phase', value: cause.phase },
|
|
72
|
-
{ label: 'resources', value: resourceTypes.join(', ') }
|
|
73
|
-
],
|
|
74
|
-
message: `Runtime policy violation: active Node resources leaked: ${resourceTypes.join(', ')}.`,
|
|
75
|
-
subtype: 'runtime-policy'
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
function promiseLeakError(testCase, pendingPromiseCount) {
|
|
79
|
-
const cause = {
|
|
80
|
-
capability: 'async-leak',
|
|
81
|
-
leak: 'promise',
|
|
82
|
-
pendingPromiseCount,
|
|
83
|
-
phase: 'body',
|
|
84
|
-
strictness: 'observed'
|
|
85
|
-
};
|
|
86
|
-
return {
|
|
87
|
-
attributedToAttempt: null,
|
|
88
|
-
attributedTo: testCase.id,
|
|
89
|
-
attributedToWork: testCase.workId,
|
|
90
|
-
cause,
|
|
91
|
-
diagnostics: [
|
|
92
|
-
{ label: 'capability', value: cause.capability },
|
|
93
|
-
{ label: 'phase', value: cause.phase },
|
|
94
|
-
{ label: 'pending promises', value: String(pendingPromiseCount) }
|
|
95
|
-
],
|
|
96
|
-
message: `Runtime policy violation: ${pendingPromiseCount} promise(s) still pending after test cleanup.`,
|
|
97
|
-
subtype: 'runtime-policy'
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
function createTrackedPromise(activeCase) {
|
|
101
|
-
let consumed = false;
|
|
102
|
-
let settled = false;
|
|
103
|
-
return {
|
|
104
|
-
activeCase,
|
|
105
|
-
consume() {
|
|
106
|
-
consumed = true;
|
|
107
|
-
},
|
|
108
|
-
consumed() {
|
|
109
|
-
return consumed;
|
|
110
|
-
},
|
|
111
|
-
settle() {
|
|
112
|
-
settled = true;
|
|
113
|
-
},
|
|
114
|
-
settled() {
|
|
115
|
-
return settled;
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
export function createAsyncLeakMonitor() {
|
|
120
|
-
const activeCaseStorage = new AsyncLocalStorage();
|
|
121
|
-
const observation = createExecutionObservation();
|
|
122
|
-
const stopResourceAllocations = observeResourceOwnerAllocations();
|
|
123
|
-
const promises = new Map();
|
|
124
|
-
const attempts = new WeakMap();
|
|
125
|
-
const createHookKey = 'createHook';
|
|
126
|
-
const hook = asyncHooks[createHookKey]({
|
|
127
|
-
destroy(asyncId) {
|
|
128
|
-
promises.delete(asyncId);
|
|
129
|
-
},
|
|
130
|
-
init(asyncId, type, triggerAsyncId) {
|
|
131
|
-
if (type !== 'PROMISE' || !observation.accepts()) {
|
|
132
|
-
return;
|
|
133
|
-
}
|
|
134
|
-
const parentPromise = promises.get(triggerAsyncId);
|
|
135
|
-
if (parentPromise !== undefined) {
|
|
136
|
-
parentPromise.consume();
|
|
137
|
-
}
|
|
138
|
-
const activeCase = activeCaseStorage.getStore();
|
|
139
|
-
if (activeCase !== undefined) {
|
|
140
|
-
promises.set(asyncId, createTrackedPromise(activeCase));
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
promiseResolve(asyncId) {
|
|
144
|
-
const promise = promises.get(asyncId);
|
|
145
|
-
if (promise !== undefined) {
|
|
146
|
-
promise.settle();
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
hook.enable();
|
|
151
|
-
observation.register(function stopPromiseObservation() {
|
|
152
|
-
hook.disable();
|
|
153
|
-
stopResourceAllocations();
|
|
154
|
-
promises.clear();
|
|
155
|
-
});
|
|
156
|
-
return {
|
|
157
|
-
async runOutsideCase(run) {
|
|
158
|
-
return await activeCaseStorage.exit(run);
|
|
159
|
-
},
|
|
160
|
-
casePromiseLeakError(testCase) {
|
|
161
|
-
const activeCase = attempts.get(testCase);
|
|
162
|
-
const pendingPromiseCount = Array
|
|
163
|
-
.from(promises.values())
|
|
164
|
-
.filter(function pendingCasePromise(promise) {
|
|
165
|
-
return promise.activeCase === activeCase && !promise.settled() && !promise.consumed();
|
|
166
|
-
})
|
|
167
|
-
.length;
|
|
168
|
-
if (pendingPromiseCount === 0) {
|
|
169
|
-
return null;
|
|
170
|
-
}
|
|
171
|
-
return promiseLeakError(testCase, pendingPromiseCount);
|
|
172
|
-
},
|
|
173
|
-
async runCase(testCase, run) {
|
|
174
|
-
const activeCase = { testCase };
|
|
175
|
-
attempts.set(testCase, activeCase);
|
|
176
|
-
const operation = async function trackCasePromises() {
|
|
177
|
-
return await activeCaseStorage.run(activeCase, run);
|
|
178
|
-
};
|
|
179
|
-
return observation.hasActiveAttempt()
|
|
180
|
-
? await operation()
|
|
181
|
-
: await observation.runAttempt(testCase, { index: 0 }, operation);
|
|
182
|
-
},
|
|
183
|
-
stop() {
|
|
184
|
-
observation.stop();
|
|
185
|
-
}
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
//# sourceMappingURL=async-leak-diagnostics.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"async-leak-diagnostics.js","sourceRoot":"","sources":["../../../../source/engine/async-leak-diagnostics.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAwBxE,MAAM,UAAU,8BAA8B;IAC1C,OAAO;QACH,KAAK,CAAC,cAAc,CAAC,GAAG;YACpB,OAAO,MAAM,GAAG,EAAE,CAAC;QACvB,CAAC;QACD,oBAAoB;YAChB,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG;YACxB,OAAO,MAAM,GAAG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,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YAC1C,MAAM,mBAAmB,GAAG,KAAK;iBAC5B,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;iBACvB,MAAM,CAAC,SAAS,kBAAkB,CAAC,OAAO;gBACvC,OAAO,OAAO,CAAC,UAAU,KAAK,UAAU,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;YAC1F,CAAC,CAAC;iBACD,MAAM,CAAC;YAEZ,IAAI,mBAAmB,KAAK,CAAC,EAAE,CAAC;gBAC5B,OAAO,IAAI,CAAC;YAChB,CAAC;YAED,OAAO,gBAAgB,CAAC,QAAQ,EAAE,mBAAmB,CAAC,CAAC;QAC3D,CAAC;QACD,KAAK,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG;YACvB,MAAM,UAAU,GAAG,EAAE,QAAQ,EAAE,CAAC;YAChC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;YACnC,MAAM,SAAS,GAAG,KAAK,UAAU,iBAAiB;gBAC9C,OAAO,MAAM,iBAAiB,CAAC,GAAG,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;YACxD,CAAC,CAAC;YACF,OAAO,WAAW,CAAC,gBAAgB,EAAE;gBACjC,CAAC,CAAC,MAAM,SAAS,EAAE;gBACnB,CAAC,CAAC,MAAM,WAAW,CAAC,UAAU,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,SAAS,CAAC,CAAC;QAC1E,CAAC;QACD,IAAI;YACA,WAAW,CAAC,IAAI,EAAE,CAAC;QACvB,CAAC;KACJ,CAAC;AACN,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { BenchmarkGarbageCollectionPolicy, BenchmarkNormalizationContext } from './benchmark-result.ts';
|
|
2
|
-
import type { BenchmarkGarbageCollectionCapability } from './benchmark-garbage-collection.ts';
|
|
3
|
-
export type BenchmarkExecutionEnvironment = {
|
|
4
|
-
readonly profileGarbageCollection: BenchmarkGarbageCollectionPolicy;
|
|
5
|
-
readonly garbageCollection: BenchmarkGarbageCollectionCapability;
|
|
6
|
-
readonly normalization: BenchmarkNormalizationContext | null;
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=benchmark-environment.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"benchmark-environment.d.ts","sourceRoot":"","sources":["../../../../source/engine/benchmark-environment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gCAAgC,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAC7G,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,mCAAmC,CAAC;AAE9F,MAAM,MAAM,6BAA6B,GAAG;IACxC,QAAQ,CAAC,wBAAwB,EAAE,gCAAgC,CAAC;IACpE,QAAQ,CAAC,iBAAiB,EAAE,oCAAoC,CAAC;IACjE,QAAQ,CAAC,aAAa,EAAE,6BAA6B,GAAG,IAAI,CAAC;CAChE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"benchmark-garbage-collection.d.ts","sourceRoot":"","sources":["../../../../source/engine/benchmark-garbage-collection.ts"],"names":[],"mappings":"MAEM,MAAM,oCAAoC,GAAG;IAC/C,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;CAChC,GAAG;IACA,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CAC3B,CAAC"}
|