@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,28 +0,0 @@
|
|
|
1
|
-
import type { SourceLocation } from '../assertion-protocol/assertion-node-shape.ts';
|
|
2
|
-
import type { ReportingContext } from './reporting-context.ts';
|
|
3
|
-
declare const outputRendererBrand: unique symbol;
|
|
4
|
-
export type OutputIntentRole = 'primary' | 'supplemental';
|
|
5
|
-
export type OutputIntentSeverity = 'error' | 'notice' | 'warning';
|
|
6
|
-
export type OutputIntentAnnotation = {
|
|
7
|
-
readonly location: SourceLocation | null;
|
|
8
|
-
readonly severity: OutputIntentSeverity;
|
|
9
|
-
readonly title: string | null;
|
|
10
|
-
};
|
|
11
|
-
export type OutputLineIntent = {
|
|
12
|
-
readonly annotation: OutputIntentAnnotation | null;
|
|
13
|
-
readonly kind: 'stderr-line' | 'stdout-line';
|
|
14
|
-
readonly role: OutputIntentRole;
|
|
15
|
-
readonly text: string;
|
|
16
|
-
};
|
|
17
|
-
export type ReporterOutput = readonly OutputLineIntent[];
|
|
18
|
-
export type OptionalReporterOutput = ReporterOutput | undefined;
|
|
19
|
-
export type OutputRenderer = {
|
|
20
|
-
readonly render: (intent: OutputLineIntent) => string;
|
|
21
|
-
};
|
|
22
|
-
type RendererFactory<Renderer extends OutputRenderer> = (context: ReportingContext) => Renderer;
|
|
23
|
-
type Brand = {
|
|
24
|
-
readonly [outputRendererBrand]: true;
|
|
25
|
-
};
|
|
26
|
-
export type DefinedOutputRenderer<Renderer extends OutputRenderer = OutputRenderer> = Brand & RendererFactory<Renderer>;
|
|
27
|
-
export {};
|
|
28
|
-
//# sourceMappingURL=reporter-output.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reporter-output.d.ts","sourceRoot":"","sources":["../../../../source/engine/reporter-output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AACpF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,QAAA,MAAM,mBAAmB,eAAqD,CAAC;AAE/E,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,cAAc,CAAC;AAC1D,MAAM,MAAM,oBAAoB,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC;AAElE,MAAM,MAAM,sBAAsB,GAAG;IACjC,QAAQ,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAC;IACzC,QAAQ,CAAC,QAAQ,EAAE,oBAAoB,CAAC;IACxC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC3B,QAAQ,CAAC,UAAU,EAAE,sBAAsB,GAAG,IAAI,CAAC;IACnD,QAAQ,CAAC,IAAI,EAAE,aAAa,GAAG,aAAa,CAAC;IAC7C,QAAQ,CAAC,IAAI,EAAE,gBAAgB,CAAC;IAChC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,SAAS,gBAAgB,EAAE,CAAC;AACzD,MAAM,MAAM,sBAAsB,GAAG,cAAc,GAAG,SAAS,CAAC;AAEhE,MAAM,MAAM,cAAc,GAAG;IACzB,QAAQ,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,MAAM,CAAC;CACzD,CAAC;AACF,KAAK,eAAe,CAAC,QAAQ,SAAS,cAAc,IAAI,CACpD,OAAO,EAAE,gBAAgB,KACxB,QAAQ,CAAC;AACd,KAAK,KAAK,GAAG;IACT,QAAQ,CAAC,CAAC,mBAAmB,CAAC,EAAE,IAAI,CAAC;CACxC,CAAC;AACF,MAAM,MAAM,qBAAqB,CAAC,QAAQ,SAAS,cAAc,GAAG,cAAc,IAAI,KAAK,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;AAExH,MAAM,CAAyB,EAE9B,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const outputRendererBrand = Symbol.for('@overkill-dev/engine/output-renderer');
|
|
2
|
-
export function defineOutputRenderer(createOutputRenderer) {
|
|
3
|
-
return Object.assign(createOutputRenderer, { [outputRendererBrand]: true });
|
|
4
|
-
}
|
|
5
|
-
export function isOutputRenderer(value) {
|
|
6
|
-
return typeof value === 'function' && Object.hasOwn(value, outputRendererBrand);
|
|
7
|
-
}
|
|
8
|
-
export function createPlainOutputRenderer() {
|
|
9
|
-
return defineOutputRenderer(function createPlainRuntimeOutputRenderer() {
|
|
10
|
-
return {
|
|
11
|
-
render(intent) {
|
|
12
|
-
return intent.text;
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=reporter-output.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reporter-output.js","sourceRoot":"","sources":["../../../../source/engine/reporter-output.ts"],"names":[],"mappings":"AAGA,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAC,sCAAsC,CAAC,CAAC;AAoC/E,MAAM,UAAU,oBAAoB,CAChC,oBAA+C;IAE/C,OAAO,MAAM,CAAC,MAAM,CAAC,oBAAoB,EAAE,EAAE,CAAC,mBAAmB,CAAC,EAAE,IAAa,EAAE,CAAC,CAAC;AACzF,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,KAAc;IAC3C,OAAO,OAAO,KAAK,KAAK,UAAU,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,mBAAmB,CAAC,CAAC;AACpF,CAAC;AAED,MAAM,UAAU,yBAAyB;IACrC,OAAO,oBAAoB,CAAC,SAAS,gCAAgC;QACjE,OAAO;YACH,MAAM,CAAC,MAAM;gBACT,OAAO,MAAM,CAAC,IAAI,CAAC;YACvB,CAAC;SACJ,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC"}
|
package/engine/reporter.d.ts
DELETED
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
import type { BenchmarkExecutionResult } from './benchmark-result.ts';
|
|
2
|
-
import type { CaseId, WorkId } from './identity.ts';
|
|
3
|
-
import type { OptionalReporterOutput } from './reporter-output.ts';
|
|
4
|
-
import type { ReportingContext } from './reporting-context.ts';
|
|
5
|
-
import type { RunResult, RunnerError, TestOutcome, TestVerdict, RunArtifact } from './run-result.ts';
|
|
6
|
-
import type { TestAnnotations } from './test-data.ts';
|
|
7
|
-
import type { TestPlanCase, TestPlanSuitePathEntry } from './test-plan.ts';
|
|
8
|
-
declare const reporterBrand: unique symbol;
|
|
9
|
-
export type RunFacts = Readonly<Record<string, unknown>>;
|
|
10
|
-
export type RawStandardOutputSinkDeclaration = {
|
|
11
|
-
readonly kind: 'stderr-raw' | 'stdout-raw';
|
|
12
|
-
};
|
|
13
|
-
declare const managedStandardOutputSinkKinds: readonly ["stderr-managed-primary", "stderr-managed-supplemental", "stdout-managed-primary", "stdout-managed-supplemental"];
|
|
14
|
-
type ManagedStandardOutputSinkKind = typeof managedStandardOutputSinkKinds[number];
|
|
15
|
-
export type ManagedStandardOutputSinkDeclaration = {
|
|
16
|
-
readonly kind: ManagedStandardOutputSinkKind;
|
|
17
|
-
};
|
|
18
|
-
export type FileSinkDeclaration = {
|
|
19
|
-
readonly kind: 'file';
|
|
20
|
-
readonly path: string;
|
|
21
|
-
};
|
|
22
|
-
export type DirectorySinkDeclaration = {
|
|
23
|
-
readonly kind: 'directory';
|
|
24
|
-
readonly path: string;
|
|
25
|
-
};
|
|
26
|
-
export type MemorySinkDeclaration = {
|
|
27
|
-
readonly kind: 'memory';
|
|
28
|
-
};
|
|
29
|
-
export type StreamSinkDeclaration = {
|
|
30
|
-
readonly kind: 'stream';
|
|
31
|
-
readonly provided: WritableStream<unknown>;
|
|
32
|
-
};
|
|
33
|
-
type FileSystemSinkDeclaration = DirectorySinkDeclaration | FileSinkDeclaration;
|
|
34
|
-
type PrivateSinkDeclaration = MemorySinkDeclaration | StreamSinkDeclaration;
|
|
35
|
-
export type StandardOutputSinkDeclaration = ManagedStandardOutputSinkDeclaration | RawStandardOutputSinkDeclaration;
|
|
36
|
-
type ReporterSinkDeclaration = FileSystemSinkDeclaration | StandardOutputSinkDeclaration;
|
|
37
|
-
export type SinkDeclaration = PrivateSinkDeclaration | ReporterSinkDeclaration;
|
|
38
|
-
type NonManagedSinkDeclaration = Exclude<SinkDeclaration, ManagedStandardOutputSinkDeclaration>;
|
|
39
|
-
type ManagedSinkAt1 = readonly [ManagedStandardOutputSinkDeclaration, ...SinkDeclaration[]];
|
|
40
|
-
type ManagedSinkAt2 = readonly [
|
|
41
|
-
NonManagedSinkDeclaration,
|
|
42
|
-
ManagedStandardOutputSinkDeclaration,
|
|
43
|
-
...SinkDeclaration[]
|
|
44
|
-
];
|
|
45
|
-
type ManagedSinkAt3 = readonly [
|
|
46
|
-
NonManagedSinkDeclaration,
|
|
47
|
-
NonManagedSinkDeclaration,
|
|
48
|
-
ManagedStandardOutputSinkDeclaration,
|
|
49
|
-
...SinkDeclaration[]
|
|
50
|
-
];
|
|
51
|
-
type ManagedSinkAt4 = readonly [
|
|
52
|
-
NonManagedSinkDeclaration,
|
|
53
|
-
NonManagedSinkDeclaration,
|
|
54
|
-
NonManagedSinkDeclaration,
|
|
55
|
-
ManagedStandardOutputSinkDeclaration,
|
|
56
|
-
...SinkDeclaration[]
|
|
57
|
-
];
|
|
58
|
-
type ManagedSinkAt5 = readonly [
|
|
59
|
-
NonManagedSinkDeclaration,
|
|
60
|
-
NonManagedSinkDeclaration,
|
|
61
|
-
NonManagedSinkDeclaration,
|
|
62
|
-
NonManagedSinkDeclaration,
|
|
63
|
-
ManagedStandardOutputSinkDeclaration,
|
|
64
|
-
...SinkDeclaration[]
|
|
65
|
-
];
|
|
66
|
-
type ManagedSinkAt6 = readonly [
|
|
67
|
-
NonManagedSinkDeclaration,
|
|
68
|
-
NonManagedSinkDeclaration,
|
|
69
|
-
NonManagedSinkDeclaration,
|
|
70
|
-
NonManagedSinkDeclaration,
|
|
71
|
-
NonManagedSinkDeclaration,
|
|
72
|
-
ManagedStandardOutputSinkDeclaration,
|
|
73
|
-
...SinkDeclaration[]
|
|
74
|
-
];
|
|
75
|
-
type ManagedSinkAt1To3 = ManagedSinkAt1 | ManagedSinkAt2 | ManagedSinkAt3;
|
|
76
|
-
type ManagedSinkAt4To6 = ManagedSinkAt4 | ManagedSinkAt5 | ManagedSinkAt6;
|
|
77
|
-
type ManagedStandardOutputSinkTuple = ManagedSinkAt1To3 | ManagedSinkAt4To6;
|
|
78
|
-
export declare class ReporterSinkConflictError extends Error {
|
|
79
|
-
constructor(message: string, options?: Readonly<ErrorOptions>);
|
|
80
|
-
}
|
|
81
|
-
type RunStartReporterEvent = {
|
|
82
|
-
readonly facts: RunFacts;
|
|
83
|
-
readonly kind: 'run-start';
|
|
84
|
-
readonly root: {
|
|
85
|
-
readonly annotations: TestAnnotations;
|
|
86
|
-
readonly title: string;
|
|
87
|
-
};
|
|
88
|
-
readonly startedAt: string;
|
|
89
|
-
};
|
|
90
|
-
type RunEndReporterEvent = {
|
|
91
|
-
readonly kind: 'run-end';
|
|
92
|
-
readonly result: RunResult;
|
|
93
|
-
};
|
|
94
|
-
type RunnerErrorReporterEvent = {
|
|
95
|
-
readonly error: RunnerError;
|
|
96
|
-
readonly kind: 'runner-error';
|
|
97
|
-
};
|
|
98
|
-
type SuiteStartReporterEvent = {
|
|
99
|
-
readonly kind: 'suite-start';
|
|
100
|
-
readonly suitePath: readonly TestPlanSuitePathEntry[];
|
|
101
|
-
};
|
|
102
|
-
type SuiteEndReporterEvent = {
|
|
103
|
-
readonly kind: 'suite-end';
|
|
104
|
-
readonly suitePath: readonly TestPlanSuitePathEntry[];
|
|
105
|
-
};
|
|
106
|
-
type TestStartReporterEvent = {
|
|
107
|
-
readonly attempt: number;
|
|
108
|
-
readonly case: CaseId;
|
|
109
|
-
readonly definitionLocations: TestPlanCase['definitionLocations'];
|
|
110
|
-
readonly kind: 'test-start';
|
|
111
|
-
readonly suitePath: TestPlanCase['suitePath'];
|
|
112
|
-
readonly workId?: WorkId;
|
|
113
|
-
};
|
|
114
|
-
type TestProgressReporterEvent = {
|
|
115
|
-
readonly attempt: number;
|
|
116
|
-
readonly case: CaseId;
|
|
117
|
-
readonly definitionLocations: TestPlanCase['definitionLocations'];
|
|
118
|
-
readonly kind: 'test-progress';
|
|
119
|
-
readonly note: string;
|
|
120
|
-
readonly suitePath: TestPlanCase['suitePath'];
|
|
121
|
-
readonly workId?: WorkId;
|
|
122
|
-
};
|
|
123
|
-
type TestEndReporterEvent = {
|
|
124
|
-
readonly benchmark: BenchmarkExecutionResult | null;
|
|
125
|
-
readonly completion: 'final' | 'retry';
|
|
126
|
-
readonly attempt: number;
|
|
127
|
-
readonly artifacts: readonly RunArtifact[];
|
|
128
|
-
readonly case: CaseId;
|
|
129
|
-
readonly definitionLocations: TestPlanCase['definitionLocations'];
|
|
130
|
-
readonly kind: 'test-end';
|
|
131
|
-
readonly outcome: TestOutcome | null;
|
|
132
|
-
readonly suitePath: TestPlanCase['suitePath'];
|
|
133
|
-
readonly verdict: TestVerdict;
|
|
134
|
-
readonly durationMicroseconds: number;
|
|
135
|
-
readonly workId?: WorkId;
|
|
136
|
-
};
|
|
137
|
-
type BenchmarkProgressReporterEvent = {
|
|
138
|
-
readonly benchmark: BenchmarkExecutionResult;
|
|
139
|
-
readonly attempt: number;
|
|
140
|
-
readonly case: CaseId;
|
|
141
|
-
readonly definitionLocations: TestPlanCase['definitionLocations'];
|
|
142
|
-
readonly kind: 'benchmark-progress';
|
|
143
|
-
readonly suitePath: TestPlanCase['suitePath'];
|
|
144
|
-
readonly workId: WorkId;
|
|
145
|
-
};
|
|
146
|
-
type RunReporterEvent = RunEndReporterEvent | RunnerErrorReporterEvent | RunStartReporterEvent;
|
|
147
|
-
type SuiteReporterEvent = SuiteEndReporterEvent | SuiteStartReporterEvent;
|
|
148
|
-
type TestReporterEvents = {
|
|
149
|
-
readonly benchmark: BenchmarkProgressReporterEvent;
|
|
150
|
-
readonly end: TestEndReporterEvent;
|
|
151
|
-
readonly progress: TestProgressReporterEvent;
|
|
152
|
-
readonly start: TestStartReporterEvent;
|
|
153
|
-
};
|
|
154
|
-
type TestReporterEvent = TestReporterEvents[keyof TestReporterEvents];
|
|
155
|
-
export type ReporterEvent = RunReporterEvent | SuiteReporterEvent | TestReporterEvent;
|
|
156
|
-
type BaseRealTimeReporter<Sinks extends readonly SinkDeclaration[]> = {
|
|
157
|
-
readonly dispose: (() => Promise<void> | void) | null;
|
|
158
|
-
readonly kind: 'real-time';
|
|
159
|
-
readonly name: string;
|
|
160
|
-
readonly sinks: Sinks;
|
|
161
|
-
};
|
|
162
|
-
type ManagedOutputEventCallback = (event: ReporterEvent) => OptionalReporterOutput | Promise<OptionalReporterOutput>;
|
|
163
|
-
type ManagedOutputFinishCallback = (result: RunResult) => OptionalReporterOutput | Promise<OptionalReporterOutput>;
|
|
164
|
-
type RealTimeReporterWithOutput<Sinks extends readonly SinkDeclaration[]> = BaseRealTimeReporter<Sinks> & {
|
|
165
|
-
readonly onEvent: ManagedOutputEventCallback;
|
|
166
|
-
readonly onFinish: ManagedOutputFinishCallback | null;
|
|
167
|
-
};
|
|
168
|
-
type RealTimeReporterWithoutOutput<Sinks extends readonly SinkDeclaration[]> = BaseRealTimeReporter<Sinks> & {
|
|
169
|
-
readonly onEvent: (event: ReporterEvent) => Promise<void> | void;
|
|
170
|
-
readonly onFinish: ((result: RunResult) => Promise<void> | void) | null;
|
|
171
|
-
};
|
|
172
|
-
type BaseFinalResultReporter<Sinks extends readonly SinkDeclaration[]> = {
|
|
173
|
-
readonly dispose: (() => Promise<void> | void) | null;
|
|
174
|
-
readonly kind: 'final-result';
|
|
175
|
-
readonly name: string;
|
|
176
|
-
readonly sinks: Sinks;
|
|
177
|
-
};
|
|
178
|
-
type ManagedOutputResultCallback = (result: RunResult) => OptionalReporterOutput | Promise<OptionalReporterOutput>;
|
|
179
|
-
type FinalResultReporterWithOutput<Sinks extends readonly SinkDeclaration[]> = BaseFinalResultReporter<Sinks> & {
|
|
180
|
-
readonly onResult: ManagedOutputResultCallback;
|
|
181
|
-
};
|
|
182
|
-
type FinalResultReporterWithoutOutput<Sinks extends readonly SinkDeclaration[]> = BaseFinalResultReporter<Sinks> & {
|
|
183
|
-
readonly onResult: (result: RunResult) => Promise<void> | void;
|
|
184
|
-
};
|
|
185
|
-
type OutputFinalReporter = FinalResultReporterWithOutput<ManagedStandardOutputSinkTuple>;
|
|
186
|
-
type OutputRealTimeReporter = RealTimeReporterWithOutput<ManagedStandardOutputSinkTuple>;
|
|
187
|
-
type SideEffectFinalReporter = FinalResultReporterWithoutOutput<readonly SinkDeclaration[]>;
|
|
188
|
-
type SideEffectRealTimeReporter = RealTimeReporterWithoutOutput<readonly SinkDeclaration[]>;
|
|
189
|
-
type OutputReporter = OutputFinalReporter | OutputRealTimeReporter;
|
|
190
|
-
type SideEffectReporter = SideEffectFinalReporter | SideEffectRealTimeReporter;
|
|
191
|
-
export type Reporter = OutputReporter | SideEffectReporter;
|
|
192
|
-
type ReporterDefinition<ReporterValue extends Reporter> = (context: ReportingContext) => ReporterValue;
|
|
193
|
-
export type DefinedReporter<ReporterValue extends Reporter = Reporter> = ReporterDefinition<ReporterValue> & {
|
|
194
|
-
readonly [reporterBrand]: true;
|
|
195
|
-
};
|
|
196
|
-
export {};
|
|
197
|
-
//# sourceMappingURL=reporter.d.ts.map
|
package/engine/reporter.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reporter.d.ts","sourceRoot":"","sources":["../../../../source/engine/reporter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,sBAAsB,EAAoB,MAAM,sBAAsB,CAAC;AACrF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACrG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAE3E,QAAA,MAAM,aAAa,eAA8C,CAAC;A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AAG,gCAAgC,CAAC,SAAS,eAAe,EAAE,CAAC,CAAC;AAC5F,KAAK,0BAA0B,GAAG,6BAA6B,CAAC,SAAS,eAAe,EAAE,CAAC,CAAC;AAC5F,KAAK,cAAc,GAAG,mBAAmB,GAAG,sBAAsB,CAAC;AACnE,KAAK,kBAAkB,GAAG,uBAAuB,GAAG,0BAA0B,CAAC;AAE/E,MAAM,MAAM,QAAQ,GAAG,cAAc,GAAG,kBAAkB,CAAC;AAC3D,KAAK,kBAAkB,CAAC,aAAa,SAAS,QAAQ,IAAI,CAAC,OAAO,EAAE,gBAAgB,KAAK,aAAa,CAAC;AACvG,MAAM,MAAM,eAAe,CAAC,aAAa,SAAS,QAAQ,GAAG,QAAQ,IAAI,kBAAkB,CAAC,aAAa,CAAC,GAAG;IACzG,QAAQ,CAAC,CAAC,aAAa,CAAC,EAAE,IAAI,CAAC;CAClC,CAAC;OAGgE,EAGjE,CAAC"}
|
package/engine/reporter.js
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
const reporterBrand = Symbol.for('@overkill-dev/engine/reporter');
|
|
2
|
-
const managedStandardOutputSinkKinds = [
|
|
3
|
-
'stderr-managed-primary',
|
|
4
|
-
'stderr-managed-supplemental',
|
|
5
|
-
'stdout-managed-primary',
|
|
6
|
-
'stdout-managed-supplemental'
|
|
7
|
-
];
|
|
8
|
-
const managedStandardOutputSinkKindNames = managedStandardOutputSinkKinds;
|
|
9
|
-
export class ReporterSinkConflictError extends Error {
|
|
10
|
-
constructor(message, options) {
|
|
11
|
-
super(message, options);
|
|
12
|
-
this.name = 'ReporterSinkConflictError';
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
const reporterRequirementsBrand = Symbol.for('@overkill-dev/engine/reporter-requirements');
|
|
16
|
-
export function defineReporter(definition) {
|
|
17
|
-
if (typeof definition === 'function') {
|
|
18
|
-
return Object.assign(definition, { [reporterBrand]: true });
|
|
19
|
-
}
|
|
20
|
-
return Object.assign(definition.createReporter, {
|
|
21
|
-
[reporterBrand]: true,
|
|
22
|
-
[reporterRequirementsBrand]: definition.validateRunFacts
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
function hasReporterRequirements(reporter) {
|
|
26
|
-
return Object.hasOwn(reporter, reporterRequirementsBrand);
|
|
27
|
-
}
|
|
28
|
-
export function validateReporterRunFacts(reporter, facts) {
|
|
29
|
-
if (hasReporterRequirements(reporter)) {
|
|
30
|
-
reporter[reporterRequirementsBrand](facts);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
export function isReporter(value) {
|
|
34
|
-
return typeof value === 'function' && Object.hasOwn(value, reporterBrand);
|
|
35
|
-
}
|
|
36
|
-
function pathSinkKey(sink) {
|
|
37
|
-
return `path:${sink.path}`;
|
|
38
|
-
}
|
|
39
|
-
function standardOutputStream(sink) {
|
|
40
|
-
return sink.kind.startsWith('stderr') ? 'stderr' : 'stdout';
|
|
41
|
-
}
|
|
42
|
-
function isManagedStandardOutputSink(sink) {
|
|
43
|
-
return managedStandardOutputSinkKindNames.includes(sink.kind);
|
|
44
|
-
}
|
|
45
|
-
function standardOutputRole(sink) {
|
|
46
|
-
if (sink.kind.endsWith('primary')) {
|
|
47
|
-
return 'primary';
|
|
48
|
-
}
|
|
49
|
-
return 'supplemental';
|
|
50
|
-
}
|
|
51
|
-
function standardOutputSinkConflictMessage(stream) {
|
|
52
|
-
return `Reporter sink conflict: ${stream} is claimed by incompatible reporters.`;
|
|
53
|
-
}
|
|
54
|
-
function nextClaimedStandardOutputRole(existingSink, sink) {
|
|
55
|
-
return existingSink?.role === 'primary' ? 'primary' : standardOutputRole(sink);
|
|
56
|
-
}
|
|
57
|
-
function claimStandardOutputSink(claimedSinks, key, sink) {
|
|
58
|
-
const updatedSinks = new Map(claimedSinks);
|
|
59
|
-
return updatedSinks.set(key, sink);
|
|
60
|
-
}
|
|
61
|
-
function validateRawStandardOutputSink(claimedSinks, sink) {
|
|
62
|
-
const key = standardOutputStream(sink);
|
|
63
|
-
if (claimedSinks.has(key)) {
|
|
64
|
-
throw new ReporterSinkConflictError(standardOutputSinkConflictMessage(key));
|
|
65
|
-
}
|
|
66
|
-
return claimStandardOutputSink(claimedSinks, key, { mode: 'raw', role: null });
|
|
67
|
-
}
|
|
68
|
-
function validateManagedStandardOutputSink(claimedSinks, sink) {
|
|
69
|
-
const key = standardOutputStream(sink);
|
|
70
|
-
const existingSink = claimedSinks.get(key);
|
|
71
|
-
const sinkRole = standardOutputRole(sink);
|
|
72
|
-
if (existingSink?.mode === 'raw' || existingSink?.role === 'primary' && sinkRole === 'primary') {
|
|
73
|
-
throw new ReporterSinkConflictError(standardOutputSinkConflictMessage(key));
|
|
74
|
-
}
|
|
75
|
-
return claimStandardOutputSink(claimedSinks, key, {
|
|
76
|
-
mode: 'managed',
|
|
77
|
-
role: nextClaimedStandardOutputRole(existingSink, sink)
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
function validatePathSink(claimedSinks, sink) {
|
|
81
|
-
const key = pathSinkKey(sink);
|
|
82
|
-
if (claimedSinks.has(key)) {
|
|
83
|
-
throw new ReporterSinkConflictError(`Reporter sink conflict: path "${sink.path}" is claimed by multiple reporters.`);
|
|
84
|
-
}
|
|
85
|
-
const updatedSinks = new Map(claimedSinks);
|
|
86
|
-
return updatedSinks.set(key, {
|
|
87
|
-
mode: 'raw',
|
|
88
|
-
role: null
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
function validateReporterSink(claimedSinks, sink) {
|
|
92
|
-
if (sink.kind === 'stdout-raw' || sink.kind === 'stderr-raw') {
|
|
93
|
-
return validateRawStandardOutputSink(claimedSinks, sink);
|
|
94
|
-
}
|
|
95
|
-
if (isManagedStandardOutputSink(sink)) {
|
|
96
|
-
return validateManagedStandardOutputSink(claimedSinks, sink);
|
|
97
|
-
}
|
|
98
|
-
if (sink.kind === 'file' || sink.kind === 'directory') {
|
|
99
|
-
return validatePathSink(claimedSinks, sink);
|
|
100
|
-
}
|
|
101
|
-
return claimedSinks;
|
|
102
|
-
}
|
|
103
|
-
export function validateReporterSinks(reporters) {
|
|
104
|
-
let claimedSinks = new Map();
|
|
105
|
-
for (const reporter of reporters) {
|
|
106
|
-
for (const sink of reporter.sinks) {
|
|
107
|
-
claimedSinks = validateReporterSink(claimedSinks, sink);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
//# sourceMappingURL=reporter.js.map
|
package/engine/reporter.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reporter.js","sourceRoot":"","sources":["../../../../source/engine/reporter.ts"],"names":[],"mappings":"AAQA,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;AAQlE,MAAM,8BAA8B,GAAG;IACnC,wBAAwB;IACxB,6BAA6B;IAC7B,wBAAwB;IACxB,6BAA6B;CACvB,CAAC;AAGX,MAAM,kCAAkC,GAAsB,8BAA8B,CAAC;AAwE7F,MAAM,OAAO,yBAA0B,SAAQ,KAAK;IAChD,YAAmB,OAAe,EAAE,OAAgC;QAChE,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,2BAA2B,CAAC;IAC5C,CAAC;CACJ;AAkLD,MAAM,yBAAyB,GAAG,MAAM,CAAC,GAAG,CAAC,4CAA4C,CAAC,CAAC;AAS3F,MAAM,UAAU,cAAc,CAC1B,UAAyF;IAEzF,IAAI,OAAO,UAAU,KAAK,UAAU,EAAE,CAAC;QACnC,OAAO,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,EAAE,CAAC,aAAa,CAAC,EAAE,IAAa,EAAE,CAAC,CAAC;IACzE,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,EAAE;QAC5C,CAAC,aAAa,CAAC,EAAE,IAAa;QAC9B,CAAC,yBAAyB,CAAC,EAAE,UAAU,CAAC,gBAAgB;KAC3D,CAAC,CAAC;A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
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { KnownSourceLocation } from '../assertion-protocol/assertion-node-shape.ts';
|
|
2
|
-
export type ReportingContext = {
|
|
3
|
-
readonly relativizeLocationPath: (location: KnownSourceLocation) => string;
|
|
4
|
-
};
|
|
5
|
-
export {};
|
|
6
|
-
//# sourceMappingURL=reporting-context.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reporting-context.d.ts","sourceRoot":"","sources":["../../../../source/engine/reporting-context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACR,qBAEH,MAAM,+CAA+C,CAAC;AAOvD,MAAM,MAAM,gBAAgB,GAAG;IAC3B,QAAQ,CAAC,sBAAsB,EAAE,CAAC,QAAQ,EAAE,mBAAmB,KAAK,MAAM,CAAC;CAC9E,CAAC;AAEF,MAAM,CAAgC,EAGrC,CAAC"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import path from 'node:path';
|
|
2
|
-
import { ensureKnownSourceLocation, ensureValidSourceLocation, resolveSourceLocation } from "../assertion-protocol/source-location.js";
|
|
3
|
-
const secondToLastOffset = 2;
|
|
4
|
-
function normalizedPath(file) {
|
|
5
|
-
return file.replaceAll('\\', '/');
|
|
6
|
-
}
|
|
7
|
-
function pathApi(file) {
|
|
8
|
-
return path.win32.isAbsolute(file) ? path.win32 : path.posix;
|
|
9
|
-
}
|
|
10
|
-
function isAbsolutePath(file) {
|
|
11
|
-
return path.posix.isAbsolute(file) || path.win32.isAbsolute(file);
|
|
12
|
-
}
|
|
13
|
-
function isOutsideRoot(relativeFile) {
|
|
14
|
-
return relativeFile === '..' ||
|
|
15
|
-
relativeFile.startsWith('../') ||
|
|
16
|
-
relativeFile.startsWith('..\\') ||
|
|
17
|
-
isAbsolutePath(relativeFile);
|
|
18
|
-
}
|
|
19
|
-
function rawLocationPath(location) {
|
|
20
|
-
ensureValidSourceLocation(location);
|
|
21
|
-
return normalizedPath(location.file);
|
|
22
|
-
}
|
|
23
|
-
export function relativizeSourceLocationPath(location, projectRoot) {
|
|
24
|
-
ensureValidSourceLocation(location);
|
|
25
|
-
if (projectRoot === null || !isAbsolutePath(location.file) || !isAbsolutePath(projectRoot)) {
|
|
26
|
-
return rawLocationPath(location);
|
|
27
|
-
}
|
|
28
|
-
const platformPath = pathApi(location.file);
|
|
29
|
-
const relativeFile = platformPath.relative(projectRoot, location.file);
|
|
30
|
-
return relativeFile.length > 0 && !isOutsideRoot(relativeFile)
|
|
31
|
-
? normalizedPath(relativeFile)
|
|
32
|
-
: rawLocationPath(location);
|
|
33
|
-
}
|
|
34
|
-
export function createReportingContext(state) {
|
|
35
|
-
return {
|
|
36
|
-
relativizeLocationPath(location) {
|
|
37
|
-
return relativizeSourceLocationPath(location, state.projectRoot);
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
export function formatSourceLocation(location, context) {
|
|
42
|
-
const knownLocation = ensureKnownSourceLocation(resolveSourceLocation(location));
|
|
43
|
-
if (knownLocation === null) {
|
|
44
|
-
return null;
|
|
45
|
-
}
|
|
46
|
-
const file = context.relativizeLocationPath(knownLocation);
|
|
47
|
-
if (knownLocation.line === null) {
|
|
48
|
-
return file;
|
|
49
|
-
}
|
|
50
|
-
if (knownLocation.column === null) {
|
|
51
|
-
return `${file}:${knownLocation.line}`;
|
|
52
|
-
}
|
|
53
|
-
return `${file}:${knownLocation.line}:${knownLocation.column}`;
|
|
54
|
-
}
|
|
55
|
-
function formatLocationChain(locations, context, labels) {
|
|
56
|
-
const primaryLocation = locations[0];
|
|
57
|
-
const primary = primaryLocation === undefined ? null : formatSourceLocation(primaryLocation, context);
|
|
58
|
-
const details = locations.slice(1).flatMap(function renderSourceLocation(location, index) {
|
|
59
|
-
const renderedLocation = formatSourceLocation(location, context);
|
|
60
|
-
if (renderedLocation === null) {
|
|
61
|
-
return [];
|
|
62
|
-
}
|
|
63
|
-
const label = index === locations.length - secondToLastOffset ? labels.final : labels.intermediate;
|
|
64
|
-
return [`${label} ${renderedLocation}`];
|
|
65
|
-
});
|
|
66
|
-
return { details, primary };
|
|
67
|
-
}
|
|
68
|
-
export function formatDefinitionLocations(locations, context) {
|
|
69
|
-
return formatLocationChain(locations, context, { final: 'constructed at', intermediate: 'expanded at' });
|
|
70
|
-
}
|
|
71
|
-
export function formatAssertionSourceLocations(locations, context) {
|
|
72
|
-
return formatLocationChain(locations, context, { final: 'asserted at', intermediate: 'forwarded through' });
|
|
73
|
-
}
|
|
74
|
-
//# sourceMappingURL=reporting-context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reporting-context.js","sourceRoot":"","sources":["../../../../source/engine/reporting-context.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAK7B,OAAO,EACH,yBAAyB,EACzB,yBAAyB,EACzB,qBAAqB,EACxB,MAAM,0CAA0C,CAAC;AAoBlD,MAAM,kBAAkB,GAAG,CAAC,CAAC;AAE7B,SAAS,cAAc,CAAC,IAAY;IAChC,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AACtC,CAAC;AAED,SAAS,OAAO,CAAC,IAAY;IACzB,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;AACjE,CAAC;AAED,SAAS,cAAc,CAAC,IAAY;IAChC,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;AACtE,CAAC;AAED,SAAS,aAAa,CAAC,YAAoB;IACvC,OAAO,YAAY,KAAK,IAAI;QACxB,YAAY,CAAC,UAAU,CAAC,KAAK,CAAC;QAC9B,YAAY,CAAC,UAAU,CAAC,MAAM,CAAC;QAC/B,cAAc,CAAC,YAAY,CAAC,C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EAAE,EAAE,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,EAAE,CAAC,CAAC;AAC7G,CAAC;AAED,MAAM,UAAU,8BAA8B,CAC1C,SAA8C,EAC9C,OAAyB;IAEzB,OAAO,mBAAmB,CAAC,SAAS,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,mBAAmB,EAAE,CAAC,CAAC;AAChH,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { NarrowingCompositeAssertionReference } from '../assertion-protocol/assertion-reference.ts';
|
|
2
|
-
import type { AssertionOptions, InstanceConstructor } from '../assertion-protocol/assertion-node-shape.ts';
|
|
3
|
-
export type RequireAssertionFacade = {
|
|
4
|
-
<Actual, Narrowed extends Actual, Arguments extends readonly unknown[]>(reference: NarrowingCompositeAssertionReference<Actual, Narrowed, Arguments>, actual: Actual, ...parameters: Arguments): asserts actual is Narrowed;
|
|
5
|
-
readonly annotated: (message: string) => RequireAssertionFacade;
|
|
6
|
-
readonly array: (actual: unknown, options?: AssertionOptions) => asserts actual is readonly unknown[];
|
|
7
|
-
readonly boolean: (actual: unknown, options?: AssertionOptions) => asserts actual is boolean;
|
|
8
|
-
readonly defined: <Value>(actual: Value, options?: AssertionOptions) => asserts actual is NonNullable<Value>;
|
|
9
|
-
readonly function: (actual: unknown, options?: AssertionOptions) => asserts actual is (...parameters: readonly unknown[]) => unknown;
|
|
10
|
-
readonly hasProperty: <Key extends PropertyKey>(actual: unknown, key: Key, options?: AssertionOptions) => asserts actual is Readonly<Record<Key, unknown>>;
|
|
11
|
-
readonly instanceOf: <Constructor extends InstanceConstructor>(actual: unknown, expected: Constructor, options?: AssertionOptions) => asserts actual is InstanceType<Constructor>;
|
|
12
|
-
readonly notNull: <Value>(actual: Value, options?: AssertionOptions) => asserts actual is Exclude<Value, null>;
|
|
13
|
-
readonly null: (actual: unknown, options?: AssertionOptions) => asserts actual is null;
|
|
14
|
-
readonly number: (actual: unknown, options?: AssertionOptions) => asserts actual is number;
|
|
15
|
-
readonly object: (actual: unknown, options?: AssertionOptions) => asserts actual is Readonly<Record<PropertyKey, unknown>>;
|
|
16
|
-
readonly string: (actual: unknown, options?: AssertionOptions) => asserts actual is string;
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=require-assertion-facade.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"require-assertion-facade.d.ts","sourceRoot":"","sources":["../../../../source/engine/require-assertion-facade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,8CAA8C,CAAC;AACzG,OAAO,KAAK,EACR,gBAAgB,EAChB,qBAEH,MAAM,+CAA+C,CAAC;MAQjD,MAAM,sBAAsB,GAAG;IACjC,CAAC,MAAM,EAAE,QAAQ,SAAS,MAAM,EAAE,SAAS,SAAS,SAAS,OAAO,EAAE,EAClE,SAAS,EAAE,oCAAoC,CAAC,MAAM,EAAE,QAAQ,EAAE,SAAS,CAAC,EAC5E,MAAM,EAAE,MAAM,EACd,GAAG,UAAU,EAAE,SAAS,GACzB,OAAO,CAAC,MAAM,IAAI,QAAQ,CAAC;IAC9B,QAAQ,CAAC,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,sBAAsB,CAAC;IAChE,QAAQ,CAAC,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,gBAAgB,KAAK,OAAO,CAAC,MAAM,IAAI,SAAS,OAAO,EAAE,CAAC;IACtG,QAAQ,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,gBAAgB,KAAK,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC;IAC7F,QAAQ,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,gBAAgB,KAAK,OAAO,CAAC,MAAM,IAAI,WAAW,CAAC,KAA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9D,QAAQ,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,gBAAgB,KAAK,OAAO,CAAC,MAAM,IAAI,MAAM,CAAC;CAC9F,CAAC"}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { sourceLocationsWithCurrentForwarding } from "../assertion-protocol/source-location-forwarding.js";
|
|
2
|
-
import { captureSourceLocation } from "../assertion-protocol/source-location.js";
|
|
3
|
-
import { recordRequireReference } from "./custom-assertion-recording.js";
|
|
4
|
-
function messageFromOptions(options, annotation) {
|
|
5
|
-
return options?.message ?? annotation;
|
|
6
|
-
}
|
|
7
|
-
export function createRecordingRequireFacadeWithLocation(sink, annotation, captureLocation) {
|
|
8
|
-
const methods = {
|
|
9
|
-
annotated(message) {
|
|
10
|
-
return createRecordingRequireFacadeWithLocation(sink, message, captureLocation);
|
|
11
|
-
},
|
|
12
|
-
array(actual, options) {
|
|
13
|
-
sink.recordRequire({
|
|
14
|
-
actual,
|
|
15
|
-
check: 'array',
|
|
16
|
-
message: messageFromOptions(options, annotation),
|
|
17
|
-
source: 'require',
|
|
18
|
-
sourceLocations: sourceLocationsWithCurrentForwarding(captureLocation)
|
|
19
|
-
});
|
|
20
|
-
},
|
|
21
|
-
boolean(actual, options) {
|
|
22
|
-
sink.recordRequire({
|
|
23
|
-
actual,
|
|
24
|
-
check: 'boolean',
|
|
25
|
-
message: messageFromOptions(options, annotation),
|
|
26
|
-
source: 'require',
|
|
27
|
-
sourceLocations: sourceLocationsWithCurrentForwarding(captureLocation)
|
|
28
|
-
});
|
|
29
|
-
},
|
|
30
|
-
defined(actual, options) {
|
|
31
|
-
sink.recordRequire({
|
|
32
|
-
actual,
|
|
33
|
-
check: 'defined',
|
|
34
|
-
message: messageFromOptions(options, annotation),
|
|
35
|
-
source: 'require',
|
|
36
|
-
sourceLocations: sourceLocationsWithCurrentForwarding(captureLocation)
|
|
37
|
-
});
|
|
38
|
-
},
|
|
39
|
-
function(actual, options) {
|
|
40
|
-
sink.recordRequire({
|
|
41
|
-
actual,
|
|
42
|
-
check: 'function',
|
|
43
|
-
message: messageFromOptions(options, annotation),
|
|
44
|
-
source: 'require',
|
|
45
|
-
sourceLocations: sourceLocationsWithCurrentForwarding(captureLocation)
|
|
46
|
-
});
|
|
47
|
-
},
|
|
48
|
-
hasProperty(actual, key, options) {
|
|
49
|
-
sink.recordRequire({
|
|
50
|
-
actual,
|
|
51
|
-
check: 'has-property',
|
|
52
|
-
key,
|
|
53
|
-
message: messageFromOptions(options, annotation),
|
|
54
|
-
source: 'require',
|
|
55
|
-
sourceLocations: sourceLocationsWithCurrentForwarding(captureLocation)
|
|
56
|
-
});
|
|
57
|
-
},
|
|
58
|
-
instanceOf(actual, expected, options) {
|
|
59
|
-
sink.recordRequire({
|
|
60
|
-
actual,
|
|
61
|
-
check: 'instance-of',
|
|
62
|
-
expected,
|
|
63
|
-
message: messageFromOptions(options, annotation),
|
|
64
|
-
source: 'require',
|
|
65
|
-
sourceLocations: sourceLocationsWithCurrentForwarding(captureLocation)
|
|
66
|
-
});
|
|
67
|
-
},
|
|
68
|
-
notNull(actual, options) {
|
|
69
|
-
sink.recordRequire({
|
|
70
|
-
actual,
|
|
71
|
-
check: 'not-null',
|
|
72
|
-
message: messageFromOptions(options, annotation),
|
|
73
|
-
source: 'require',
|
|
74
|
-
sourceLocations: sourceLocationsWithCurrentForwarding(captureLocation)
|
|
75
|
-
});
|
|
76
|
-
},
|
|
77
|
-
null(actual, options) {
|
|
78
|
-
sink.recordRequire({
|
|
79
|
-
actual,
|
|
80
|
-
check: 'null',
|
|
81
|
-
message: messageFromOptions(options, annotation),
|
|
82
|
-
source: 'require',
|
|
83
|
-
sourceLocations: sourceLocationsWithCurrentForwarding(captureLocation)
|
|
84
|
-
});
|
|
85
|
-
},
|
|
86
|
-
number(actual, options) {
|
|
87
|
-
sink.recordRequire({
|
|
88
|
-
actual,
|
|
89
|
-
check: 'number',
|
|
90
|
-
message: messageFromOptions(options, annotation),
|
|
91
|
-
source: 'require',
|
|
92
|
-
sourceLocations: sourceLocationsWithCurrentForwarding(captureLocation)
|
|
93
|
-
});
|
|
94
|
-
},
|
|
95
|
-
object(actual, options) {
|
|
96
|
-
sink.recordRequire({
|
|
97
|
-
actual,
|
|
98
|
-
check: 'object',
|
|
99
|
-
message: messageFromOptions(options, annotation),
|
|
100
|
-
source: 'require',
|
|
101
|
-
sourceLocations: sourceLocationsWithCurrentForwarding(captureLocation)
|
|
102
|
-
});
|
|
103
|
-
},
|
|
104
|
-
string(actual, options) {
|
|
105
|
-
sink.recordRequire({
|
|
106
|
-
actual,
|
|
107
|
-
check: 'string',
|
|
108
|
-
message: messageFromOptions(options, annotation),
|
|
109
|
-
source: 'require',
|
|
110
|
-
sourceLocations: sourceLocationsWithCurrentForwarding(captureLocation)
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
function callRequireReference(reference, ...parameters) {
|
|
115
|
-
recordRequireReference({
|
|
116
|
-
annotation,
|
|
117
|
-
parameters,
|
|
118
|
-
reference,
|
|
119
|
-
sink,
|
|
120
|
-
sourceLocations: sourceLocationsWithCurrentForwarding(captureLocation)
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
return Object.assign(callRequireReference, methods);
|
|
124
|
-
}
|
|
125
|
-
export function createRecordingRequireFacade(sink, annotation) {
|
|
126
|
-
return createRecordingRequireFacadeWithLocation(sink, annotation, captureSourceLocation);
|
|
127
|
-
}
|
|
128
|
-
//# sourceMappingURL=require-assertion-facade.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"require-assertion-facade.js","sourceRoot":"","sources":["../../../../source/engine/require-assertion-facade.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,oCAAoC,EAAE,MAAM,qDAAqD,CAAC;AAC3G,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EACH,sBAAsB,EAEzB,MAAM,iCAAiC,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