@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,33 +0,0 @@
|
|
|
1
|
-
import { booleanSummaryByCheck } from "./assertions/boolean.js";
|
|
2
|
-
import { collectionSummaryByCheck } from "./assertions/collection.js";
|
|
3
|
-
import { equalitySummaryByCheck } from "./assertions/equality.js";
|
|
4
|
-
import { failSummaryByCheck } from "./assertions/fail.js";
|
|
5
|
-
import { numericSummaryByCheck } from "./assertions/numeric.js";
|
|
6
|
-
import { partialSummaryByCheck } from "./assertions/partial.js";
|
|
7
|
-
import { presenceSummaryByCheck } from "./assertions/presence.js";
|
|
8
|
-
import { stringSummaryByCheck } from "./assertions/string.js";
|
|
9
|
-
import { typeShapeSummaryByCheck } from "./assertions/type-shape.js";
|
|
10
|
-
const defaultSummaryByCheck = {
|
|
11
|
-
...booleanSummaryByCheck,
|
|
12
|
-
...collectionSummaryByCheck,
|
|
13
|
-
...equalitySummaryByCheck,
|
|
14
|
-
...failSummaryByCheck,
|
|
15
|
-
...numericSummaryByCheck,
|
|
16
|
-
...partialSummaryByCheck,
|
|
17
|
-
...presenceSummaryByCheck,
|
|
18
|
-
...stringSummaryByCheck,
|
|
19
|
-
...typeShapeSummaryByCheck
|
|
20
|
-
};
|
|
21
|
-
function isCompositeAssertion(assertion) {
|
|
22
|
-
return assertion.check === 'composite';
|
|
23
|
-
}
|
|
24
|
-
export function assertionSummary(assertion) {
|
|
25
|
-
if (isCompositeAssertion(assertion)) {
|
|
26
|
-
return assertion.message ?? assertion.summary;
|
|
27
|
-
}
|
|
28
|
-
if (assertion.check === 'foreign') {
|
|
29
|
-
return assertion.message ?? assertion.summary;
|
|
30
|
-
}
|
|
31
|
-
return assertion.message ?? defaultSummaryByCheck[assertion.check];
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=assertion-node.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assertion-node.js","sourceRoot":"","sources":["../../../../source/assertion-protocol/assertion-node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAmD,MAAM,yBAAyB,CAAC;AACjH,OAAO,EACH,wBAAwB,EAG3B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,sBAAsB,EAKzB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAA0B,MAAM,sBAAsB,CAAC;AAClF,OAAO,EACH,qBAAqB,EAGxB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACH,qBAAqB,EAIxB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACH,sBAAsB,EAKzB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACH,oBAAoB,EAGvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACH,uBAAuB,EAI1B,MAAM,4BAA4B,CAAC;AA6GpC,MAAM,qBAAqB,GAAkE;IACzF,GAAG,qBAAqB;IACxB,GAAG,wBAAwB;IAC3B,GAAG,sBAAsB;IACzB,GAAG,kBAAkB;IACrB,GAAG,qBAAqB;IACxB,GAAG,qBAAqB;IACxB,GAAG,sBAAsB;IACzB,GAAG,oBAAoB;IACvB,GAAG,uBAAuB;CAC7B,CAAC;AAIF,SAAS,oBAAoB,CACzB,SAAkC;IAElC,OAAO,SAAS,CAAC,KAAK,KAAK,WAAW,CAAC;AAC3C,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,SAAkC;IAC/D,IAAI,oBAAoB,CAAC,SAAS,CAAC,EAAE,CAAC;QAClC,OAAO,SAAS,CAAC,OAAO,IAAI,SAAS,CAAC,OAAO,CAAC;IAClD,CAAC;IAED,IAAI,SAAS,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;QAChC,OAAO,SAAS,CAAC,OAAO,IAAI,SAAS,CAAC,OAAO,CAAC;IAClD,CAAC;IAED,OAAO,SAAS,CAAC,OAAO,IAAI,qBAAqB,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AACvE,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import type { CompositeAssertionChildNode } from './assertion-node.ts';
|
|
2
|
-
import type { AssertionSource, NonEmptyReadonlyArray, ResolvableSourceLocations } from './assertion-node-shape.ts';
|
|
3
|
-
declare const assertionReferenceIdentity: unique symbol;
|
|
4
|
-
declare const assertionReferenceRecordIdentity: unique symbol;
|
|
5
|
-
declare const compositeGroupIdentity: unique symbol;
|
|
6
|
-
export type CompositeAssertionSummaryContext = {
|
|
7
|
-
readonly name: string;
|
|
8
|
-
readonly source: AssertionSource;
|
|
9
|
-
};
|
|
10
|
-
export type CompositeAssertionGroup<Source extends AssertionSource = AssertionSource> = {
|
|
11
|
-
readonly [compositeGroupIdentity]: true;
|
|
12
|
-
readonly children: NonEmptyReadonlyArray<CompositeAssertionChildNode<Source>>;
|
|
13
|
-
};
|
|
14
|
-
type CompositeAssertionReturnByKind<Source extends AssertionSource> = {
|
|
15
|
-
readonly child: CompositeAssertionChildNode<Source>;
|
|
16
|
-
readonly group: CompositeAssertionGroup<Source>;
|
|
17
|
-
};
|
|
18
|
-
export type CompositeAssertionReturn<Source extends AssertionSource = AssertionSource> = CompositeAssertionReturnByKind<Source>[keyof CompositeAssertionReturnByKind<Source>];
|
|
19
|
-
type PromiseCompositeAssertionReturn = Promise<CompositeAssertionReturn<'assert'>>;
|
|
20
|
-
export type AssertCompositeAssertionReturn = CompositeAssertionReturn<'assert'> | PromiseCompositeAssertionReturn;
|
|
21
|
-
export type CompositeAssertionSummaryFormatter<Arguments extends readonly unknown[]> = (context: CompositeAssertionSummaryContext, ...parameters: Arguments) => string;
|
|
22
|
-
export type NarrowingCompositeAssertionSummaryFormatter<Actual, Arguments extends readonly unknown[]> = (context: CompositeAssertionSummaryContext, actual: Actual, ...parameters: Arguments) => string;
|
|
23
|
-
export type CompositeAssertionRunnerInput<Arguments extends readonly unknown[], Source extends AssertionSource> = {
|
|
24
|
-
readonly message: string | null;
|
|
25
|
-
readonly parameters: Arguments;
|
|
26
|
-
readonly source: Source;
|
|
27
|
-
readonly sourceLocations: ResolvableSourceLocations;
|
|
28
|
-
};
|
|
29
|
-
export type CompositeAssertionReferenceRecord<Arguments extends readonly unknown[] = readonly unknown[], Result extends AssertCompositeAssertionReturn = AssertCompositeAssertionReturn> = {
|
|
30
|
-
readonly formatSummary: CompositeAssertionSummaryFormatter<Arguments> | null;
|
|
31
|
-
readonly kind: 'composite';
|
|
32
|
-
readonly name: string;
|
|
33
|
-
readonly run: (input: CompositeAssertionRunnerInput<Arguments, 'assert'>) => Result;
|
|
34
|
-
};
|
|
35
|
-
export type NarrowingCompositeAssertionReferenceRecord<Actual = unknown, Narrowed extends Actual = Actual, Arguments extends readonly unknown[] = readonly unknown[]> = {
|
|
36
|
-
readonly formatSummary: NarrowingCompositeAssertionSummaryFormatter<Actual, Arguments> | null;
|
|
37
|
-
readonly kind: 'narrowing-composite';
|
|
38
|
-
readonly name: string;
|
|
39
|
-
readonly narrows: (actual: Actual, ...parameters: Arguments) => actual is Narrowed;
|
|
40
|
-
};
|
|
41
|
-
export type CompositeAssertionReference<Arguments extends readonly unknown[] = readonly unknown[], Result extends AssertCompositeAssertionReturn = AssertCompositeAssertionReturn> = {
|
|
42
|
-
readonly [assertionReferenceIdentity]: true;
|
|
43
|
-
readonly [assertionReferenceRecordIdentity]: CompositeAssertionReferenceRecord<Arguments, Result>;
|
|
44
|
-
};
|
|
45
|
-
export type NarrowingCompositeAssertionReference<Actual = unknown, Narrowed extends Actual = Actual, Arguments extends readonly unknown[] = readonly unknown[]> = {
|
|
46
|
-
readonly [assertionReferenceIdentity]: true;
|
|
47
|
-
readonly [assertionReferenceRecordIdentity]: NarrowingCompositeAssertionReferenceRecord<Actual, Narrowed, Arguments>;
|
|
48
|
-
};
|
|
49
|
-
export {};
|
|
50
|
-
//# sourceMappingURL=assertion-reference.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assertion-reference.d.ts","sourceRoot":"","sources":["../../../../source/assertion-protocol/assertion-reference.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,2BAA2B,EAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACR,eAAe,EACf,qBAAqB,EACrB,yBAAyB,EAC5B,MAAM,2BAA2B,CAAC;AAEnC,QAAA,MAAM,0BAA0B,EAAE,OAAO,MAAiD,CAAC;AAC3F,QAAA,MAAM,gCAAgC,EAAE,OAAO,MAAuD,CAAC;AACvG,QAAA,MAAM,sBAAsB,EAAE,OAAO,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A8B,GAAG,8BAA8B,IAC9E;IACA,QAAQ,CAAC,CAAC,0BAA0B,CAAC,EAAE,IAAI,CAAC;IAC5C,QAAQ,CAAC,CAAC,gCAAgC,CAAC,EAAE,iCAAiC,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;CACrG,CAAC;AAEF,MAAM,MAAM,oCAAoC,CAC5C,MAAM,GAAG,OAAO,EAChB,QAAQ,SAAS,MAAM,GAAG,MAAM,EAChC,SAAS,SAAS,SAAS,OAAO,EAAE,GAAG,SAAS,OAAO,EAAE,IACzD;IACA,QAAQ,CAAC,CAAC,0BAA0B,CAAC,EAAE,IAAI,CAAC;IAC5C,QAAQ,CAAC,CAAC,gCAAgC,CAAC,EAAE,0CAA0C,CACnF,MAAM,EACN,QAAQ,EACR,SAAS,CACZ,CAAC;CACL,CAAC;AAEF,MAAM"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
const assertionReferenceIdentity = Symbol.for('OverkillAssertionReference');
|
|
2
|
-
const assertionReferenceRecordIdentity = Symbol.for('OverkillAssertionReferenceRecord');
|
|
3
|
-
const compositeGroupIdentity = Symbol.for('OverkillCompositeGroup');
|
|
4
|
-
|
|
5
|
-
export function getAssertionReferenceRecord(reference) {
|
|
6
|
-
return reference[assertionReferenceRecordIdentity];
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export function getNarrowingAssertionReferenceRecord(reference) {
|
|
10
|
-
return reference[assertionReferenceRecordIdentity];
|
|
11
|
-
}
|
|
12
|
-
export function isAssertionReference(value) {
|
|
13
|
-
return typeof value === 'object' && value !== null && Object.hasOwn(value, assertionReferenceIdentity);
|
|
14
|
-
}
|
|
15
|
-
export function isNarrowingAssertionReference(value) {
|
|
16
|
-
return isAssertionReference(value) && getAssertionReferenceRecord(value).kind === 'narrowing-composite';
|
|
17
|
-
}
|
|
18
|
-
export function isCompositeAssertionGroup(value) {
|
|
19
|
-
return typeof value === 'object' && value !== null && Object.hasOwn(value, compositeGroupIdentity);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
//# sourceMappingURL=assertion-reference.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assertion-reference.js","sourceRoot":"","sources":["../../../../source/assertion-protocol/assertion-reference.ts"],"names":[],"mappings":"AASA,MAAM,0BAA0B,GAAkB,MAAM,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;AAC3F,MAAM,gCAAgC,GAAkB,MAAM,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAC;AACvG,MAAM,sBAAsB,GAAkB,MAAM,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;;MA0J7E,qCAiBqC,CAAC,SAA6B;IACrE,OAAO,SAAS,CAAC,gCAAgC,CAAC,CAAC;AACvD,CAAC;;MAWK,UAAU,oCAAoC,CAKhD,SAA4E;IAE5E,OAAO,SAAS,CAAC,gCAAgC,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,KAAc;IAC/C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,0BAA0B,CAAC,CAAC;AAC3G,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAC,KAAc;IACxD,OAAO,oBAAoB,CAAC,KAAK,CAAC,IAAI,2BAA2B,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,qBAAqB,CAAC;AAC5G,CAAC;AAED,MAAM,UAAU,yBAAyB,CACrC,KAAc;IAEd,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,sBAAsB,CAAC,CAAC;AACvG,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ActualAssertionNode, AssertionSource } from '../assertion-node-shape.ts';
|
|
2
|
-
export type TrueAssertionNode<Source extends AssertionSource = AssertionSource> = ActualAssertionNode<Source, 'true'>;
|
|
3
|
-
export type FalseAssertionNode<Source extends AssertionSource = AssertionSource> = ActualAssertionNode<Source, 'false'>;
|
|
4
|
-
//# sourceMappingURL=boolean.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"boolean.d.ts","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/boolean.ts"],"names":[],"mappings":"AAAA,OAA2B,KACf,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAEvF,MAAM,MAAM,iBAAiB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI,mBAAmB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEtH,MAAM,MAAM,kBAAkB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI,mBAAmB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { assertionOutcome } from "../assertion-evaluation.js";
|
|
2
|
-
export const booleanSummaryByCheck = {
|
|
3
|
-
false: 'Expected value to be false.',
|
|
4
|
-
true: 'Expected value to be true.'
|
|
5
|
-
};
|
|
6
|
-
export function evaluateFalse(assertion) {
|
|
7
|
-
return assertionOutcome(assertion.actual, false, assertion.actual === false);
|
|
8
|
-
}
|
|
9
|
-
export function evaluateTrue(assertion) {
|
|
10
|
-
return assertionOutcome(assertion.actual, true, assertion.actual === true);
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=boolean.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"boolean.js","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/boolean.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAyB,MAAM,4BAA4B,CAAC;AAOrF,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACjC,KAAK,EAAE,6BAA6B;IACpC,IAAI,EAAE,4BAA4B;CAC5B,CAAC;AAEX,MAAM,UAAU,aAAa,CAAC,SAA6B;IACvD,OAAO,gBAAgB,CAAC,SAAS,CAAC,MAAM,EAAE,KAAK,EAAE,SAAS,CAAC,MAAM,KAAK,KAAK,CAAC,CAAC;AACjF,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,SAA4B;IACrD,OAAO,gBAAgB,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,SAAS,CAAC,MAAM,KAAK,IAAI,CAAC,CAAC;AAC/E,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { ActualAssertionNode, AssertionSource, ResolvableSourceLocations } from '../assertion-node-shape.ts';
|
|
2
|
-
export type LengthAssertionNode<Source extends AssertionSource = AssertionSource> = {
|
|
3
|
-
readonly actual: unknown;
|
|
4
|
-
readonly check: 'length';
|
|
5
|
-
readonly expectedLength: number;
|
|
6
|
-
readonly message: string | null;
|
|
7
|
-
readonly source: Source;
|
|
8
|
-
readonly sourceLocations: ResolvableSourceLocations;
|
|
9
|
-
};
|
|
10
|
-
export type EmptinessAssertionNode<Source extends AssertionSource = AssertionSource> = {
|
|
11
|
-
readonly [Check in 'empty' | 'not-empty']: ActualAssertionNode<Source, Check>;
|
|
12
|
-
}['empty' | 'not-empty'];
|
|
13
|
-
//# sourceMappingURL=collection.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/collection.ts"],"names":[],"mappings":"AAAA,OAA2B,KACf,EAAE,mBAAmB,EAAE,eAAe,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAGlH,MAAM,MAAM,mBAAmB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI;IAChF,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;IACzB,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,eAAe,EAAE,yBAAyB,CAAC;CACvD,CAAC;AAEF,MAAM,MAAM,sBAAsB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI;IACnF,QAAQ,EAAE,KAAK,IAAI,OAAO,GAAG,WAAW,GAAG,mBAAmB,CAAC,MAAM,EAAE,KAAK,CAAC;CAChF,CAAC,OAAO,GAAG,WAAW,CAAC,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { assertionOutcome } from "../assertion-evaluation.js";
|
|
2
|
-
import { collectionCount } from "../collection-count.js";
|
|
3
|
-
export const collectionSummaryByCheck = {
|
|
4
|
-
empty: 'Expected collection to be empty.',
|
|
5
|
-
length: 'Expected collection length to match.',
|
|
6
|
-
'not-empty': 'Expected collection not to be empty.'
|
|
7
|
-
};
|
|
8
|
-
export function evaluateEmpty(assertion) {
|
|
9
|
-
const count = collectionCount(assertion.actual, 1);
|
|
10
|
-
return assertionOutcome(count.supported ? count.count : assertion.actual, 0, count.supported && count.count === 0);
|
|
11
|
-
}
|
|
12
|
-
export function evaluateLength(assertion) {
|
|
13
|
-
const count = collectionCount(assertion.actual, assertion.expectedLength + 1);
|
|
14
|
-
const validLength = Number.isSafeInteger(assertion.expectedLength) && assertion.expectedLength >= 0;
|
|
15
|
-
return assertionOutcome(count.supported ? count.count : assertion.actual, assertion.expectedLength, validLength && count.supported && count.count === assertion.expectedLength);
|
|
16
|
-
}
|
|
17
|
-
export function evaluateNotEmpty(assertion) {
|
|
18
|
-
const count = collectionCount(assertion.actual, 1);
|
|
19
|
-
return assertionOutcome(count.supported ? count.count : assertion.actual, 'more than 0', count.supported && count.count > 0);
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=collection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"collection.js","sourceRoot":"","sources":["../../../../../source/assertion-protocol/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gB,CACnB,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,EAChD,aAAa,EACb,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,KAAK,GAAG,CAAC,CACrC,CAAC;AACN,CAAC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { evaluateFalse, evaluateTrue } from "./boolean.js";
|
|
2
|
-
import { evaluateEmpty, evaluateLength, evaluateNotEmpty } from "./collection.js";
|
|
3
|
-
import { evaluateDeepEqual, evaluateEqual, evaluateNotDeepEqual, evaluateNotEqual } from "./equality.js";
|
|
4
|
-
import { evaluateFail } from "./fail.js";
|
|
5
|
-
import { evaluateBetween, evaluateGreaterThan, evaluateGreaterThanOrEqual, evaluateLessThan, evaluateLessThanOrEqual } from "./numeric.js";
|
|
6
|
-
import { evaluateArrayContainsPartial, evaluateMembersPartialDeepEqual, evaluatePartialDeepEqual } from "./partial.js";
|
|
7
|
-
import { evaluateDefined, evaluateNotNull, evaluateNull, evaluateUndefined } from "./presence.js";
|
|
8
|
-
import { evaluateEndsWith, evaluateIncludes, evaluateMatch, evaluateNotMatch, evaluateStartsWith } from "./string.js";
|
|
9
|
-
import { evaluateArray, evaluateBoolean, evaluateFunction, evaluateHasProperty, evaluateInstanceOf, evaluateNumber, evaluateObject, evaluateString } from "./type-shape.js";
|
|
10
|
-
export const assertionEvaluatorByCheck = {
|
|
11
|
-
array: evaluateArray,
|
|
12
|
-
'array-contains-partial': evaluateArrayContainsPartial,
|
|
13
|
-
between: evaluateBetween,
|
|
14
|
-
boolean: evaluateBoolean,
|
|
15
|
-
'deep-equal': evaluateDeepEqual,
|
|
16
|
-
defined: evaluateDefined,
|
|
17
|
-
empty: evaluateEmpty,
|
|
18
|
-
'ends-with': evaluateEndsWith,
|
|
19
|
-
equal: evaluateEqual,
|
|
20
|
-
fail: evaluateFail,
|
|
21
|
-
false: evaluateFalse,
|
|
22
|
-
function: evaluateFunction,
|
|
23
|
-
'greater-than': evaluateGreaterThan,
|
|
24
|
-
'greater-than-or-equal': evaluateGreaterThanOrEqual,
|
|
25
|
-
'has-property': evaluateHasProperty,
|
|
26
|
-
includes: evaluateIncludes,
|
|
27
|
-
'instance-of': evaluateInstanceOf,
|
|
28
|
-
length: evaluateLength,
|
|
29
|
-
'less-than': evaluateLessThan,
|
|
30
|
-
'less-than-or-equal': evaluateLessThanOrEqual,
|
|
31
|
-
match: evaluateMatch,
|
|
32
|
-
'members-partial-deep-equal': evaluateMembersPartialDeepEqual,
|
|
33
|
-
'not-deep-equal': evaluateNotDeepEqual,
|
|
34
|
-
'not-empty': evaluateNotEmpty,
|
|
35
|
-
'not-equal': evaluateNotEqual,
|
|
36
|
-
'not-match': evaluateNotMatch,
|
|
37
|
-
'not-null': evaluateNotNull,
|
|
38
|
-
null: evaluateNull,
|
|
39
|
-
number: evaluateNumber,
|
|
40
|
-
object: evaluateObject,
|
|
41
|
-
'partial-deep-equal': evaluatePartialDeepEqual,
|
|
42
|
-
'starts-with': evaluateStartsWith,
|
|
43
|
-
string: evaluateString,
|
|
44
|
-
true: evaluateTrue,
|
|
45
|
-
undefined: evaluateUndefined
|
|
46
|
-
};
|
|
47
|
-
//# sourceMappingURL=dispatch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dispatch.js","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/dispatch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAmD,MAAM,cAAc,CAAC;AAC5G,OAAO,EACH,aAAa,EACb,cAAc,EACd,gBAAgB,EAGnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACH,iBAAiB,EACjB,aAAa,EACb,oBAAoB,EACpB,gBAAgB,EAKnB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,YAAY,EAA0B,MAAM,WAAW,CAAC;AACjE,OAAO,EACH,eAAe,EACf,mBAAmB,EACnB,0BA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IAAI,EAAE,YAAY;IAClB,MAAM,EAAE,cAAc;IACtB,MAAM,EAAE,cAAc;IACtB,oBAAoB,EAAE,wBAAwB;IAC9C,aAAa,EAAE,kBAAkB;IACjC,MAAM,EAAE,cAAc;IACtB,IAAI,EAAE,YAAY;IAClB,SAAS,EAAE,iBAAiB;CAC/B,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { AssertionSource, ExpectedAssertionNode } from '../assertion-node-shape.ts';
|
|
2
|
-
export type EqualAssertionNode<Source extends AssertionSource = AssertionSource> = ExpectedAssertionNode<Source, 'equal'>;
|
|
3
|
-
export type NotEqualAssertionNode<Source extends AssertionSource = AssertionSource> = ExpectedAssertionNode<Source, 'not-equal'>;
|
|
4
|
-
export type DeepEqualAssertionNode<Source extends AssertionSource = AssertionSource> = ExpectedAssertionNode<Source, 'deep-equal'>;
|
|
5
|
-
export type NotDeepEqualAssertionNode<Source extends AssertionSource = AssertionSource> = ExpectedAssertionNode<Source, 'not-deep-equal'>;
|
|
6
|
-
//# sourceMappingURL=equality.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"equality.d.ts","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/equality.ts"],"names":[],"mappings":"AAKA,OAA8C,KAClC,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEzF,MAAM,MAAM,kBAAkB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI,qBAAqB,CACpG,MAAM,EACN,OAAO,CACV,CAAC;AAEF,MAAM,MAAM,qBAAqB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI,qBAAqB,CACvG,MAAM,EACN,WAAW,CACd,CAAC;AAEF,MAAM,MAAM,sBAAsB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI,qBAAqB,CACxG,MAAM,EACN,YAAY,CACf,CAAC;AAEF,MAAM,MAAM,yBAAyB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI,qBAAqB,CAC3G,MAAM,EACN,gBAAgB,CACnB,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { compareDeepValues, compareEqualValues, compareStringEquality } from "../../compare/comparison.js";
|
|
2
|
-
import { assertionOutcome, comparisonOutcome } from "../assertion-evaluation.js";
|
|
3
|
-
export const equalitySummaryByCheck = {
|
|
4
|
-
'deep-equal': 'Expected values to be deeply equal.',
|
|
5
|
-
equal: 'Expected values to be equal.',
|
|
6
|
-
'not-deep-equal': 'Expected values not to be deeply equal.',
|
|
7
|
-
'not-equal': 'Expected values not to be equal.'
|
|
8
|
-
};
|
|
9
|
-
export function evaluateDeepEqual(assertion) {
|
|
10
|
-
return comparisonOutcome(compareDeepValues(assertion.actual, assertion.expected));
|
|
11
|
-
}
|
|
12
|
-
export function evaluateEqual(assertion) {
|
|
13
|
-
if (typeof assertion.actual === 'string' && typeof assertion.expected === 'string') {
|
|
14
|
-
return comparisonOutcome(compareStringEquality(assertion.actual, assertion.expected));
|
|
15
|
-
}
|
|
16
|
-
return comparisonOutcome(compareEqualValues(assertion.actual, assertion.expected));
|
|
17
|
-
}
|
|
18
|
-
export function evaluateNotDeepEqual(assertion) {
|
|
19
|
-
return assertionOutcome(assertion.actual, assertion.expected, !compareDeepValues(assertion.actual, assertion.expected).passed);
|
|
20
|
-
}
|
|
21
|
-
export function evaluateNotEqual(assertion) {
|
|
22
|
-
return assertionOutcome(assertion.actual, assertion.expected, !Object.is(assertion.actual, assertion.expected));
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=equality.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"equality.js","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/equality.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACxB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,iBAAi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node-shape.ts';
|
|
2
|
-
export type FailAssertionNode<Source extends AssertionSource = AssertionSource> = {
|
|
3
|
-
readonly check: 'fail';
|
|
4
|
-
readonly message: string | null;
|
|
5
|
-
readonly source: Source;
|
|
6
|
-
readonly sourceLocations: ResolvableSourceLocations;
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=fail.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fail.d.ts","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/fail.ts"],"names":[],"mappings":"AAAA,OAA2B,KACf,EAAE,eAAe,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAE7F,MAAM,MAAM,iBAAiB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI;IAC9E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,eAAe,EAAE,yBAAyB,CAAC;CACvD,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { assertionOutcome } from "../assertion-evaluation.js";
|
|
2
|
-
export const failSummaryByCheck = {
|
|
3
|
-
fail: 'Assertion failed.'
|
|
4
|
-
};
|
|
5
|
-
export function evaluateFail(assertion) {
|
|
6
|
-
return assertionOutcome(assertion.check, 'pass', false);
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=fail.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fail.js","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/fail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAyB,MAAM,4BAA4B,CAAC;AAUrF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B,IAAI,EAAE,mBAAmB;CACnB,CAAC;AAEX,MAAM,UAAU,YAAY,CAAC,SAA4B;IACrD,OAAO,gBAAgB,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AAC5D,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { AssertionSource, ExpectedAssertionNode, ResolvableSourceLocations } from '../assertion-node-shape.ts';
|
|
2
|
-
type NumericComparisonCheck = 'greater-than' | 'greater-than-or-equal' | 'less-than' | 'less-than-or-equal';
|
|
3
|
-
export type NumericComparisonAssertionNode<Source extends AssertionSource = AssertionSource> = {
|
|
4
|
-
readonly [Check in NumericComparisonCheck]: ExpectedAssertionNode<Source, Check>;
|
|
5
|
-
}[NumericComparisonCheck];
|
|
6
|
-
export type BetweenAssertionNode<Source extends AssertionSource = AssertionSource> = {
|
|
7
|
-
readonly actual: unknown;
|
|
8
|
-
readonly check: 'between';
|
|
9
|
-
readonly maximum: number;
|
|
10
|
-
readonly message: string | null;
|
|
11
|
-
readonly minimum: number;
|
|
12
|
-
readonly source: Source;
|
|
13
|
-
readonly sourceLocations: ResolvableSourceLocations;
|
|
14
|
-
};
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=numeric.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"numeric.d.ts","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/numeric.ts"],"names":[],"mappings":"AAAA,OAA2B,KACf,EAAE,eAAe,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAEpH,KAAK,sBAAsB,GAAG,cAAc,GAAG,uBAAuB,GAAG,WAAW,GAAG,oBAAoB,CAAC;AAE5G,MAAM,MAAM,8BAA8B,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI;IAC3F,QAAQ,EAAE,KAAK,IAAI,sBAAsB,GAAG,qBAAqB,CAAC,MAAM,EAAE,KAAK,CAAC;CACnF,CAAC,sBAAsB,CAAC,CAAC;AAE1B,MAAM,MAAM,oBAAoB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI;IACjF,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,eAAe,EAAE,yBAAyB,CAAC;CACvD,CAAC;AAEF,SAMU,CAAC"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { assertionOutcome } from "../assertion-evaluation.js";
|
|
2
|
-
export const numericSummaryByCheck = {
|
|
3
|
-
between: 'Expected number to be between the bounds.',
|
|
4
|
-
'greater-than': 'Expected number to be greater than the threshold.',
|
|
5
|
-
'greater-than-or-equal': 'Expected number to be greater than or equal to the threshold.',
|
|
6
|
-
'less-than': 'Expected number to be less than the threshold.',
|
|
7
|
-
'less-than-or-equal': 'Expected number to be less than or equal to the threshold.'
|
|
8
|
-
};
|
|
9
|
-
function isFiniteNumber(value) {
|
|
10
|
-
return typeof value === 'number' && Number.isFinite(value);
|
|
11
|
-
}
|
|
12
|
-
export function evaluateBetween(assertion) {
|
|
13
|
-
const expected = `${assertion.minimum}..${assertion.maximum}`;
|
|
14
|
-
const passed = isFiniteNumber(assertion.actual) &&
|
|
15
|
-
assertion.actual >= assertion.minimum &&
|
|
16
|
-
assertion.actual <= assertion.maximum;
|
|
17
|
-
return assertionOutcome(assertion.actual, expected, passed);
|
|
18
|
-
}
|
|
19
|
-
export function evaluateGreaterThan(assertion) {
|
|
20
|
-
const passed = isFiniteNumber(assertion.actual) &&
|
|
21
|
-
isFiniteNumber(assertion.expected) &&
|
|
22
|
-
assertion.actual > assertion.expected;
|
|
23
|
-
return assertionOutcome(assertion.actual, `> ${assertion.expected}`, passed);
|
|
24
|
-
}
|
|
25
|
-
export function evaluateGreaterThanOrEqual(assertion) {
|
|
26
|
-
const passed = isFiniteNumber(assertion.actual) &&
|
|
27
|
-
isFiniteNumber(assertion.expected) &&
|
|
28
|
-
assertion.actual >= assertion.expected;
|
|
29
|
-
return assertionOutcome(assertion.actual, `>= ${assertion.expected}`, passed);
|
|
30
|
-
}
|
|
31
|
-
export function evaluateLessThan(assertion) {
|
|
32
|
-
const passed = isFiniteNumber(assertion.actual) &&
|
|
33
|
-
isFiniteNumber(assertion.expected) &&
|
|
34
|
-
assertion.actual < assertion.expected;
|
|
35
|
-
return assertionOutcome(assertion.actual, `< ${assertion.expected}`, passed);
|
|
36
|
-
}
|
|
37
|
-
export function evaluateLessThanOrEqual(assertion) {
|
|
38
|
-
const passed = isFiniteNumber(assertion.actual) &&
|
|
39
|
-
isFiniteNumber(assertion.expected) &&
|
|
40
|
-
assertion.actual <= assertion.expected;
|
|
41
|
-
return assertionOutcome(assertion.actual, `<= ${assertion.expected}`, passed);
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=numeric.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"numeric.js","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/numeric.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAyB,MAAM,4BAA4B,CAAC;AAmBrF,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACjC,OAAO,EAAE,2CAA2C;IACpD,cAAc,EAAE,mDAAmD;IACnE,uBAAuB,EAAE,+DAA+D;IACxF,WAAW,EAAE,gDAAgD;IAC7D,oBAAoB,EAAE,4DAA4D;CAC5E,CAAC;AAEX,SAAS,cAAc,CAAC,KAAc;IAClC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,SAA+B;IAC3D,MAAM,QAAQ,GAAG,GAAG,SAAS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MAAM,CAAC,CAAC;AACjF,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,SAAyC;IAC7E,MAAM,MAAM,GAAG,cAAc,CAAC,SAAS,CAAC,MAAM,CAAC;QAC3C,cAAc,CAAC,SAAS,CAAC,QAAQ,CAAC;QAClC,SAAS,CAAC,MAAM,IAAI,SAAS,CAAC,QAAQ,CAAC;IAE3C,OAAO,gBAAgB,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,SAAS,CAAC,QAAQ,EAAE,EAAE,MAAM,CAAC,CAAC;AAClF,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { AssertionSource, ExpectedAssertionNode } from '../assertion-node-shape.ts';
|
|
2
|
-
export type PartialDeepEqualAssertionNode<Source extends AssertionSource = AssertionSource> = ExpectedAssertionNode<Source, 'partial-deep-equal'>;
|
|
3
|
-
export type ArrayContainsPartialAssertionNode<Source extends AssertionSource = AssertionSource> = ExpectedAssertionNode<Source, 'array-contains-partial'>;
|
|
4
|
-
export type MembersPartialDeepEqualAssertionNode<Source extends AssertionSource = AssertionSource> = ExpectedAssertionNode<Source, 'members-partial-deep-equal'>;
|
|
5
|
-
//# sourceMappingURL=partial.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"partial.d.ts","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/partial.ts"],"names":[],"mappings":"AAKA,OAA4B,KAChB,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEzF,MAAM,MAAM,6BAA6B,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI,qBAAqB,CAC/G,MAAM,EACN,oBAAoB,CACvB,CAAC;AAEF,MAAM,MAAM,iCAAiC,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI,qBAAqB,CACnH,MAAM,EACN,wBAAwB,CAC3B,CAAC;AAEF,MAAM,MAAM,oCAAoC,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAC7F,qBAAqB,CAAC,MAAM,EAAE,4BAA4B,CAAC,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { compareArrayContainsPartial, compareMembersPartialDeepEqual, comparePartialValue } from "../../compare/comparison.js";
|
|
2
|
-
import { comparisonOutcome } from "../assertion-evaluation.js";
|
|
3
|
-
export const partialSummaryByCheck = {
|
|
4
|
-
'array-contains-partial': 'Expected array to contain a partial member.',
|
|
5
|
-
'members-partial-deep-equal': 'Expected array to contain the partial members.',
|
|
6
|
-
'partial-deep-equal': 'Expected value to partially match.'
|
|
7
|
-
};
|
|
8
|
-
export function evaluateArrayContainsPartial(assertion) {
|
|
9
|
-
return comparisonOutcome(compareArrayContainsPartial(assertion.actual, assertion.expected));
|
|
10
|
-
}
|
|
11
|
-
export function evaluateMembersPartialDeepEqual(assertion) {
|
|
12
|
-
return comparisonOutcome(compareMembersPartialDeepEqual(assertion.actual, assertion.expected));
|
|
13
|
-
}
|
|
14
|
-
export function evaluatePartialDeepEqual(assertion) {
|
|
15
|
-
return comparisonOutcome(comparePartialValue(assertion.actual, assertion.expected));
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=partial.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"partial.js","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/partial.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,2BAA2B,EAC3B,8BAA8B,EAC9B,mBAAmB,EACtB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAyB,MAAM,4BAA4B,CAAC;AAgBtF,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACjC,wBAAwB,EAAE,6CAA6C;IACvE,4BAA4B,EAAE,gDAAgD;IAC9E,oBAAoB,EAAE,oCAAoC;CACpD,CAAC;AAEX,MAAM,UAAU,4BAA4B,CAAC,SAA4C;IACrF,OAAO,iBAAiB,CAAC,2BAA2B,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;AAChG,CAAC;AAED,MAAM,UAAU,+BAA+B,CAAC,SAA+C;IAC3F,OAAO,iBAAiB,CAAC,8BAA8B,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;AACnG,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,SAAwC;IAC7E,OAAO,iBAAiB,CAAC,mBAAmB,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;AACxF,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ActualAssertionNode, AssertionSource } from '../assertion-node-shape.ts';
|
|
2
|
-
export type DefinedAssertionNode<Source extends AssertionSource = AssertionSource> = ActualAssertionNode<Source, 'defined'>;
|
|
3
|
-
export type NullAssertionNode<Source extends AssertionSource = AssertionSource> = ActualAssertionNode<Source, 'null'>;
|
|
4
|
-
export type NotNullAssertionNode<Source extends AssertionSource = AssertionSource> = ActualAssertionNode<Source, 'not-null'>;
|
|
5
|
-
export type UndefinedAssertionNode<Source extends AssertionSource = AssertionSource> = ActualAssertionNode<Source, 'undefined'>;
|
|
6
|
-
//# sourceMappingURL=presence.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"presence.d.ts","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/presence.ts"],"names":[],"mappings":"AAAA,OAA2B,KACf,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAEvF,MAAM,MAAM,oBAAoB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI,mBAAmB,CACpG,MAAM,EACN,SAAS,CACZ,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI,mBAAmB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEtH,MAAM,MAAM,oBAAoB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI,mBAAmB,CACpG,MAAM,EACN,UAAU,CACb,CAAC;AAEF,MAAM,MAAM,sBAAsB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI,mBAAmB,CACtG,MAAM,EACN,WAAW,CACd,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { assertionOutcome } from "../assertion-evaluation.js";
|
|
2
|
-
export const presenceSummaryByCheck = {
|
|
3
|
-
defined: 'Expected value to be defined.',
|
|
4
|
-
'not-null': 'Expected value not to be null.',
|
|
5
|
-
null: 'Expected value to be null.',
|
|
6
|
-
undefined: 'Expected value to be undefined.'
|
|
7
|
-
};
|
|
8
|
-
export function evaluateDefined(assertion) {
|
|
9
|
-
return assertionOutcome(assertion.actual, 'non-nullish value', assertion.actual !== null && assertion.actual !== undefined);
|
|
10
|
-
}
|
|
11
|
-
export function evaluateNotNull(assertion) {
|
|
12
|
-
return assertionOutcome(assertion.actual, 'not null', assertion.actual !== null);
|
|
13
|
-
}
|
|
14
|
-
export function evaluateNull(assertion) {
|
|
15
|
-
return assertionOutcome(assertion.actual, null, assertion.actual === null);
|
|
16
|
-
}
|
|
17
|
-
export function evaluateUndefined(assertion) {
|
|
18
|
-
return assertionOutcome(assertion.actual, undefined, assertion.actual === undefined);
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=presence.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"presence.js","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/presence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAyB,MAAM,4BAA4B,CAAC;AAoBrF,MAAM,CAAC,MAAM,sBAAsB,GAAG;IAClC,OAAO,EAAE,+BAA+B;IACxC,UAAU,EAAE,gCAAgC;IAC5C,IAAI,EAAE,4BAA4B;IAClC,SAAS,EAAE,iCAAiC;CACtC,CAAC;AAEX,MAAM,UAAU,eAAe,CAAC,SAA+B;IAC3D,OAAO,gBAAgB,CACnB,SAAS,CAAC,MAAM,EAChB,mBAAmB,EACnB,SAAS,CAAC,MAAM,KAAK,IAAI,IAAI,SAAS,CAAC,MAAM,KAAK,SAAS,CAC9D,CAAC;AACN,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,SAA+B;IAC3D,OAAO,gBAAgB,CAAC,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,CAAC,MAAM,KAAK,IAAI,CAAC,CAAC;AACrF,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,SAA4B;IACrD,OAAO,gBAAgB,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,SAAS,CAAC,MAAM,KAAK,IAAI,CAAC,CAAC;AAC/E,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,SAAiC;IAC/D,OAAO,gBAAgB,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,EAAE,SAAS,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC;AACzF,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { AssertionSource, ExpectedAssertionNode, ResolvableSourceLocations } from '../assertion-node-shape.ts';
|
|
2
|
-
export type MatchAssertionNode<Source extends AssertionSource = AssertionSource> = {
|
|
3
|
-
readonly [Check in 'match' | 'not-match']: {
|
|
4
|
-
readonly actual: unknown;
|
|
5
|
-
readonly check: Check;
|
|
6
|
-
readonly message: string | null;
|
|
7
|
-
readonly pattern: RegExp;
|
|
8
|
-
readonly source: Source;
|
|
9
|
-
readonly sourceLocations: ResolvableSourceLocations;
|
|
10
|
-
};
|
|
11
|
-
}['match' | 'not-match'];
|
|
12
|
-
export type StringContainsAssertionNode<Source extends AssertionSource = AssertionSource> = {
|
|
13
|
-
readonly [Check in 'ends-with' | 'includes' | 'starts-with']: ExpectedAssertionNode<Source, Check>;
|
|
14
|
-
}['ends-with' | 'includes' | 'starts-with'];
|
|
15
|
-
//# sourceMappingURL=string.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/string.ts"],"names":[],"mappings":"AAAA,OAA2B,KACf,EAAE,eAAe,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAEpH,MAAM,MAAM,kBAAkB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI;IAC/E,QAAQ,EAAE,KAAK,IAAI,OAAO,GAAG,WAAW,GAAG;QACvC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;QACzB,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;QACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;QAChC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QACxB,QAAQ,CAAC,eAAe,EAAE,yBAAyB,CAAC;KACvD;CACJ,CAAC,OAAO,GAAG,WAAW,CAAC,CAAC;AAEzB,MAAM,MAAM,2BAA2B,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI;IACxF,QAAQ,EAAE,KAAK,IAAI,WAAW,GAAG,UAAU,GAAG,aAAa,GAAG,qBAAqB,CAAC,MAAM,EAAE,KAAK,CAAC;CACrG,CAAC,WAAW,GAAG,UAAU,GAAG,aAAa,CAAC,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { assertionOutcome } from "../assertion-evaluation.js";
|
|
2
|
-
export const stringSummaryByCheck = {
|
|
3
|
-
'ends-with': 'Expected string to end with the value.',
|
|
4
|
-
includes: 'Expected string to include the value.',
|
|
5
|
-
match: 'Expected string to match the pattern.',
|
|
6
|
-
'not-match': 'Expected string not to match the pattern.',
|
|
7
|
-
'starts-with': 'Expected string to start with the value.'
|
|
8
|
-
};
|
|
9
|
-
export function evaluateEndsWith(assertion) {
|
|
10
|
-
const passed = typeof assertion.actual === 'string' &&
|
|
11
|
-
typeof assertion.expected === 'string' &&
|
|
12
|
-
assertion.actual.endsWith(assertion.expected);
|
|
13
|
-
return assertionOutcome(assertion.actual, assertion.expected, passed);
|
|
14
|
-
}
|
|
15
|
-
export function evaluateIncludes(assertion) {
|
|
16
|
-
const passed = typeof assertion.actual === 'string' &&
|
|
17
|
-
typeof assertion.expected === 'string' &&
|
|
18
|
-
assertion.actual.includes(assertion.expected);
|
|
19
|
-
return assertionOutcome(assertion.actual, assertion.expected, passed);
|
|
20
|
-
}
|
|
21
|
-
export function evaluateMatch(assertion) {
|
|
22
|
-
return assertionOutcome(assertion.actual, assertion.pattern, typeof assertion.actual === 'string' && assertion.pattern.test(assertion.actual));
|
|
23
|
-
}
|
|
24
|
-
export function evaluateNotMatch(assertion) {
|
|
25
|
-
return assertionOutcome(assertion.actual, assertion.pattern, typeof assertion.actual === 'string' && !assertion.pattern.test(assertion.actual));
|
|
26
|
-
}
|
|
27
|
-
export function evaluateStartsWith(assertion) {
|
|
28
|
-
const passed = typeof assertion.actual === 'string' &&
|
|
29
|
-
typeof assertion.expected === 'string' &&
|
|
30
|
-
assertion.actual.startsWith(assertion.expected);
|
|
31
|
-
return assertionOutcome(assertion.actual, assertion.expected, passed);
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=string.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"string.js","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/string.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAyB,MAAM,4BAA4B,CAAC;AAkBrF,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAChC,WAAW,EAAE,wCAAwC;IACrD,QAAQ,EAAE,uCAAuC;IACjD,KAAK,EAAE,uCAAuC;IAC9C,WAAW,EAAE,2CAA2C;IACxD,aAAa,EAAE,0CAA0C;CACnD,CAAC;AAEX,MAAM,UAAU,gBAAgB,CAAC,SAAsC;IACnE,MAAM,MAAM,GAAG,OAAO,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,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IAEpD,OAAO,gBAAgB,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AAC1E,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { ActualAssertionNode, AssertionSource, InstanceConstructor, ResolvableSourceLocations } from '../assertion-node-shape.ts';
|
|
2
|
-
type TypeAssertionCheck = 'array' | 'boolean' | 'function' | 'number' | 'object' | 'string';
|
|
3
|
-
export type TypeAssertionNode<Source extends AssertionSource = AssertionSource> = {
|
|
4
|
-
readonly [Check in TypeAssertionCheck]: ActualAssertionNode<Source, Check>;
|
|
5
|
-
}[TypeAssertionCheck];
|
|
6
|
-
export type InstanceOfAssertionNode<Source extends AssertionSource = AssertionSource> = {
|
|
7
|
-
readonly actual: unknown;
|
|
8
|
-
readonly check: 'instance-of';
|
|
9
|
-
readonly expected: InstanceConstructor;
|
|
10
|
-
readonly message: string | null;
|
|
11
|
-
readonly source: Source;
|
|
12
|
-
readonly sourceLocations: ResolvableSourceLocations;
|
|
13
|
-
};
|
|
14
|
-
export type HasPropertyAssertionNode<Source extends AssertionSource = AssertionSource> = {
|
|
15
|
-
readonly actual: unknown;
|
|
16
|
-
readonly check: 'has-property';
|
|
17
|
-
readonly key: PropertyKey;
|
|
18
|
-
readonly message: string | null;
|
|
19
|
-
readonly source: Source;
|
|
20
|
-
readonly sourceLocations: ResolvableSourceLocations;
|
|
21
|
-
};
|
|
22
|
-
export {};
|
|
23
|
-
//# sourceMappingURL=type-shape.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type-shape.d.ts","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/type-shape.ts"],"names":[],"mappings":"AAAA,OAA2B,KACf,EACR,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,yBAAyB,EAC5B,MAAM,4BAA4B,CAAC;A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