mootant 0.0.0 → 0.1.0
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/bin/mootant.js +5 -0
- package/dist/adapters/jest/build-dry-file.d.ts +54 -0
- package/dist/adapters/jest/build-dry-file.js +73 -0
- package/dist/adapters/jest/build-isolated-facts.d.ts +45 -0
- package/dist/adapters/jest/build-isolated-facts.js +37 -0
- package/dist/adapters/jest/check-jest-support.d.ts +16 -0
- package/dist/adapters/jest/check-jest-support.js +5 -0
- package/dist/adapters/jest/check-repeatable.d.ts +39 -0
- package/dist/adapters/jest/check-repeatable.js +63 -0
- package/dist/adapters/jest/collect-jest-dependencies.d.ts +25 -0
- package/dist/adapters/jest/collect-jest-dependencies.js +15 -0
- package/dist/adapters/jest/create-heap-cap.d.ts +16 -0
- package/dist/adapters/jest/create-heap-cap.js +12 -0
- package/dist/adapters/jest/create-record-reader.d.ts +14 -0
- package/dist/adapters/jest/create-record-reader.js +25 -0
- package/dist/adapters/jest/create-worker-pool.d.ts +16 -0
- package/dist/adapters/jest/create-worker-pool.js +41 -0
- package/dist/adapters/jest/filter-jest-arguments.d.ts +32 -0
- package/dist/adapters/jest/filter-jest-arguments.js +210 -0
- package/dist/adapters/jest/find-jest-command.d.ts +15 -0
- package/dist/adapters/jest/find-jest-command.js +117 -0
- package/dist/adapters/jest/fold-attempts.d.ts +13 -0
- package/dist/adapters/jest/fold-attempts.js +21 -0
- package/dist/adapters/jest/get-dry-deadline.d.ts +20 -0
- package/dist/adapters/jest/get-dry-deadline.js +8 -0
- package/dist/adapters/jest/get-jest-base-arguments.d.ts +13 -0
- package/dist/adapters/jest/get-jest-base-arguments.js +18 -0
- package/dist/adapters/jest/get-jest-cache-directory.d.ts +9 -0
- package/dist/adapters/jest/get-jest-cache-directory.js +5 -0
- package/dist/adapters/jest/get-jest-cache-inputs.d.ts +61 -0
- package/dist/adapters/jest/get-jest-cache-inputs.js +58 -0
- package/dist/adapters/jest/get-jest-console.d.ts +22 -0
- package/dist/adapters/jest/get-jest-console.js +5 -0
- package/dist/adapters/jest/get-unit-deadline.d.ts +15 -0
- package/dist/adapters/jest/get-unit-deadline.js +8 -0
- package/dist/adapters/jest/index.d.ts +13 -0
- package/dist/adapters/jest/index.js +11 -0
- package/dist/adapters/jest/insert-jest-flags.d.ts +9 -0
- package/dist/adapters/jest/insert-jest-flags.js +9 -0
- package/dist/adapters/jest/is-transform-input.d.ts +14 -0
- package/dist/adapters/jest/is-transform-input.js +9 -0
- package/dist/adapters/jest/keep-late-transforms.d.ts +16 -0
- package/dist/adapters/jest/keep-late-transforms.js +5 -0
- package/dist/adapters/jest/keep-transform-reads.d.ts +34 -0
- package/dist/adapters/jest/keep-transform-reads.js +30 -0
- package/dist/adapters/jest/list-jest-config-files.d.ts +21 -0
- package/dist/adapters/jest/list-jest-config-files.js +29 -0
- package/dist/adapters/jest/list-jest-config-paths.d.ts +19 -0
- package/dist/adapters/jest/list-jest-config-paths.js +24 -0
- package/dist/adapters/jest/list-jest-projects.d.ts +24 -0
- package/dist/adapters/jest/list-jest-projects.js +29 -0
- package/dist/adapters/jest/list-jest-test-files.d.ts +21 -0
- package/dist/adapters/jest/list-jest-test-files.js +16 -0
- package/dist/adapters/jest/list-unserved-files.d.ts +16 -0
- package/dist/adapters/jest/list-unserved-files.js +12 -0
- package/dist/adapters/jest/read-host-config.d.ts +28 -0
- package/dist/adapters/jest/read-host-config.js +26 -0
- package/dist/adapters/jest/read-jest-config.d.ts +27 -0
- package/dist/adapters/jest/read-jest-config.js +43 -0
- package/dist/adapters/jest/read-teardown.d.ts +23 -0
- package/dist/adapters/jest/read-teardown.js +34 -0
- package/dist/adapters/jest/resolve-jest-packages.d.ts +20 -0
- package/dist/adapters/jest/resolve-jest-packages.js +45 -0
- package/dist/adapters/jest/results-mark.d.ts +6 -0
- package/dist/adapters/jest/results-mark.js +2 -0
- package/dist/adapters/jest/run-dry.d.ts +37 -0
- package/dist/adapters/jest/run-dry.js +165 -0
- package/dist/adapters/jest/run-isolated.d.ts +26 -0
- package/dist/adapters/jest/run-isolated.js +113 -0
- package/dist/adapters/jest/run-on-worker.d.ts +46 -0
- package/dist/adapters/jest/run-on-worker.js +76 -0
- package/dist/adapters/jest/runner.d.ts +23 -0
- package/dist/adapters/jest/runner.js +2 -0
- package/dist/adapters/jest/score-jest.d.ts +12 -0
- package/dist/adapters/jest/score-jest.js +19 -0
- package/dist/adapters/jest/start-jest-host.d.ts +37 -0
- package/dist/adapters/jest/start-jest-host.js +85 -0
- package/dist/adapters/jest/start-jest-session.d.ts +40 -0
- package/dist/adapters/jest/start-jest-session.js +185 -0
- package/dist/adapters/jest/start-worker.d.ts +32 -0
- package/dist/adapters/jest/start-worker.js +50 -0
- package/dist/adapters/jest/transform-config-names.d.ts +6 -0
- package/dist/adapters/jest/transform-config-names.js +20 -0
- package/dist/adapters/jest/ts-jest-path.d.ts +7 -0
- package/dist/adapters/jest/ts-jest-path.js +2 -0
- package/dist/adapters/jest/types/booted-project.d.ts +25 -0
- package/dist/adapters/jest/types/circus-event.d.ts +103 -0
- package/dist/adapters/jest/types/circus-state.d.ts +50 -0
- package/dist/adapters/jest/types/error-realm.d.ts +7 -0
- package/dist/adapters/jest/types/flag-kind.d.ts +6 -0
- package/dist/adapters/jest/types/folded-test.d.ts +55 -0
- package/dist/adapters/jest/types/heap-cap.d.ts +18 -0
- package/dist/adapters/jest/types/host-test.d.ts +26 -0
- package/dist/adapters/jest/types/inline-cjs.d.ts +7 -0
- package/dist/adapters/jest/types/jest-adapter-options.d.ts +22 -0
- package/dist/adapters/jest/types/jest-command.d.ts +27 -0
- package/dist/adapters/jest/types/jest-config.d.ts +16 -0
- package/dist/adapters/jest/types/jest-console.d.ts +6 -0
- package/dist/adapters/jest/types/jest-file-facts.d.ts +14 -0
- package/dist/adapters/jest/types/jest-file-result.d.ts +47 -0
- package/dist/adapters/jest/types/jest-global-config.d.ts +49 -0
- package/dist/adapters/jest/types/jest-handle.d.ts +119 -0
- package/dist/adapters/jest/types/jest-host.d.ts +72 -0
- package/dist/adapters/jest/types/jest-module-map.d.ts +15 -0
- package/dist/adapters/jest/types/jest-packages.d.ts +57 -0
- package/dist/adapters/jest/types/jest-project-config.d.ts +112 -0
- package/dist/adapters/jest/types/jest-project.d.ts +16 -0
- package/dist/adapters/jest/types/jest-ready.d.ts +58 -0
- package/dist/adapters/jest/types/jest-record.d.ts +333 -0
- package/dist/adapters/jest/types/jest-test-runner.d.ts +46 -0
- package/dist/adapters/jest/types/jest-timed-record.d.ts +6 -0
- package/dist/adapters/jest/types/jest-unit.d.ts +42 -0
- package/dist/adapters/jest/types/jest-worker.d.ts +49 -0
- package/dist/adapters/jest/types/record-reader.d.ts +16 -0
- package/dist/adapters/jest/types/unit-outcome.d.ts +45 -0
- package/dist/adapters/jest/types/unit-worker.d.ts +166 -0
- package/dist/adapters/jest/types/vm-side.d.ts +43 -0
- package/dist/adapters/jest/types/worker-calls.d.ts +66 -0
- package/dist/adapters/jest/types/worker-channel.d.ts +53 -0
- package/dist/adapters/jest/types/worker-files.d.ts +31 -0
- package/dist/adapters/jest/types/worker-pool.d.ts +55 -0
- package/dist/adapters/jest/types/worker-process.d.ts +64 -0
- package/dist/adapters/jest/types/worker-project.d.ts +15 -0
- package/dist/adapters/jest/types/worker-session.d.ts +63 -0
- package/dist/adapters/jest/types/worker-slot.d.ts +20 -0
- package/dist/adapters/jest/wait-for-jest-exit.d.ts +15 -0
- package/dist/adapters/jest/wait-for-jest-exit.js +28 -0
- package/dist/adapters/jest/worker/boot-worker.d.ts +39 -0
- package/dist/adapters/jest/worker/channel-slot.d.ts +6 -0
- package/dist/adapters/jest/worker/count-default-resolver-calls.d.ts +18 -0
- package/dist/adapters/jest/worker/count-resolver-calls.d.ts +16 -0
- package/dist/adapters/jest/worker/create-circus-tracker.d.ts +61 -0
- package/dist/adapters/jest/worker/create-state-guard.d.ts +55 -0
- package/dist/adapters/jest/worker/create-test-runner.d.ts +76 -0
- package/dist/adapters/jest/worker/create-transformer-factory.d.ts +124 -0
- package/dist/adapters/jest/worker/create-worker-channel.d.ts +11 -0
- package/dist/adapters/jest/worker/install-exit-guards.d.ts +34 -0
- package/dist/adapters/jest/worker/install-vm-side.d.ts +36 -0
- package/dist/adapters/jest/worker/read-error-facts.d.ts +21 -0
- package/dist/adapters/jest/worker/read-jest-result.d.ts +11 -0
- package/dist/adapters/jest/worker/run-unit.d.ts +52 -0
- package/dist/adapters/jest/worker/switch-source.d.ts +16 -0
- package/dist/adapters/jest/worker/track-stores.d.ts +10 -0
- package/dist/adapters/jest/worker/vm-setup.d.ts +1 -0
- package/dist/adapters/jest/worker/vm-setup.js +2 -0
- package/dist/adapters/jest/worker/worker.d.ts +1 -0
- package/dist/adapters/jest/worker/worker.js +2 -0
- package/dist/adapters/jest/worker/wrap-project-config.d.ts +24 -0
- package/dist/adapters/jest/write-worker-files.d.ts +13 -0
- package/dist/adapters/jest/write-worker-files.js +31 -0
- package/dist/adapters/jest/write-worker-session.d.ts +30 -0
- package/dist/adapters/jest/write-worker-session.js +23 -0
- package/dist/adapters/node-test/build-dry-file.d.ts +52 -0
- package/dist/adapters/node-test/build-dry-file.js +56 -0
- package/dist/adapters/node-test/build-isolated-facts.d.ts +33 -0
- package/dist/adapters/node-test/build-isolated-facts.js +34 -0
- package/dist/adapters/node-test/check-node-support.d.ts +8 -0
- package/dist/adapters/node-test/check-node-support.js +5 -0
- package/dist/adapters/node-test/check-todo-bail.d.ts +10 -0
- package/dist/adapters/node-test/check-todo-bail.js +5 -0
- package/dist/adapters/node-test/check-typescript.d.ts +24 -0
- package/dist/adapters/node-test/check-typescript.js +17 -0
- package/dist/adapters/node-test/collect-node-dependencies.d.ts +31 -0
- package/dist/adapters/node-test/collect-node-dependencies.js +24 -0
- package/dist/adapters/node-test/create-glob-pattern.d.ts +11 -0
- package/dist/adapters/node-test/create-glob-pattern.js +21 -0
- package/dist/adapters/node-test/describe-hook-failure.d.ts +14 -0
- package/dist/adapters/node-test/describe-hook-failure.js +4 -0
- package/dist/adapters/node-test/drop-todo-errors.d.ts +10 -0
- package/dist/adapters/node-test/drop-todo-errors.js +5 -0
- package/dist/adapters/node-test/filter-exec-argv.d.ts +19 -0
- package/dist/adapters/node-test/filter-exec-argv.js +33 -0
- package/dist/adapters/node-test/find-test-command.d.ts +13 -0
- package/dist/adapters/node-test/find-test-command.js +18 -0
- package/dist/adapters/node-test/get-default-patterns.d.ts +13 -0
- package/dist/adapters/node-test/get-default-patterns.js +14 -0
- package/dist/adapters/node-test/get-dry-deadline.d.ts +17 -0
- package/dist/adapters/node-test/get-dry-deadline.js +6 -0
- package/dist/adapters/node-test/get-node-cache-inputs.d.ts +31 -0
- package/dist/adapters/node-test/get-node-cache-inputs.js +33 -0
- package/dist/adapters/node-test/get-preload-path.d.ts +10 -0
- package/dist/adapters/node-test/get-preload-path.js +7 -0
- package/dist/adapters/node-test/get-unit-deadline.d.ts +13 -0
- package/dist/adapters/node-test/get-unit-deadline.js +5 -0
- package/dist/adapters/node-test/includes-tsx.d.ts +9 -0
- package/dist/adapters/node-test/includes-tsx.js +5 -0
- package/dist/adapters/node-test/index.d.ts +13 -0
- package/dist/adapters/node-test/index.js +11 -0
- package/dist/adapters/node-test/list-file-errors.d.ts +18 -0
- package/dist/adapters/node-test/list-file-errors.js +8 -0
- package/dist/adapters/node-test/list-flag-values.d.ts +10 -0
- package/dist/adapters/node-test/list-flag-values.js +9 -0
- package/dist/adapters/node-test/list-loaded-files.d.ts +9 -0
- package/dist/adapters/node-test/list-loaded-files.js +7 -0
- package/dist/adapters/node-test/list-node-test-files.d.ts +13 -0
- package/dist/adapters/node-test/list-node-test-files.js +42 -0
- package/dist/adapters/node-test/list-running-tries.d.ts +16 -0
- package/dist/adapters/node-test/list-running-tries.js +6 -0
- package/dist/adapters/node-test/list-setup-files.d.ts +11 -0
- package/dist/adapters/node-test/list-setup-files.js +9 -0
- package/dist/adapters/node-test/loader-flags.d.ts +4 -0
- package/dist/adapters/node-test/loader-flags.js +8 -0
- package/dist/adapters/node-test/place-preload.d.ts +17 -0
- package/dist/adapters/node-test/place-preload.js +27 -0
- package/dist/adapters/node-test/preload/create-bail-error.d.ts +9 -0
- package/dist/adapters/node-test/preload/create-bail-error.js +7 -0
- package/dist/adapters/node-test/preload/create-commonjs-route.d.ts +24 -0
- package/dist/adapters/node-test/preload/create-commonjs-route.js +15 -0
- package/dist/adapters/node-test/preload/create-file-recorder.d.ts +10 -0
- package/dist/adapters/node-test/preload/create-file-recorder.js +10 -0
- package/dist/adapters/node-test/preload/create-load-hook.d.ts +22 -0
- package/dist/adapters/node-test/preload/create-load-hook.js +18 -0
- package/dist/adapters/node-test/preload/create-record-writer.d.ts +13 -0
- package/dist/adapters/node-test/preload/create-record-writer.js +8 -0
- package/dist/adapters/node-test/preload/create-report-reader.d.ts +35 -0
- package/dist/adapters/node-test/preload/create-report-reader.js +34 -0
- package/dist/adapters/node-test/preload/create-source-switcher.d.ts +25 -0
- package/dist/adapters/node-test/preload/create-source-switcher.js +25 -0
- package/dist/adapters/node-test/preload/create-try-tracker.d.ts +71 -0
- package/dist/adapters/node-test/preload/create-try-tracker.js +125 -0
- package/dist/adapters/node-test/preload/hooks.d.ts +19 -0
- package/dist/adapters/node-test/preload/hooks.js +17 -0
- package/dist/adapters/node-test/preload/install-marker-receivers.d.ts +30 -0
- package/dist/adapters/node-test/preload/install-marker-receivers.js +16 -0
- package/dist/adapters/node-test/preload/install-module-hooks.d.ts +79 -0
- package/dist/adapters/node-test/preload/install-module-hooks.js +13 -0
- package/dist/adapters/node-test/preload/loaded-key.d.ts +5 -0
- package/dist/adapters/node-test/preload/loaded-key.js +2 -0
- package/dist/adapters/node-test/preload/patch-module-compile.d.ts +14 -0
- package/dist/adapters/node-test/preload/patch-module-compile.js +11 -0
- package/dist/adapters/node-test/preload/preload.d.ts +1 -0
- package/dist/adapters/node-test/preload/preload.js +71 -0
- package/dist/adapters/node-test/preload/read-unit.d.ts +13 -0
- package/dist/adapters/node-test/preload/read-unit.js +5 -0
- package/dist/adapters/node-test/preload/reported-key.d.ts +5 -0
- package/dist/adapters/node-test/preload/reported-key.js +2 -0
- package/dist/adapters/node-test/preload/reporter.d.ts +10 -0
- package/dist/adapters/node-test/preload/reporter.js +12 -0
- package/dist/adapters/node-test/preload/served-key.d.ts +5 -0
- package/dist/adapters/node-test/preload/served-key.js +2 -0
- package/dist/adapters/node-test/read-node-runtime.d.ts +22 -0
- package/dist/adapters/node-test/read-node-runtime.js +40 -0
- package/dist/adapters/node-test/read-test-timeout.d.ts +8 -0
- package/dist/adapters/node-test/read-test-timeout.js +12 -0
- package/dist/adapters/node-test/read-tries.d.ts +47 -0
- package/dist/adapters/node-test/read-tries.js +31 -0
- package/dist/adapters/node-test/resolve-command.d.ts +15 -0
- package/dist/adapters/node-test/resolve-command.js +87 -0
- package/dist/adapters/node-test/resolve-tsx.d.ts +8 -0
- package/dist/adapters/node-test/resolve-tsx.js +12 -0
- package/dist/adapters/node-test/run-dry.d.ts +32 -0
- package/dist/adapters/node-test/run-dry.js +87 -0
- package/dist/adapters/node-test/run-isolated.d.ts +22 -0
- package/dist/adapters/node-test/run-isolated.js +56 -0
- package/dist/adapters/node-test/run-test-file.d.ts +22 -0
- package/dist/adapters/node-test/run-test-file.js +35 -0
- package/dist/adapters/node-test/run-test-process.d.ts +63 -0
- package/dist/adapters/node-test/run-test-process.js +69 -0
- package/dist/adapters/node-test/score-node-test.d.ts +11 -0
- package/dist/adapters/node-test/score-node-test.js +32 -0
- package/dist/adapters/node-test/start-node-test-session.d.ts +26 -0
- package/dist/adapters/node-test/start-node-test-session.js +124 -0
- package/dist/adapters/node-test/types/node-test-adapter-options.d.ts +33 -0
- package/dist/adapters/node-test/types/node-test-command.d.ts +28 -0
- package/dist/adapters/node-test/types/node-test-handle.d.ts +118 -0
- package/dist/adapters/node-test/types/node-test-hooks-data.d.ts +20 -0
- package/dist/adapters/node-test/types/node-test-record.d.ts +330 -0
- package/dist/adapters/node-test/types/node-test-unit.d.ts +57 -0
- package/dist/adapters/node-test/types/process-watch.d.ts +22 -0
- package/dist/adapters/node-test/types/source-switcher.d.ts +21 -0
- package/dist/adapters/node-test/types/test-process-outcome.d.ts +31 -0
- package/dist/adapters/node-test/types/try-context.d.ts +26 -0
- package/dist/adapters/node-test/types/try-tracker.d.ts +44 -0
- package/dist/adapters/shared/capture-clock.d.ts +11 -0
- package/dist/adapters/shared/capture-clock.js +14 -0
- package/dist/adapters/shared/create-environment-proxy.d.ts +12 -0
- package/dist/adapters/shared/create-environment-proxy.js +17 -0
- package/dist/adapters/shared/describe-exit.d.ts +14 -0
- package/dist/adapters/shared/describe-exit.js +4 -0
- package/dist/adapters/shared/environment-slot.d.ts +5 -0
- package/dist/adapters/shared/environment-slot.js +2 -0
- package/dist/adapters/shared/get-error-message.d.ts +9 -0
- package/dist/adapters/shared/get-error-message.js +10 -0
- package/dist/adapters/shared/get-test-id.d.ts +19 -0
- package/dist/adapters/shared/get-test-id.js +11 -0
- package/dist/adapters/shared/hash-environment.d.ts +9 -0
- package/dist/adapters/shared/hash-environment.js +6 -0
- package/dist/adapters/shared/index-environment-hashes.d.ts +13 -0
- package/dist/adapters/shared/index-environment-hashes.js +19 -0
- package/dist/adapters/shared/list-package-files.d.ts +11 -0
- package/dist/adapters/shared/list-package-files.js +9 -0
- package/dist/adapters/shared/list-tsconfig-files.d.ts +12 -0
- package/dist/adapters/shared/list-tsconfig-files.js +15 -0
- package/dist/adapters/shared/live-process-groups.d.ts +5 -0
- package/dist/adapters/shared/live-process-groups.js +2 -0
- package/dist/adapters/shared/parse-command.d.ts +16 -0
- package/dist/adapters/shared/parse-command.js +27 -0
- package/dist/adapters/shared/read-command-prefix.d.ts +16 -0
- package/dist/adapters/shared/read-command-prefix.js +33 -0
- package/dist/adapters/shared/read-out-file.d.ts +8 -0
- package/dist/adapters/shared/read-out-file.js +11 -0
- package/dist/adapters/shared/read-package-type.d.ts +8 -0
- package/dist/adapters/shared/read-package-type.js +12 -0
- package/dist/adapters/shared/read-test-scripts.d.ts +14 -0
- package/dist/adapters/shared/read-test-scripts.js +55 -0
- package/dist/adapters/shared/read-tsconfig-extends.d.ts +12 -0
- package/dist/adapters/shared/read-tsconfig-extends.js +39 -0
- package/dist/adapters/shared/run-in-pool.d.ts +16 -0
- package/dist/adapters/shared/run-in-pool.js +22 -0
- package/dist/adapters/shared/split-node-arguments.d.ts +14 -0
- package/dist/adapters/shared/split-node-arguments.js +18 -0
- package/dist/adapters/shared/stop-live-process-groups.d.ts +5 -0
- package/dist/adapters/shared/stop-live-process-groups.js +7 -0
- package/dist/adapters/shared/stop-process-group.d.ts +9 -0
- package/dist/adapters/shared/stop-process-group.js +10 -0
- package/dist/adapters/shared/track-environment.d.ts +43 -0
- package/dist/adapters/shared/track-environment.js +18 -0
- package/dist/adapters/shared/track-file-inputs.d.ts +12 -0
- package/dist/adapters/shared/track-file-inputs.js +21 -0
- package/dist/adapters/shared/track-file-reads.d.ts +38 -0
- package/dist/adapters/shared/track-file-reads.js +190 -0
- package/dist/adapters/shared/track-inputs.d.ts +16 -0
- package/dist/adapters/shared/track-inputs.js +21 -0
- package/dist/adapters/shared/track-process-group.d.ts +9 -0
- package/dist/adapters/shared/track-process-group.js +20 -0
- package/dist/adapters/shared/track-spawners.d.ts +20 -0
- package/dist/adapters/shared/track-spawners.js +49 -0
- package/dist/adapters/shared/types/environment-proxy-state.d.ts +23 -0
- package/dist/adapters/shared/types/file-input-tracking.d.ts +20 -0
- package/dist/adapters/shared/types/input-tracking.d.ts +26 -0
- package/dist/adapters/shared/types/safe-clock.d.ts +25 -0
- package/dist/adapters/shared/types/switch-plan.d.ts +7 -0
- package/dist/adapters/shared/verdict-variable-pattern.d.ts +6 -0
- package/dist/adapters/shared/verdict-variable-pattern.js +2 -0
- package/dist/adapters/shared/write-switch-plan.d.ts +11 -0
- package/dist/adapters/shared/write-switch-plan.js +16 -0
- package/dist/adapters/vitest/build-isolated-facts.d.ts +19 -0
- package/dist/adapters/vitest/build-isolated-facts.js +31 -0
- package/dist/adapters/vitest/check-project-config.d.ts +10 -0
- package/dist/adapters/vitest/check-project-config.js +6 -0
- package/dist/adapters/vitest/check-vitest-copy.d.ts +12 -0
- package/dist/adapters/vitest/check-vitest-copy.js +15 -0
- package/dist/adapters/vitest/collect-dependencies.d.ts +29 -0
- package/dist/adapters/vitest/collect-dependencies.js +38 -0
- package/dist/adapters/vitest/configure-project.d.ts +17 -0
- package/dist/adapters/vitest/configure-project.js +24 -0
- package/dist/adapters/vitest/create-forks-pool.d.ts +22 -0
- package/dist/adapters/vitest/create-forks-pool.js +49 -0
- package/dist/adapters/vitest/create-interleaved-sequencer.d.ts +13 -0
- package/dist/adapters/vitest/create-interleaved-sequencer.js +21 -0
- package/dist/adapters/vitest/create-mootant-plugin.d.ts +18 -0
- package/dist/adapters/vitest/create-mootant-plugin.js +31 -0
- package/dist/adapters/vitest/create-output-reporter.d.ts +28 -0
- package/dist/adapters/vitest/create-output-reporter.js +7 -0
- package/dist/adapters/vitest/create-output-stream.d.ts +11 -0
- package/dist/adapters/vitest/create-output-stream.js +16 -0
- package/dist/adapters/vitest/detect-vitest.d.ts +28 -0
- package/dist/adapters/vitest/detect-vitest.js +26 -0
- package/dist/adapters/vitest/get-cache-inputs.d.ts +16 -0
- package/dist/adapters/vitest/get-cache-inputs.js +75 -0
- package/dist/adapters/vitest/get-file-key.d.ts +10 -0
- package/dist/adapters/vitest/get-file-key.js +15 -0
- package/dist/adapters/vitest/get-module-file.d.ts +10 -0
- package/dist/adapters/vitest/get-module-file.js +7 -0
- package/dist/adapters/vitest/get-project-label.d.ts +8 -0
- package/dist/adapters/vitest/get-project-label.js +4 -0
- package/dist/adapters/vitest/get-runner-path.d.ts +9 -0
- package/dist/adapters/vitest/get-runner-path.js +7 -0
- package/dist/adapters/vitest/get-switchable-path.d.ts +12 -0
- package/dist/adapters/vitest/get-switchable-path.js +8 -0
- package/dist/adapters/vitest/index-switched-files.d.ts +10 -0
- package/dist/adapters/vitest/index-switched-files.js +5 -0
- package/dist/adapters/vitest/index.d.ts +11 -0
- package/dist/adapters/vitest/index.js +11 -0
- package/dist/adapters/vitest/read-environment-hashes.d.ts +9 -0
- package/dist/adapters/vitest/read-environment-hashes.js +13 -0
- package/dist/adapters/vitest/read-out-files.d.ts +9 -0
- package/dist/adapters/vitest/read-out-files.js +9 -0
- package/dist/adapters/vitest/read-unit-inputs.d.ts +27 -0
- package/dist/adapters/vitest/read-unit-inputs.js +15 -0
- package/dist/adapters/vitest/reset-run-directory.d.ts +9 -0
- package/dist/adapters/vitest/reset-run-directory.js +21 -0
- package/dist/adapters/vitest/run-batch.d.ts +16 -0
- package/dist/adapters/vitest/run-batch.js +70 -0
- package/dist/adapters/vitest/run-dry.d.ts +26 -0
- package/dist/adapters/vitest/run-dry.js +136 -0
- package/dist/adapters/vitest/run-isolated.d.ts +15 -0
- package/dist/adapters/vitest/run-isolated.js +29 -0
- package/dist/adapters/vitest/run-plan.d.ts +39 -0
- package/dist/adapters/vitest/run-plan.js +60 -0
- package/dist/adapters/vitest/run-specifications.d.ts +23 -0
- package/dist/adapters/vitest/run-specifications.js +19 -0
- package/dist/adapters/vitest/runner.d.ts +449 -0
- package/dist/adapters/vitest/runner.js +361 -0
- package/dist/adapters/vitest/score-vitest.d.ts +11 -0
- package/dist/adapters/vitest/score-vitest.js +7 -0
- package/dist/adapters/vitest/start-vitest-session.d.ts +24 -0
- package/dist/adapters/vitest/start-vitest-session.js +88 -0
- package/dist/adapters/vitest/stop-hung-worker.d.ts +11 -0
- package/dist/adapters/vitest/stop-hung-worker.js +29 -0
- package/dist/adapters/vitest/types/unit-outcome.d.ts +26 -0
- package/dist/adapters/vitest/types/vitest-adapter-options.d.ts +10 -0
- package/dist/adapters/vitest/types/vitest-session-state.d.ts +94 -0
- package/dist/adapters/vitest/types/vitest-worker.d.ts +246 -0
- package/dist/adapters/vitest/wait-for-workers.d.ts +30 -0
- package/dist/adapters/vitest/wait-for-workers.js +39 -0
- package/dist/adapters/vitest/watch-heartbeats.d.ts +23 -0
- package/dist/adapters/vitest/watch-heartbeats.js +25 -0
- package/dist/adapters/vitest/watch-unit-ends.d.ts +22 -0
- package/dist/adapters/vitest/watch-unit-ends.js +14 -0
- package/dist/adapters/vitest/worker/claim-unit.d.ts +16 -0
- package/dist/adapters/vitest/worker/claim-unit.js +16 -0
- package/dist/adapters/vitest/worker/find-hook-error.d.ts +10 -0
- package/dist/adapters/vitest/worker/find-hook-error.js +12 -0
- package/dist/adapters/vitest/worker/get-file-hash.d.ts +11 -0
- package/dist/adapters/vitest/worker/get-file-hash.js +5 -0
- package/dist/adapters/vitest/worker/get-hook-budget.d.ts +16 -0
- package/dist/adapters/vitest/worker/get-hook-budget.js +36 -0
- package/dist/adapters/vitest/worker/install-try-hook.d.ts +16 -0
- package/dist/adapters/vitest/worker/install-try-hook.js +11 -0
- package/dist/adapters/vitest/worker/is-process-alive.d.ts +9 -0
- package/dist/adapters/vitest/worker/is-process-alive.js +9 -0
- package/dist/adapters/vitest/worker/is-timeout-message.d.ts +7 -0
- package/dist/adapters/vitest/worker/is-timeout-message.js +5 -0
- package/dist/adapters/vitest/worker/list-dependencies.d.ts +35 -0
- package/dist/adapters/vitest/worker/list-dependencies.js +10 -0
- package/dist/adapters/vitest/worker/list-tests.d.ts +8 -0
- package/dist/adapters/vitest/worker/list-tests.js +4 -0
- package/dist/adapters/vitest/worker/order-tests.d.ts +14 -0
- package/dist/adapters/vitest/worker/order-tests.js +7 -0
- package/dist/adapters/vitest/worker/race-try-timeout.d.ts +13 -0
- package/dist/adapters/vitest/worker/race-try-timeout.js +17 -0
- package/dist/adapters/vitest/worker/read-try-facts.d.ts +36 -0
- package/dist/adapters/vitest/worker/read-try-facts.js +19 -0
- package/dist/adapters/vitest/worker/read-worker-plan.d.ts +11 -0
- package/dist/adapters/vitest/worker/read-worker-plan.js +13 -0
- package/dist/adapters/vitest/worker/vitest-variables.d.ts +6 -0
- package/dist/adapters/vitest/worker/vitest-variables.js +2 -0
- package/dist/adapters/vitest/worker/wait-for-turn.d.ts +24 -0
- package/dist/adapters/vitest/worker/wait-for-turn.js +11 -0
- package/dist/adapters/vitest/worker/watch-worker-close.d.ts +20 -0
- package/dist/adapters/vitest/worker/watch-worker-close.js +32 -0
- package/dist/adapters/vitest/worker/write-heartbeat.d.ts +14 -0
- package/dist/adapters/vitest/worker/write-heartbeat.js +6 -0
- package/dist/adapters/vitest/worker/write-out-record.d.ts +10 -0
- package/dist/adapters/vitest/worker/write-out-record.js +5 -0
- package/dist/adapters/vitest/write-plan-files.d.ts +12 -0
- package/dist/adapters/vitest/write-plan-files.js +14 -0
- package/dist/cli/built-in-adapters.d.ts +15 -0
- package/dist/cli/built-in-adapters.js +29 -0
- package/dist/cli/create-run-progress.d.ts +50 -0
- package/dist/cli/create-run-progress.js +218 -0
- package/dist/cli/create-time-estimator.d.ts +80 -0
- package/dist/cli/create-time-estimator.js +63 -0
- package/dist/cli/diff/format-change.d.ts +38 -0
- package/dist/cli/diff/format-change.js +101 -0
- package/dist/cli/diff/format-diff-groups.d.ts +46 -0
- package/dist/cli/diff/format-diff-groups.js +48 -0
- package/dist/cli/diff/format-diff.d.ts +20 -0
- package/dist/cli/diff/format-diff.js +94 -0
- package/dist/cli/diff/get-diff-lines.d.ts +23 -0
- package/dist/cli/diff/get-diff-lines.js +24 -0
- package/dist/cli/diff/is-joined.d.ts +10 -0
- package/dist/cli/diff/is-joined.js +5 -0
- package/dist/cli/diff/mark-diff.d.ts +63 -0
- package/dist/cli/diff/mark-diff.js +43 -0
- package/dist/cli/diff/narrow-change.d.ts +36 -0
- package/dist/cli/diff/narrow-change.js +46 -0
- package/dist/cli/diff/separate-replacement.d.ts +21 -0
- package/dist/cli/diff/separate-replacement.js +6 -0
- package/dist/cli/html/build-html-report.d.ts +48 -0
- package/dist/cli/html/build-html-report.js +113 -0
- package/dist/cli/html/client/copy-text.d.ts +9 -0
- package/dist/cli/html/client/describe-status.d.ts +13 -0
- package/dist/cli/html/client/download-json.d.ts +8 -0
- package/dist/cli/html/client/escape-html.d.ts +7 -0
- package/dist/cli/html/client/escape-html.js +4 -0
- package/dist/cli/html/client/filter-by-status.d.ts +11 -0
- package/dist/cli/html/client/find-search-results.d.ts +30 -0
- package/dist/cli/html/client/format-date.d.ts +8 -0
- package/dist/cli/html/client/format-score.d.ts +8 -0
- package/dist/cli/html/client/format-time.d.ts +8 -0
- package/dist/cli/html/client/get-file-href.d.ts +10 -0
- package/dist/cli/html/client/get-icon.d.ts +37 -0
- package/dist/cli/html/client/get-line-end.d.ts +10 -0
- package/dist/cli/html/client/get-table-layout.d.ts +15 -0
- package/dist/cli/html/client/get-test-groups.d.ts +11 -0
- package/dist/cli/html/client/get-wordmark.d.ts +9 -0
- package/dist/cli/html/client/html.d.ts +12 -0
- package/dist/cli/html/client/index-report.d.ts +14 -0
- package/dist/cli/html/client/is-overlapping.d.ts +10 -0
- package/dist/cli/html/client/main.d.ts +1 -0
- package/dist/cli/html/client/main.js +2 -0
- package/dist/cli/html/client/measure-column.d.ts +10 -0
- package/dist/cli/html/client/paint-ranges.d.ts +33 -0
- package/dist/cli/html/client/parse-route.d.ts +13 -0
- package/dist/cli/html/client/render-attention.d.ts +12 -0
- package/dist/cli/html/client/render-change.d.ts +11 -0
- package/dist/cli/html/client/render-code.d.ts +50 -0
- package/dist/cli/html/client/render-command.d.ts +8 -0
- package/dist/cli/html/client/render-count-cells.d.ts +10 -0
- package/dist/cli/html/client/render-diff.d.ts +16 -0
- package/dist/cli/html/client/render-file-code.d.ts +12 -0
- package/dist/cli/html/client/render-file-panel.d.ts +12 -0
- package/dist/cli/html/client/render-files-table.d.ts +10 -0
- package/dist/cli/html/client/render-files-view.d.ts +14 -0
- package/dist/cli/html/client/render-frame.d.ts +12 -0
- package/dist/cli/html/client/render-mutant-link.d.ts +11 -0
- package/dist/cli/html/client/render-mutant-panel.d.ts +18 -0
- package/dist/cli/html/client/render-mutant-row.d.ts +13 -0
- package/dist/cli/html/client/render-mutants-table.d.ts +13 -0
- package/dist/cli/html/client/render-mutants-view.d.ts +12 -0
- package/dist/cli/html/client/render-mutators-view.d.ts +11 -0
- package/dist/cli/html/client/render-overview.d.ts +14 -0
- package/dist/cli/html/client/render-side-panel.d.ts +12 -0
- package/dist/cli/html/client/render-skip-panel.d.ts +14 -0
- package/dist/cli/html/client/render-skipped-summary.d.ts +10 -0
- package/dist/cli/html/client/render-spotlight.d.ts +12 -0
- package/dist/cli/html/client/render-status-bar.d.ts +10 -0
- package/dist/cli/html/client/render-status-filter.d.ts +40 -0
- package/dist/cli/html/client/render-test-name.d.ts +8 -0
- package/dist/cli/html/client/render-tests-view.d.ts +16 -0
- package/dist/cli/html/client/render-tree.d.ts +11 -0
- package/dist/cli/html/client/set-markup.d.ts +9 -0
- package/dist/cli/html/client/start-report.d.ts +14 -0
- package/dist/cli/html/client/tokenize-source.d.ts +12 -0
- package/dist/cli/html/client/unpack-replacement.d.ts +15 -0
- package/dist/cli/html/client/unpack-run-report.d.ts +12 -0
- package/dist/cli/html/format-html-report.d.ts +12 -0
- package/dist/cli/html/format-html-report.js +52 -0
- package/dist/cli/html/pack-replacement.d.ts +15 -0
- package/dist/cli/html/pack-replacement.js +11 -0
- package/dist/cli/html/read-project-name.d.ts +8 -0
- package/dist/cli/html/read-project-name.js +12 -0
- package/dist/cli/html/report.js +2 -0
- package/dist/cli/html/serialize-report-data.d.ts +11 -0
- package/dist/cli/html/serialize-report-data.js +4 -0
- package/dist/cli/html/write-html-report.d.ts +7 -0
- package/dist/cli/html/write-html-report.js +6 -0
- package/dist/cli/index.d.ts +6 -0
- package/dist/cli/index.js +14 -0
- package/dist/cli/parse-arguments.d.ts +127 -0
- package/dist/cli/parse-arguments.js +137 -0
- package/dist/cli/report/build-list-report.d.ts +13 -0
- package/dist/cli/report/build-list-report.js +131 -0
- package/dist/cli/report/build-run-report.d.ts +39 -0
- package/dist/cli/report/build-run-report.js +108 -0
- package/dist/cli/report/format-command.d.ts +59 -0
- package/dist/cli/report/format-command.js +14 -0
- package/dist/cli/report/format-duration.d.ts +8 -0
- package/dist/cli/report/format-duration.js +9 -0
- package/dist/cli/report/format-fields.d.ts +11 -0
- package/dist/cli/report/format-fields.js +15 -0
- package/dist/cli/report/format-file-groups.d.ts +66 -0
- package/dist/cli/report/format-file-groups.js +53 -0
- package/dist/cli/report/format-header.d.ts +19 -0
- package/dist/cli/report/format-header.js +12 -0
- package/dist/cli/report/format-report.d.ts +16 -0
- package/dist/cli/report/format-report.js +10 -0
- package/dist/cli/report/format-run-report.d.ts +13 -0
- package/dist/cli/report/format-run-report.js +10 -0
- package/dist/cli/report/format-run-text-report.d.ts +59 -0
- package/dist/cli/report/format-run-text-report.js +126 -0
- package/dist/cli/report/format-text-report.d.ts +33 -0
- package/dist/cli/report/format-text-report.js +57 -0
- package/dist/cli/report/format-time-left.d.ts +10 -0
- package/dist/cli/report/format-time-left.js +9 -0
- package/dist/cli/report/get-file-scores.d.ts +11 -0
- package/dist/cli/report/get-file-scores.js +21 -0
- package/dist/cli/report/get-short-id-length.d.ts +9 -0
- package/dist/cli/report/get-short-id-length.js +11 -0
- package/dist/cli/report/print-diagnostics.d.ts +11 -0
- package/dist/cli/report/print-diagnostics.js +15 -0
- package/dist/cli/report/slim-diff.d.ts +11 -0
- package/dist/cli/report/slim-diff.js +9 -0
- package/dist/cli/report/slim-focus.d.ts +10 -0
- package/dist/cli/report/slim-focus.js +9 -0
- package/dist/cli/report/slim-list-mutant.d.ts +17 -0
- package/dist/cli/report/slim-list-mutant.js +18 -0
- package/dist/cli/report/slim-list-report.d.ts +14 -0
- package/dist/cli/report/slim-list-report.js +20 -0
- package/dist/cli/report/slim-run-report.d.ts +20 -0
- package/dist/cli/report/slim-run-report.js +66 -0
- package/dist/cli/report/sort-by-location.d.ts +16 -0
- package/dist/cli/report/sort-by-location.js +9 -0
- package/dist/cli/run-list.d.ts +9 -0
- package/dist/cli/run-list.js +27 -0
- package/dist/cli/run-mutation.d.ts +18 -0
- package/dist/cli/run-mutation.js +72 -0
- package/dist/cli/terminal/colors.d.ts +59 -0
- package/dist/cli/terminal/colors.js +26 -0
- package/dist/cli/terminal/count-terminal-rows.d.ts +13 -0
- package/dist/cli/terminal/count-terminal-rows.js +7 -0
- package/dist/cli/terminal/create-spinner.d.ts +37 -0
- package/dist/cli/terminal/create-spinner.js +62 -0
- package/dist/cli/terminal/cut-to-width.d.ts +17 -0
- package/dist/cli/terminal/cut-to-width.js +14 -0
- package/dist/cli/terminal/fit-parts.d.ts +12 -0
- package/dist/cli/terminal/fit-parts.js +10 -0
- package/dist/cli/terminal/format-by-file.d.ts +35 -0
- package/dist/cli/terminal/format-by-file.js +15 -0
- package/dist/cli/terminal/get-display-width.d.ts +24 -0
- package/dist/cli/terminal/get-display-width.js +15 -0
- package/dist/cli/terminal/get-max-display-width.d.ts +9 -0
- package/dist/cli/terminal/get-max-display-width.js +5 -0
- package/dist/cli/terminal/get-symbols.d.ts +37 -0
- package/dist/cli/terminal/get-symbols.js +18 -0
- package/dist/cli/terminal/get-text-style.d.ts +15 -0
- package/dist/cli/terminal/get-text-style.js +16 -0
- package/dist/cli/terminal/is-interactive-terminal.d.ts +12 -0
- package/dist/cli/terminal/is-interactive-terminal.js +5 -0
- package/dist/cli/terminal/is-unicode-supported.d.ts +10 -0
- package/dist/cli/terminal/is-unicode-supported.js +5 -0
- package/dist/cli/terminal/measure-parts.d.ts +10 -0
- package/dist/cli/terminal/measure-parts.js +6 -0
- package/dist/cli/terminal/pad-to-width.d.ts +9 -0
- package/dist/cli/terminal/pad-to-width.js +5 -0
- package/dist/cli/terminal/strip-ansi.d.ts +7 -0
- package/dist/cli/terminal/strip-ansi.js +14 -0
- package/dist/cli/terminal/wrap-text.d.ts +9 -0
- package/dist/cli/terminal/wrap-text.js +10 -0
- package/dist/core/cache/apply-cached-batch.d.ts +21 -0
- package/dist/core/cache/apply-cached-batch.js +37 -0
- package/dist/core/cache/apply-cached-units.d.ts +15 -0
- package/dist/core/cache/apply-cached-units.js +19 -0
- package/dist/core/cache/cache-version.d.ts +6 -0
- package/dist/core/cache/create-digest.d.ts +7 -0
- package/dist/core/cache/create-digest.js +5 -0
- package/dist/core/cache/create-run-cache.d.ts +93 -0
- package/dist/core/cache/create-run-cache.js +126 -0
- package/dist/core/cache/find-changed-files.d.ts +10 -0
- package/dist/core/cache/find-changed-files.js +11 -0
- package/dist/core/cache/find-lockfile.d.ts +8 -0
- package/dist/core/cache/find-lockfile.js +23 -0
- package/dist/core/cache/get-cache-path.d.ts +9 -0
- package/dist/core/cache/get-cache-path.js +5 -0
- package/dist/core/cache/get-environment-key.d.ts +63 -0
- package/dist/core/cache/get-environment-key.js +25 -0
- package/dist/core/cache/get-portable-path.d.ts +11 -0
- package/dist/core/cache/get-portable-path.js +5 -0
- package/dist/core/cache/get-test-file-keys.d.ts +31 -0
- package/dist/core/cache/get-test-file-keys.js +24 -0
- package/dist/core/cache/hash-files.d.ts +11 -0
- package/dist/core/cache/hash-files.js +24 -0
- package/dist/core/cache/list-file-hashes.d.ts +16 -0
- package/dist/core/cache/list-file-hashes.js +7 -0
- package/dist/core/cache/prepare-run-cache.d.ts +92 -0
- package/dist/core/cache/prepare-run-cache.js +71 -0
- package/dist/core/cache/prune-cache-entries.d.ts +10 -0
- package/dist/core/cache/prune-cache-entries.js +6 -0
- package/dist/core/cache/read-run-cache.d.ts +11 -0
- package/dist/core/cache/read-run-cache.js +33 -0
- package/dist/core/cache/run-in-chunks.d.ts +10 -0
- package/dist/core/cache/run-in-chunks.js +6 -0
- package/dist/core/cache/save-run-cache.d.ts +33 -0
- package/dist/core/cache/save-run-cache.js +54 -0
- package/dist/core/cache/write-run-cache.d.ts +22 -0
- package/dist/core/cache/write-run-cache.js +20 -0
- package/dist/core/compare-code-units.d.ts +10 -0
- package/dist/core/compare-code-units.js +4 -0
- package/dist/core/config/define-config.d.ts +13 -0
- package/dist/core/config/define-config.js +4 -0
- package/dist/core/config/import-config.d.ts +9 -0
- package/dist/core/config/import-config.js +5 -0
- package/dist/core/config/load-config.d.ts +38 -0
- package/dist/core/config/load-config.js +55 -0
- package/dist/core/config/load-typescript-config.d.ts +11 -0
- package/dist/core/config/load-typescript-config.js +13 -0
- package/dist/core/config/prepare-run.d.ts +67 -0
- package/dist/core/config/prepare-run.js +36 -0
- package/dist/core/config/resolve-run-settings.d.ts +15 -0
- package/dist/core/config/resolve-run-settings.js +20 -0
- package/dist/core/config/validate-config.d.ts +17 -0
- package/dist/core/config/validate-config.js +74 -0
- package/dist/core/files/expand-paths.d.ts +46 -0
- package/dist/core/files/expand-paths.js +106 -0
- package/dist/core/files/is-source-file.d.ts +8 -0
- package/dist/core/files/is-source-file.js +6 -0
- package/dist/core/files/list-file-mutants.d.ts +71 -0
- package/dist/core/files/list-file-mutants.js +69 -0
- package/dist/core/files/select-changed-mutants.d.ts +15 -0
- package/dist/core/files/select-changed-mutants.js +22 -0
- package/dist/core/generate/apply-solitary-rule.d.ts +30 -0
- package/dist/core/generate/apply-solitary-rule.js +48 -0
- package/dist/core/generate/collect-candidates.d.ts +134 -0
- package/dist/core/generate/collect-candidates.js +165 -0
- package/dist/core/generate/compare-candidates.d.ts +18 -0
- package/dist/core/generate/compare-candidates.js +4 -0
- package/dist/core/generate/deduplicate-candidates.d.ts +30 -0
- package/dist/core/generate/deduplicate-candidates.js +25 -0
- package/dist/core/generate/fit-template-text.d.ts +26 -0
- package/dist/core/generate/fit-template-text.js +17 -0
- package/dist/core/generate/generate-file-mutants.d.ts +77 -0
- package/dist/core/generate/generate-file-mutants.js +225 -0
- package/dist/core/generate/get-mutant-regions.d.ts +49 -0
- package/dist/core/generate/get-mutant-regions.js +69 -0
- package/dist/core/generate/get-replacement-kind.d.ts +12 -0
- package/dist/core/generate/get-replacement-kind.js +24 -0
- package/dist/core/generate/group-replacement.d.ts +40 -0
- package/dist/core/generate/group-replacement.js +151 -0
- package/dist/core/generate/pick-focus.d.ts +14 -0
- package/dist/core/generate/pick-focus.js +4 -0
- package/dist/core/generate/validate-replacement.d.ts +17 -0
- package/dist/core/generate/validate-replacement.js +29 -0
- package/dist/core/git/find-git-root.d.ts +10 -0
- package/dist/core/git/find-git-root.js +8 -0
- package/dist/core/git/get-merge-base.d.ts +12 -0
- package/dist/core/git/get-merge-base.js +32 -0
- package/dist/core/git/parse-binary-paths.d.ts +11 -0
- package/dist/core/git/parse-binary-paths.js +9 -0
- package/dist/core/git/parse-unified-diff.d.ts +15 -0
- package/dist/core/git/parse-unified-diff.js +26 -0
- package/dist/core/git/read-changed-lines.d.ts +18 -0
- package/dist/core/git/read-changed-lines.js +60 -0
- package/dist/core/git/run-git.d.ts +30 -0
- package/dist/core/git/run-git.js +30 -0
- package/dist/core/git/unquote-git-path.d.ts +9 -0
- package/dist/core/git/unquote-git-path.js +25 -0
- package/dist/core/hints/analyze-scopes.d.ts +15 -0
- package/dist/core/hints/analyze-scopes.js +317 -0
- package/dist/core/hints/create-inferred-type.d.ts +12 -0
- package/dist/core/hints/create-inferred-type.js +5 -0
- package/dist/core/hints/create-syntactic-type-provider.d.ts +19 -0
- package/dist/core/hints/create-syntactic-type-provider.js +63 -0
- package/dist/core/hints/create-type-hints.d.ts +11 -0
- package/dist/core/hints/create-type-hints.js +21 -0
- package/dist/core/hints/find-this-class.d.ts +25 -0
- package/dist/core/hints/find-this-class.js +27 -0
- package/dist/core/hints/get-asserted-type.d.ts +9 -0
- package/dist/core/hints/get-asserted-type.js +5 -0
- package/dist/core/hints/infer-annotation-type.d.ts +14 -0
- package/dist/core/hints/infer-annotation-type.js +171 -0
- package/dist/core/hints/infer-binding-type.d.ts +13 -0
- package/dist/core/hints/infer-binding-type.js +93 -0
- package/dist/core/hints/infer-call-type.d.ts +14 -0
- package/dist/core/hints/infer-call-type.js +116 -0
- package/dist/core/hints/infer-expression-type.d.ts +12 -0
- package/dist/core/hints/infer-expression-type.js +104 -0
- package/dist/core/hints/infer-member-type.d.ts +13 -0
- package/dist/core/hints/infer-member-type.js +131 -0
- package/dist/core/hints/infer-operator-type.d.ts +18 -0
- package/dist/core/hints/infer-operator-type.js +103 -0
- package/dist/core/hints/infer-this-type.d.ts +16 -0
- package/dist/core/hints/infer-this-type.js +21 -0
- package/dist/core/hints/non-nullish-kinds.d.ts +5 -0
- package/dist/core/hints/non-nullish-kinds.js +12 -0
- package/dist/core/hints/object-kinds.d.ts +6 -0
- package/dist/core/hints/object-kinds.js +7 -0
- package/dist/core/hints/remove-nullish.d.ts +9 -0
- package/dist/core/hints/remove-nullish.js +5 -0
- package/dist/core/hints/union-inferred-types.d.ts +10 -0
- package/dist/core/hints/union-inferred-types.js +11 -0
- package/dist/core/hints/well-known-calls.d.ts +9 -0
- package/dist/core/hints/well-known-calls.js +100 -0
- package/dist/core/identity/assert-unique-ids.d.ts +12 -0
- package/dist/core/identity/assert-unique-ids.js +21 -0
- package/dist/core/identity/assign-mutant-ids.d.ts +16 -0
- package/dist/core/identity/assign-mutant-ids.js +26 -0
- package/dist/core/identity/create-mutant-id.d.ts +42 -0
- package/dist/core/identity/create-mutant-id.js +22 -0
- package/dist/core/identity/get-scope-path.d.ts +15 -0
- package/dist/core/identity/get-scope-path.js +69 -0
- package/dist/core/identity/resolve-mutant-ids.d.ts +15 -0
- package/dist/core/identity/resolve-mutant-ids.js +15 -0
- package/dist/core/ignore/create-ignore-rules.d.ts +35 -0
- package/dist/core/ignore/create-ignore-rules.js +83 -0
- package/dist/core/ignore/find-ignore-rule.d.ts +31 -0
- package/dist/core/ignore/find-ignore-rule.js +18 -0
- package/dist/core/ignore/parse-ignore-directives.d.ts +28 -0
- package/dist/core/ignore/parse-ignore-directives.js +72 -0
- package/dist/core/index.d.ts +31 -0
- package/dist/core/index.js +4 -0
- package/dist/core/instrument/check-svelte-compile.d.ts +16 -0
- package/dist/core/instrument/check-svelte-compile.js +15 -0
- package/dist/core/instrument/check-vue-compile.d.ts +18 -0
- package/dist/core/instrument/check-vue-compile.js +28 -0
- package/dist/core/instrument/create-switched-files.d.ts +52 -0
- package/dist/core/instrument/create-switched-files.js +52 -0
- package/dist/core/instrument/find-statement-starts.d.ts +26 -0
- package/dist/core/instrument/find-statement-starts.js +46 -0
- package/dist/core/instrument/get-site-check.d.ts +9 -0
- package/dist/core/instrument/get-site-check.js +5 -0
- package/dist/core/instrument/get-template-site-check.d.ts +12 -0
- package/dist/core/instrument/get-template-site-check.js +5 -0
- package/dist/core/instrument/group-mutant-ranges.d.ts +14 -0
- package/dist/core/instrument/group-mutant-ranges.js +24 -0
- package/dist/core/instrument/instrument-file.d.ts +39 -0
- package/dist/core/instrument/instrument-file.js +21 -0
- package/dist/core/instrument/instrumenter-version.d.ts +6 -0
- package/dist/core/instrument/render-mutant-range.d.ts +22 -0
- package/dist/core/instrument/render-mutant-range.js +18 -0
- package/dist/core/instrument/resolve-switched-text.d.ts +13 -0
- package/dist/core/instrument/resolve-switched-text.js +5 -0
- package/dist/core/list-mutants.d.ts +54 -0
- package/dist/core/list-mutants.js +27 -0
- package/dist/core/mutators/arithmetic-operator.d.ts +14 -0
- package/dist/core/mutators/arithmetic-operator.js +94 -0
- package/dist/core/mutators/array-element.d.ts +13 -0
- package/dist/core/mutators/array-element.js +35 -0
- package/dist/core/mutators/assignment-operator.d.ts +26 -0
- package/dist/core/mutators/assignment-operator.js +188 -0
- package/dist/core/mutators/bitwise-operator.d.ts +11 -0
- package/dist/core/mutators/bitwise-operator.js +48 -0
- package/dist/core/mutators/boolean-literal.d.ts +14 -0
- package/dist/core/mutators/boolean-literal.js +21 -0
- package/dist/core/mutators/comparison-operator.d.ts +6 -0
- package/dist/core/mutators/comparison-operator.js +16 -0
- package/dist/core/mutators/condition.d.ts +5 -0
- package/dist/core/mutators/condition.js +44 -0
- package/dist/core/mutators/logical-operator.d.ts +22 -0
- package/dist/core/mutators/logical-operator.js +53 -0
- package/dist/core/mutators/method-call.d.ts +21 -0
- package/dist/core/mutators/method-call.js +265 -0
- package/dist/core/mutators/missing-await.d.ts +17 -0
- package/dist/core/mutators/missing-await.js +144 -0
- package/dist/core/mutators/number-literal.d.ts +23 -0
- package/dist/core/mutators/number-literal.js +94 -0
- package/dist/core/mutators/object-property.d.ts +9 -0
- package/dist/core/mutators/object-property.js +19 -0
- package/dist/core/mutators/optional-chaining.d.ts +19 -0
- package/dist/core/mutators/optional-chaining.js +95 -0
- package/dist/core/mutators/regex-flag.d.ts +20 -0
- package/dist/core/mutators/regex-flag.js +86 -0
- package/dist/core/mutators/regex-pattern.d.ts +23 -0
- package/dist/core/mutators/regex-pattern.js +54 -0
- package/dist/core/mutators/return-value.d.ts +16 -0
- package/dist/core/mutators/return-value.js +216 -0
- package/dist/core/mutators/shared/create-run-context.d.ts +42 -0
- package/dist/core/mutators/shared/create-run-context.js +9 -0
- package/dist/core/mutators/shared/create-static-run-context.d.ts +12 -0
- package/dist/core/mutators/shared/create-static-run-context.js +9 -0
- package/dist/core/mutators/shared/distinguishes-nullish-swap.d.ts +32 -0
- package/dist/core/mutators/shared/distinguishes-nullish-swap.js +11 -0
- package/dist/core/mutators/shared/empties-callback.d.ts +15 -0
- package/dist/core/mutators/shared/empties-callback.js +6 -0
- package/dist/core/mutators/shared/get-branch-copy-skip.d.ts +24 -0
- package/dist/core/mutators/shared/get-branch-copy-skip.js +42 -0
- package/dist/core/mutators/shared/get-branch-pair.d.ts +33 -0
- package/dist/core/mutators/shared/get-branch-pair.js +33 -0
- package/dist/core/mutators/shared/get-call-target.d.ts +13 -0
- package/dist/core/mutators/shared/get-call-target.js +5 -0
- package/dist/core/mutators/shared/get-call-top.d.ts +12 -0
- package/dist/core/mutators/shared/get-call-top.js +5 -0
- package/dist/core/mutators/shared/get-callback-owner.d.ts +19 -0
- package/dist/core/mutators/shared/get-callback-owner.js +15 -0
- package/dist/core/mutators/shared/get-callback-result.d.ts +36 -0
- package/dist/core/mutators/shared/get-callback-result.js +15 -0
- package/dist/core/mutators/shared/get-canonical-falsy.d.ts +11 -0
- package/dist/core/mutators/shared/get-canonical-falsy.js +10 -0
- package/dist/core/mutators/shared/get-comparison-plan.d.ts +78 -0
- package/dist/core/mutators/shared/get-comparison-plan.js +383 -0
- package/dist/core/mutators/shared/get-condition-constants.d.ts +40 -0
- package/dist/core/mutators/shared/get-condition-constants.js +150 -0
- package/dist/core/mutators/shared/get-default-option-skip.d.ts +25 -0
- package/dist/core/mutators/shared/get-default-option-skip.js +89 -0
- package/dist/core/mutators/shared/get-fixed-truth.d.ts +15 -0
- package/dist/core/mutators/shared/get-fixed-truth.js +23 -0
- package/dist/core/mutators/shared/get-function-returns.d.ts +10 -0
- package/dist/core/mutators/shared/get-function-returns.js +7 -0
- package/dist/core/mutators/shared/get-group-constant.d.ts +32 -0
- package/dist/core/mutators/shared/get-group-constant.js +44 -0
- package/dist/core/mutators/shared/get-innermost.d.ts +22 -0
- package/dist/core/mutators/shared/get-innermost.js +11 -0
- package/dist/core/mutators/shared/get-leave-now-value.d.ts +17 -0
- package/dist/core/mutators/shared/get-leave-now-value.js +22 -0
- package/dist/core/mutators/shared/get-literal-flip.d.ts +18 -0
- package/dist/core/mutators/shared/get-literal-flip.js +10 -0
- package/dist/core/mutators/shared/get-literal-mutator.d.ts +10 -0
- package/dist/core/mutators/shared/get-literal-mutator.js +13 -0
- package/dist/core/mutators/shared/get-literal-skip.d.ts +38 -0
- package/dist/core/mutators/shared/get-literal-skip.js +61 -0
- package/dist/core/mutators/shared/get-literal-truth.d.ts +12 -0
- package/dist/core/mutators/shared/get-literal-truth.js +7 -0
- package/dist/core/mutators/shared/get-literal-value.d.ts +16 -0
- package/dist/core/mutators/shared/get-literal-value.js +23 -0
- package/dist/core/mutators/shared/get-logical-drops.d.ts +45 -0
- package/dist/core/mutators/shared/get-logical-drops.js +123 -0
- package/dist/core/mutators/shared/get-loop-running-skip.d.ts +9 -0
- package/dist/core/mutators/shared/get-loop-running-skip.js +7 -0
- package/dist/core/mutators/shared/get-negation-top.d.ts +25 -0
- package/dist/core/mutators/shared/get-negation-top.js +10 -0
- package/dist/core/mutators/shared/get-next-literal-value.d.ts +9 -0
- package/dist/core/mutators/shared/get-next-literal-value.js +9 -0
- package/dist/core/mutators/shared/get-nullish-directions.d.ts +32 -0
- package/dist/core/mutators/shared/get-nullish-directions.js +31 -0
- package/dist/core/mutators/shared/get-nullish-plan.d.ts +60 -0
- package/dist/core/mutators/shared/get-nullish-plan.js +94 -0
- package/dist/core/mutators/shared/get-nullish-swap-skip.d.ts +16 -0
- package/dist/core/mutators/shared/get-nullish-swap-skip.js +12 -0
- package/dist/core/mutators/shared/get-number-text.d.ts +16 -0
- package/dist/core/mutators/shared/get-number-text.js +19 -0
- package/dist/core/mutators/shared/get-or-default-skip.d.ts +18 -0
- package/dist/core/mutators/shared/get-or-default-skip.js +29 -0
- package/dist/core/mutators/shared/get-owned-constants.d.ts +17 -0
- package/dist/core/mutators/shared/get-owned-constants.js +39 -0
- package/dist/core/mutators/shared/get-owner-constant.d.ts +20 -0
- package/dist/core/mutators/shared/get-owner-constant.js +34 -0
- package/dist/core/mutators/shared/get-proven-comparison-value.d.ts +13 -0
- package/dist/core/mutators/shared/get-proven-comparison-value.js +24 -0
- package/dist/core/mutators/shared/get-return-switch.d.ts +33 -0
- package/dist/core/mutators/shared/get-return-switch.js +16 -0
- package/dist/core/mutators/shared/get-return-value-kind.d.ts +40 -0
- package/dist/core/mutators/shared/get-return-value-kind.js +47 -0
- package/dist/core/mutators/shared/get-returned-value.d.ts +10 -0
- package/dist/core/mutators/shared/get-returned-value.js +7 -0
- package/dist/core/mutators/shared/get-running-value.d.ts +31 -0
- package/dist/core/mutators/shared/get-running-value.js +25 -0
- package/dist/core/mutators/shared/get-shifted-literal.d.ts +25 -0
- package/dist/core/mutators/shared/get-shifted-literal.js +19 -0
- package/dist/core/mutators/shared/get-toward-mutant.d.ts +18 -0
- package/dist/core/mutators/shared/get-toward-mutant.js +66 -0
- package/dist/core/mutators/shared/get-type-view.d.ts +29 -0
- package/dist/core/mutators/shared/get-type-view.js +31 -0
- package/dist/core/mutators/shared/get-typeof-name.d.ts +10 -0
- package/dist/core/mutators/shared/get-typeof-name.js +20 -0
- package/dist/core/mutators/shared/has-defined-falsy-value.d.ts +10 -0
- package/dist/core/mutators/shared/has-defined-falsy-value.js +10 -0
- package/dist/core/mutators/shared/has-other-exit.d.ts +19 -0
- package/dist/core/mutators/shared/has-other-exit.js +56 -0
- package/dist/core/mutators/shared/has-polar-mutant.d.ts +34 -0
- package/dist/core/mutators/shared/has-polar-mutant.js +33 -0
- package/dist/core/mutators/shared/is-always-nullish.d.ts +9 -0
- package/dist/core/mutators/shared/is-always-nullish.js +5 -0
- package/dist/core/mutators/shared/is-always-truthy.d.ts +9 -0
- package/dist/core/mutators/shared/is-always-truthy.js +10 -0
- package/dist/core/mutators/shared/is-and-or.d.ts +11 -0
- package/dist/core/mutators/shared/is-and-or.js +4 -0
- package/dist/core/mutators/shared/is-boolean-mode-operand.d.ts +12 -0
- package/dist/core/mutators/shared/is-boolean-mode-operand.js +8 -0
- package/dist/core/mutators/shared/is-boolean-mode.d.ts +13 -0
- package/dist/core/mutators/shared/is-boolean-mode.js +10 -0
- package/dist/core/mutators/shared/is-boolean-result-source.d.ts +13 -0
- package/dist/core/mutators/shared/is-boolean-result-source.js +15 -0
- package/dist/core/mutators/shared/is-boolean-result.d.ts +13 -0
- package/dist/core/mutators/shared/is-boolean-result.js +5 -0
- package/dist/core/mutators/shared/is-boolean-valued.d.ts +13 -0
- package/dist/core/mutators/shared/is-boolean-valued.js +19 -0
- package/dist/core/mutators/shared/is-canonical-falsy.d.ts +13 -0
- package/dist/core/mutators/shared/is-canonical-falsy.js +8 -0
- package/dist/core/mutators/shared/is-comparator-result.d.ts +13 -0
- package/dist/core/mutators/shared/is-comparator-result.js +8 -0
- package/dist/core/mutators/shared/is-comparison-operand.d.ts +13 -0
- package/dist/core/mutators/shared/is-comparison-operand.js +7 -0
- package/dist/core/mutators/shared/is-comparison.d.ts +13 -0
- package/dist/core/mutators/shared/is-comparison.js +5 -0
- package/dist/core/mutators/shared/is-constant-eligible-group.d.ts +16 -0
- package/dist/core/mutators/shared/is-constant-eligible-group.js +15 -0
- package/dist/core/mutators/shared/is-expected-boolean.d.ts +14 -0
- package/dist/core/mutators/shared/is-expected-boolean.js +30 -0
- package/dist/core/mutators/shared/is-falsy-constant.d.ts +13 -0
- package/dist/core/mutators/shared/is-falsy-constant.js +11 -0
- package/dist/core/mutators/shared/is-global-identifier.d.ts +14 -0
- package/dist/core/mutators/shared/is-global-identifier.js +4 -0
- package/dist/core/mutators/shared/is-lookup-position.d.ts +14 -0
- package/dist/core/mutators/shared/is-lookup-position.js +10 -0
- package/dist/core/mutators/shared/is-negation.d.ts +10 -0
- package/dist/core/mutators/shared/is-negation.js +4 -0
- package/dist/core/mutators/shared/is-no-op-callback-constant.d.ts +15 -0
- package/dist/core/mutators/shared/is-no-op-callback-constant.js +10 -0
- package/dist/core/mutators/shared/is-no-op-callback-literal.d.ts +15 -0
- package/dist/core/mutators/shared/is-no-op-callback-literal.js +14 -0
- package/dist/core/mutators/shared/is-non-nullable.d.ts +10 -0
- package/dist/core/mutators/shared/is-non-nullable.js +5 -0
- package/dist/core/mutators/shared/is-non-number-type.d.ts +9 -0
- package/dist/core/mutators/shared/is-non-number-type.js +5 -0
- package/dist/core/mutators/shared/is-nullish-constant.d.ts +12 -0
- package/dist/core/mutators/shared/is-nullish-constant.js +12 -0
- package/dist/core/mutators/shared/is-number-literal.d.ts +9 -0
- package/dist/core/mutators/shared/is-number-literal.js +6 -0
- package/dist/core/mutators/shared/is-number-type.d.ts +10 -0
- package/dist/core/mutators/shared/is-number-type.js +9 -0
- package/dist/core/mutators/shared/is-numeric-pair.d.ts +11 -0
- package/dist/core/mutators/shared/is-numeric-pair.js +6 -0
- package/dist/core/mutators/shared/is-plain-return-value.d.ts +14 -0
- package/dist/core/mutators/shared/is-plain-return-value.js +15 -0
- package/dist/core/mutators/shared/is-tail-position.d.ts +16 -0
- package/dist/core/mutators/shared/is-tail-position.js +28 -0
- package/dist/core/mutators/shared/is-timer-wait.d.ts +15 -0
- package/dist/core/mutators/shared/is-timer-wait.js +5 -0
- package/dist/core/mutators/shared/is-truth-flipping-literal.d.ts +11 -0
- package/dist/core/mutators/shared/is-truth-flipping-literal.js +12 -0
- package/dist/core/mutators/shared/is-typed-by-method-name.d.ts +16 -0
- package/dist/core/mutators/shared/is-typed-by-method-name.js +26 -0
- package/dist/core/mutators/shared/is-void-operand.d.ts +12 -0
- package/dist/core/mutators/shared/is-void-operand.js +6 -0
- package/dist/core/mutators/shared/is-whole-body.d.ts +12 -0
- package/dist/core/mutators/shared/is-whole-body.js +5 -0
- package/dist/core/mutators/shared/leave-now-skip.d.ts +6 -0
- package/dist/core/mutators/shared/leave-now-skip.js +5 -0
- package/dist/core/mutators/shared/may-be-boolean.d.ts +9 -0
- package/dist/core/mutators/shared/may-be-boolean.js +6 -0
- package/dist/core/mutators/shared/may-be-nullish.d.ts +9 -0
- package/dist/core/mutators/shared/may-be-nullish.js +5 -0
- package/dist/core/mutators/shared/no-op-callback-skip.d.ts +6 -0
- package/dist/core/mutators/shared/no-op-callback-skip.js +5 -0
- package/dist/core/mutators/statement-removal.d.ts +23 -0
- package/dist/core/mutators/statement-removal.js +186 -0
- package/dist/core/mutators/string-literal.d.ts +27 -0
- package/dist/core/mutators/string-literal.js +138 -0
- package/dist/core/mutators/unary-operator.d.ts +14 -0
- package/dist/core/mutators/unary-operator.js +51 -0
- package/dist/core/mutators/update-operator.d.ts +13 -0
- package/dist/core/mutators/update-operator.js +29 -0
- package/dist/core/parser/collect-svelte-expressions.d.ts +19 -0
- package/dist/core/parser/collect-svelte-expressions.js +104 -0
- package/dist/core/parser/collect-vue-expressions.d.ts +22 -0
- package/dist/core/parser/collect-vue-expressions.js +69 -0
- package/dist/core/parser/create-comment-program.d.ts +19 -0
- package/dist/core/parser/create-comment-program.js +25 -0
- package/dist/core/parser/create-template-failure.d.ts +19 -0
- package/dist/core/parser/create-template-failure.js +19 -0
- package/dist/core/parser/find-vue-template.d.ts +10 -0
- package/dist/core/parser/find-vue-template.js +9 -0
- package/dist/core/parser/get-component-framework.d.ts +9 -0
- package/dist/core/parser/get-component-framework.js +5 -0
- package/dist/core/parser/get-parser-options.d.ts +9 -0
- package/dist/core/parser/get-parser-options.js +42 -0
- package/dist/core/parser/get-shared-scopes.d.ts +24 -0
- package/dist/core/parser/get-shared-scopes.js +8 -0
- package/dist/core/parser/get-source-blocks.d.ts +13 -0
- package/dist/core/parser/get-source-blocks.js +22 -0
- package/dist/core/parser/get-template-language.d.ts +11 -0
- package/dist/core/parser/get-template-language.js +4 -0
- package/dist/core/parser/is-declaration-file.d.ts +8 -0
- package/dist/core/parser/is-declaration-file.js +5 -0
- package/dist/core/parser/load-svelte-compiler.d.ts +9 -0
- package/dist/core/parser/load-svelte-compiler.js +13 -0
- package/dist/core/parser/load-vue-compiler.d.ts +10 -0
- package/dist/core/parser/load-vue-compiler.js +13 -0
- package/dist/core/parser/parse-component-template.d.ts +14 -0
- package/dist/core/parser/parse-component-template.js +8 -0
- package/dist/core/parser/parse-file.d.ts +34 -0
- package/dist/core/parser/parse-file.js +72 -0
- package/dist/core/parser/parse-svelte-template.d.ts +21 -0
- package/dist/core/parser/parse-svelte-template.js +17 -0
- package/dist/core/parser/parse-template-expressions.d.ts +60 -0
- package/dist/core/parser/parse-template-expressions.js +147 -0
- package/dist/core/parser/parse-vue-template.d.ts +20 -0
- package/dist/core/parser/parse-vue-template.js +20 -0
- package/dist/core/parser/read-template-program.d.ts +19 -0
- package/dist/core/parser/read-template-program.js +28 -0
- package/dist/core/parser/scan-script-blocks.d.ts +19 -0
- package/dist/core/parser/scan-script-blocks.js +267 -0
- package/dist/core/plugins/core-plugin.d.ts +6 -0
- package/dist/core/plugins/core-plugin.js +51 -0
- package/dist/core/plugins/create-mutator-registry.d.ts +17 -0
- package/dist/core/plugins/create-mutator-registry.js +31 -0
- package/dist/core/plugins/get-settings-problem.d.ts +9 -0
- package/dist/core/plugins/get-settings-problem.js +29 -0
- package/dist/core/plugins/is-kebab-case-name.d.ts +8 -0
- package/dist/core/plugins/is-kebab-case-name.js +5 -0
- package/dist/core/plugins/is-mutator-id.d.ts +9 -0
- package/dist/core/plugins/is-mutator-id.js +6 -0
- package/dist/core/plugins/is-mutator-setting.d.ts +9 -0
- package/dist/core/plugins/is-mutator-setting.js +5 -0
- package/dist/core/plugins/is-record.d.ts +8 -0
- package/dist/core/plugins/is-record.js +4 -0
- package/dist/core/plugins/resolve-preset.d.ts +31 -0
- package/dist/core/plugins/resolve-preset.js +60 -0
- package/dist/core/plugins/validate-plugin.d.ts +14 -0
- package/dist/core/plugins/validate-plugin.js +46 -0
- package/dist/core/presets/default-loggers.d.ts +6 -0
- package/dist/core/presets/default-loggers.js +8 -0
- package/dist/core/presets/recommended.d.ts +7 -0
- package/dist/core/presets/recommended.js +32 -0
- package/dist/core/presets/strict.d.ts +7 -0
- package/dist/core/presets/strict.js +28 -0
- package/dist/core/regex/can-match-empty.d.ts +14 -0
- package/dist/core/regex/can-match-empty.js +18 -0
- package/dist/core/regex/collect-pattern-changes.d.ts +24 -0
- package/dist/core/regex/collect-pattern-changes.js +133 -0
- package/dist/core/regex/compiles-regex.d.ts +9 -0
- package/dist/core/regex/compiles-regex.js +8 -0
- package/dist/core/regex/create-regex-replacement.d.ts +42 -0
- package/dist/core/regex/create-regex-replacement.js +36 -0
- package/dist/core/regex/create-regex-visitors.d.ts +15 -0
- package/dist/core/regex/create-regex-visitors.js +19 -0
- package/dist/core/regex/encode-pattern-text.d.ts +20 -0
- package/dist/core/regex/encode-pattern-text.js +25 -0
- package/dist/core/regex/find-open-repeat-scope.d.ts +26 -0
- package/dist/core/regex/find-open-repeat-scope.js +21 -0
- package/dist/core/regex/find-string-match-call.d.ts +15 -0
- package/dist/core/regex/find-string-match-call.js +12 -0
- package/dist/core/regex/get-regex-usage.d.ts +15 -0
- package/dist/core/regex/get-regex-usage.js +8 -0
- package/dist/core/regex/has-backreference.d.ts +10 -0
- package/dist/core/regex/has-backreference.js +8 -0
- package/dist/core/regex/has-capturing-group.d.ts +11 -0
- package/dist/core/regex/has-capturing-group.js +8 -0
- package/dist/core/regex/has-cased-character.d.ts +15 -0
- package/dist/core/regex/has-cased-character.js +29 -0
- package/dist/core/regex/has-named-group.d.ts +10 -0
- package/dist/core/regex/has-named-group.js +8 -0
- package/dist/core/regex/is-edge-wildcard.d.ts +20 -0
- package/dist/core/regex/is-edge-wildcard.js +10 -0
- package/dist/core/regex/is-mandatory-group.d.ts +16 -0
- package/dist/core/regex/is-mandatory-group.js +10 -0
- package/dist/core/regex/is-raw-template-text.d.ts +12 -0
- package/dist/core/regex/is-raw-template-text.js +13 -0
- package/dist/core/regex/is-valid-regex-literal.d.ts +14 -0
- package/dist/core/regex/is-valid-regex-literal.js +20 -0
- package/dist/core/regex/keeps-neighbor-tokens.d.ts +18 -0
- package/dist/core/regex/keeps-neighbor-tokens.js +29 -0
- package/dist/core/regex/load-regexpp.d.ts +15 -0
- package/dist/core/regex/load-regexpp.js +6 -0
- package/dist/core/regex/map-pattern-offsets.d.ts +11 -0
- package/dist/core/regex/map-pattern-offsets.js +9 -0
- package/dist/core/regex/map-string-units.d.ts +33 -0
- package/dist/core/regex/map-string-units.js +82 -0
- package/dist/core/regex/matches-any-character.d.ts +13 -0
- package/dist/core/regex/matches-any-character.js +22 -0
- package/dist/core/regex/parse-regex-pattern.d.ts +12 -0
- package/dist/core/regex/parse-regex-pattern.js +17 -0
- package/dist/core/regex/print-flags-edit.d.ts +33 -0
- package/dist/core/regex/print-flags-edit.js +38 -0
- package/dist/core/regex/print-pattern-edit.d.ts +34 -0
- package/dist/core/regex/print-pattern-edit.js +42 -0
- package/dist/core/regex/print-regex-literal.d.ts +9 -0
- package/dist/core/regex/print-regex-literal.js +4 -0
- package/dist/core/regex/read-regex-argument.d.ts +14 -0
- package/dist/core/regex/read-regex-argument.js +56 -0
- package/dist/core/regex/read-regex-call.d.ts +16 -0
- package/dist/core/regex/read-regex-call.js +27 -0
- package/dist/core/regex/read-regex-literal.d.ts +13 -0
- package/dist/core/regex/read-regex-literal.js +19 -0
- package/dist/core/regex/reads-regex-statics.d.ts +15 -0
- package/dist/core/regex/reads-regex-statics.js +5 -0
- package/dist/core/run/apply-batch-result.d.ts +40 -0
- package/dist/core/run/apply-batch-result.js +119 -0
- package/dist/core/run/apply-isolated-result.d.ts +34 -0
- package/dist/core/run/apply-isolated-result.js +61 -0
- package/dist/core/run/classify-mutants.d.ts +32 -0
- package/dist/core/run/classify-mutants.js +34 -0
- package/dist/core/run/classify-try.d.ts +20 -0
- package/dist/core/run/classify-try.js +28 -0
- package/dist/core/run/compare-dry-entries.d.ts +20 -0
- package/dist/core/run/compare-dry-entries.js +5 -0
- package/dist/core/run/compute-score.d.ts +11 -0
- package/dist/core/run/compute-score.js +11 -0
- package/dist/core/run/compute-static-cost.d.ts +11 -0
- package/dist/core/run/compute-static-cost.js +16 -0
- package/dist/core/run/count-run.d.ts +31 -0
- package/dist/core/run/count-run.js +19 -0
- package/dist/core/run/count-statuses.d.ts +11 -0
- package/dist/core/run/count-statuses.js +13 -0
- package/dist/core/run/count-verdicts.d.ts +16 -0
- package/dist/core/run/count-verdicts.js +32 -0
- package/dist/core/run/create-run-state.d.ts +67 -0
- package/dist/core/run/create-run-state.js +61 -0
- package/dist/core/run/create-work-directory.d.ts +21 -0
- package/dist/core/run/create-work-directory.js +14 -0
- package/dist/core/run/decide-evidence.d.ts +18 -0
- package/dist/core/run/decide-evidence.js +13 -0
- package/dist/core/run/decide-results.d.ts +20 -0
- package/dist/core/run/decide-results.js +45 -0
- package/dist/core/run/get-batch-unit-cost.d.ts +16 -0
- package/dist/core/run/get-batch-unit-cost.js +11 -0
- package/dist/core/run/get-display-path.d.ts +9 -0
- package/dist/core/run/get-display-path.js +5 -0
- package/dist/core/run/get-file-cost.d.ts +12 -0
- package/dist/core/run/get-file-cost.js +6 -0
- package/dist/core/run/get-final-status.d.ts +14 -0
- package/dist/core/run/get-final-status.js +8 -0
- package/dist/core/run/get-html-path.d.ts +19 -0
- package/dist/core/run/get-html-path.js +6 -0
- package/dist/core/run/get-package-directory.d.ts +9 -0
- package/dist/core/run/get-package-directory.js +12 -0
- package/dist/core/run/get-test-file-key.d.ts +15 -0
- package/dist/core/run/get-test-file-key.js +4 -0
- package/dist/core/run/get-try-limits.d.ts +18 -0
- package/dist/core/run/get-try-limits.js +8 -0
- package/dist/core/run/get-unit-evidence.d.ts +14 -0
- package/dist/core/run/get-unit-evidence.js +4 -0
- package/dist/core/run/index-module-tests.d.ts +15 -0
- package/dist/core/run/index-module-tests.js +11 -0
- package/dist/core/run/mark-outside-mutants.d.ts +14 -0
- package/dist/core/run/mark-outside-mutants.js +28 -0
- package/dist/core/run/number-chains.d.ts +8 -0
- package/dist/core/run/number-chains.js +8 -0
- package/dist/core/run/order-covering-tests.d.ts +15 -0
- package/dist/core/run/order-covering-tests.js +15 -0
- package/dist/core/run/plan-batch.d.ts +16 -0
- package/dist/core/run/plan-batch.js +48 -0
- package/dist/core/run/plan-isolated.d.ts +13 -0
- package/dist/core/run/plan-isolated.js +22 -0
- package/dist/core/run/preview-isolated-unit.d.ts +14 -0
- package/dist/core/run/preview-isolated-unit.js +17 -0
- package/dist/core/run/rank-module-files.d.ts +17 -0
- package/dist/core/run/rank-module-files.js +24 -0
- package/dist/core/run/rank-mutant-files.d.ts +21 -0
- package/dist/core/run/rank-mutant-files.js +26 -0
- package/dist/core/run/rank-test-file.d.ts +40 -0
- package/dist/core/run/rank-test-file.js +34 -0
- package/dist/core/run/read-dry-run.d.ts +20 -0
- package/dist/core/run/read-dry-run.js +53 -0
- package/dist/core/run/read-isolated-unit.d.ts +29 -0
- package/dist/core/run/read-isolated-unit.js +70 -0
- package/dist/core/run/read-test-imports.d.ts +12 -0
- package/dist/core/run/read-test-imports.js +26 -0
- package/dist/core/run/resolve-adapter.d.ts +34 -0
- package/dist/core/run/resolve-adapter.js +22 -0
- package/dist/core/run/route-isolated.d.ts +14 -0
- package/dist/core/run/route-isolated.js +6 -0
- package/dist/core/run/run-batch-phases.d.ts +16 -0
- package/dist/core/run/run-batch-phases.js +84 -0
- package/dist/core/run/run-dry-phase.d.ts +91 -0
- package/dist/core/run/run-dry-phase.js +204 -0
- package/dist/core/run/run-isolated-rounds.d.ts +26 -0
- package/dist/core/run/run-isolated-rounds.js +57 -0
- package/dist/core/run/select-run-files.d.ts +28 -0
- package/dist/core/run/select-run-files.js +30 -0
- package/dist/core/run/sort-test-files.d.ts +15 -0
- package/dist/core/run/sort-test-files.js +6 -0
- package/dist/core/run/sort-tests.d.ts +10 -0
- package/dist/core/run/sort-tests.js +5 -0
- package/dist/core/run/validate-adapter.d.ts +12 -0
- package/dist/core/run/validate-adapter.js +11 -0
- package/dist/core/run-mutants.d.ts +108 -0
- package/dist/core/run-mutants.js +326 -0
- package/dist/core/runtime/create-hit-limit-error.d.ts +9 -0
- package/dist/core/runtime/create-hit-limit-error.js +7 -0
- package/dist/core/runtime/index.d.ts +5 -0
- package/dist/core/runtime/index.js +5 -0
- package/dist/core/runtime/install-mutant-runtime.d.ts +13 -0
- package/dist/core/runtime/install-mutant-runtime.js +27 -0
- package/dist/core/runtime/is-hit-limit-error.d.ts +9 -0
- package/dist/core/runtime/is-hit-limit-error.js +4 -0
- package/dist/core/runtime/runtime-global.d.ts +5 -0
- package/dist/core/runtime/runtime-global.js +2 -0
- package/dist/core/runtime/runtime-symbol-key.d.ts +7 -0
- package/dist/core/runtime/runtime-symbol-key.js +2 -0
- package/dist/core/runtime/runtime-version.d.ts +6 -0
- package/dist/core/skips/skip-rules.d.ts +388 -0
- package/dist/core/skips/skip-rules.js +383 -0
- package/dist/core/syntax/advances-loop.d.ts +19 -0
- package/dist/core/syntax/advances-loop.js +62 -0
- package/dist/core/syntax/create-syntax-helpers.d.ts +49 -0
- package/dist/core/syntax/create-syntax-helpers.js +100 -0
- package/dist/core/syntax/find-compiler-pins.d.ts +18 -0
- package/dist/core/syntax/find-compiler-pins.js +79 -0
- package/dist/core/syntax/find-logging-calls.d.ts +21 -0
- package/dist/core/syntax/find-logging-calls.js +74 -0
- package/dist/core/syntax/find-message-texts.d.ts +13 -0
- package/dist/core/syntax/find-message-texts.js +10 -0
- package/dist/core/syntax/get-binding-closure.d.ts +36 -0
- package/dist/core/syntax/get-binding-closure.js +20 -0
- package/dist/core/syntax/get-chain-end.d.ts +12 -0
- package/dist/core/syntax/get-chain-end.js +6 -0
- package/dist/core/syntax/get-chain-root.d.ts +16 -0
- package/dist/core/syntax/get-chain-root.js +17 -0
- package/dist/core/syntax/get-checked-name.d.ts +19 -0
- package/dist/core/syntax/get-checked-name.js +9 -0
- package/dist/core/syntax/get-closed-initializer.d.ts +20 -0
- package/dist/core/syntax/get-closed-initializer.js +14 -0
- package/dist/core/syntax/get-collection-class.d.ts +28 -0
- package/dist/core/syntax/get-collection-class.js +34 -0
- package/dist/core/syntax/get-count-map.d.ts +18 -0
- package/dist/core/syntax/get-count-map.js +35 -0
- package/dist/core/syntax/get-enclosing-function.d.ts +12 -0
- package/dist/core/syntax/get-enclosing-function.js +8 -0
- package/dist/core/syntax/get-exited-loops.d.ts +25 -0
- package/dist/core/syntax/get-exited-loops.js +38 -0
- package/dist/core/syntax/get-fixed-initializer.d.ts +16 -0
- package/dist/core/syntax/get-fixed-initializer.js +7 -0
- package/dist/core/syntax/get-guard-bound.d.ts +28 -0
- package/dist/core/syntax/get-guard-bound.js +79 -0
- package/dist/core/syntax/get-logical-chain.d.ts +13 -0
- package/dist/core/syntax/get-logical-chain.js +10 -0
- package/dist/core/syntax/get-lower-bound.d.ts +12 -0
- package/dist/core/syntax/get-lower-bound.js +6 -0
- package/dist/core/syntax/get-match-regex.d.ts +26 -0
- package/dist/core/syntax/get-match-regex.js +48 -0
- package/dist/core/syntax/get-match-result-use.d.ts +29 -0
- package/dist/core/syntax/get-match-result-use.js +40 -0
- package/dist/core/syntax/get-member-path.d.ts +14 -0
- package/dist/core/syntax/get-member-path.js +30 -0
- package/dist/core/syntax/get-member-root.d.ts +12 -0
- package/dist/core/syntax/get-member-root.js +7 -0
- package/dist/core/syntax/get-named-groups-fact.d.ts +34 -0
- package/dist/core/syntax/get-named-groups-fact.js +44 -0
- package/dist/core/syntax/get-never-falsy-fact.d.ts +23 -0
- package/dist/core/syntax/get-never-falsy-fact.js +31 -0
- package/dist/core/syntax/get-result-slot.d.ts +14 -0
- package/dist/core/syntax/get-result-slot.js +7 -0
- package/dist/core/syntax/get-root-name.d.ts +10 -0
- package/dist/core/syntax/get-root-name.js +19 -0
- package/dist/core/syntax/get-statement-list.d.ts +14 -0
- package/dist/core/syntax/get-statement-list.js +13 -0
- package/dist/core/syntax/get-truth-only-name.d.ts +16 -0
- package/dist/core/syntax/get-truth-only-name.js +6 -0
- package/dist/core/syntax/get-value-bound.d.ts +48 -0
- package/dist/core/syntax/get-value-bound.js +192 -0
- package/dist/core/syntax/is-boolean-context.d.ts +20 -0
- package/dist/core/syntax/is-boolean-context.js +43 -0
- package/dist/core/syntax/is-caught-in-loop.d.ts +15 -0
- package/dist/core/syntax/is-caught-in-loop.js +19 -0
- package/dist/core/syntax/is-comparison-operator.d.ts +12 -0
- package/dist/core/syntax/is-comparison-operator.js +16 -0
- package/dist/core/syntax/is-condition-test.d.ts +12 -0
- package/dist/core/syntax/is-condition-test.js +7 -0
- package/dist/core/syntax/is-console-path.d.ts +11 -0
- package/dist/core/syntax/is-console-path.js +5 -0
- package/dist/core/syntax/is-effect-free.d.ts +11 -0
- package/dist/core/syntax/is-effect-free.js +20 -0
- package/dist/core/syntax/is-error-message.d.ts +17 -0
- package/dist/core/syntax/is-error-message.js +31 -0
- package/dist/core/syntax/is-for-each-result.d.ts +18 -0
- package/dist/core/syntax/is-for-each-result.js +12 -0
- package/dist/core/syntax/is-format-free.d.ts +14 -0
- package/dist/core/syntax/is-format-free.js +9 -0
- package/dist/core/syntax/is-function.d.ts +10 -0
- package/dist/core/syntax/is-function.js +9 -0
- package/dist/core/syntax/is-global-name.d.ts +20 -0
- package/dist/core/syntax/is-global-name.js +8 -0
- package/dist/core/syntax/is-global-type-name.d.ts +17 -0
- package/dist/core/syntax/is-global-type-name.js +13 -0
- package/dist/core/syntax/is-inside-try-block.d.ts +14 -0
- package/dist/core/syntax/is-inside-try-block.js +18 -0
- package/dist/core/syntax/is-joined-array.d.ts +21 -0
- package/dist/core/syntax/is-joined-array.js +27 -0
- package/dist/core/syntax/is-log-message.d.ts +18 -0
- package/dist/core/syntax/is-log-message.js +7 -0
- package/dist/core/syntax/is-logger-factory-call.d.ts +13 -0
- package/dist/core/syntax/is-logger-factory-call.js +21 -0
- package/dist/core/syntax/is-logger-label.d.ts +13 -0
- package/dist/core/syntax/is-logger-label.js +15 -0
- package/dist/core/syntax/is-logger-name.d.ts +11 -0
- package/dist/core/syntax/is-logger-name.js +8 -0
- package/dist/core/syntax/is-logging-call.d.ts +15 -0
- package/dist/core/syntax/is-logging-call.js +31 -0
- package/dist/core/syntax/is-logical-operand.d.ts +12 -0
- package/dist/core/syntax/is-logical-operand.js +5 -0
- package/dist/core/syntax/is-loop-advance-value.d.ts +20 -0
- package/dist/core/syntax/is-loop-advance-value.js +16 -0
- package/dist/core/syntax/is-loop-test.d.ts +12 -0
- package/dist/core/syntax/is-loop-test.js +7 -0
- package/dist/core/syntax/is-module-call.d.ts +12 -0
- package/dist/core/syntax/is-module-call.js +12 -0
- package/dist/core/syntax/is-non-thenable.d.ts +17 -0
- package/dist/core/syntax/is-non-thenable.js +18 -0
- package/dist/core/syntax/is-plain-message.d.ts +13 -0
- package/dist/core/syntax/is-plain-message.js +11 -0
- package/dist/core/syntax/is-presence-test.d.ts +16 -0
- package/dist/core/syntax/is-presence-test.js +19 -0
- package/dist/core/syntax/is-property-key.d.ts +13 -0
- package/dist/core/syntax/is-property-key.js +12 -0
- package/dist/core/syntax/is-read-chain.d.ts +12 -0
- package/dist/core/syntax/is-read-chain.js +13 -0
- package/dist/core/syntax/is-regex-only-tested.d.ts +23 -0
- package/dist/core/syntax/is-regex-only-tested.js +18 -0
- package/dist/core/syntax/is-result-unused.d.ts +19 -0
- package/dist/core/syntax/is-result-unused.js +13 -0
- package/dist/core/syntax/is-rune-call.d.ts +15 -0
- package/dist/core/syntax/is-rune-call.js +34 -0
- package/dist/core/syntax/is-statement.d.ts +9 -0
- package/dist/core/syntax/is-statement.js +5 -0
- package/dist/core/syntax/is-tested-loop.d.ts +9 -0
- package/dist/core/syntax/is-tested-loop.js +9 -0
- package/dist/core/syntax/is-timer-delay.d.ts +23 -0
- package/dist/core/syntax/is-timer-delay.js +39 -0
- package/dist/core/syntax/is-truth-test.d.ts +17 -0
- package/dist/core/syntax/is-truth-test.js +17 -0
- package/dist/core/syntax/is-value-position.d.ts +18 -0
- package/dist/core/syntax/is-value-position.js +83 -0
- package/dist/core/syntax/is-vue-macro-call.d.ts +11 -0
- package/dist/core/syntax/is-vue-macro-call.js +13 -0
- package/dist/core/syntax/is-write-target.d.ts +11 -0
- package/dist/core/syntax/is-write-target.js +15 -0
- package/dist/core/syntax/is-written-member.d.ts +13 -0
- package/dist/core/syntax/is-written-member.js +8 -0
- package/dist/core/syntax/never-empty-methods.d.ts +9 -0
- package/dist/core/syntax/never-empty-methods.js +8 -0
- package/dist/core/syntax/passes-truthiness.d.ts +13 -0
- package/dist/core/syntax/passes-truthiness.js +10 -0
- package/dist/core/syntax/read-import.d.ts +13 -0
- package/dist/core/syntax/read-import.js +19 -0
- package/dist/core/syntax/read-literal-type.d.ts +15 -0
- package/dist/core/syntax/read-literal-type.js +27 -0
- package/dist/core/syntax/read-number-literal.d.ts +9 -0
- package/dist/core/syntax/read-number-literal.js +6 -0
- package/dist/core/syntax/read-timer-call.d.ts +27 -0
- package/dist/core/syntax/read-timer-call.js +70 -0
- package/dist/core/syntax/resolve-closed-expression.d.ts +18 -0
- package/dist/core/syntax/resolve-closed-expression.js +9 -0
- package/dist/core/syntax/solve-value-bounds.d.ts +41 -0
- package/dist/core/syntax/solve-value-bounds.js +168 -0
- package/dist/core/text/blank-outside.d.ts +12 -0
- package/dist/core/text/blank-outside.js +10 -0
- package/dist/core/text/create-source-code.d.ts +16 -0
- package/dist/core/text/create-source-code.js +33 -0
- package/dist/core/text/edit-text.d.ts +17 -0
- package/dist/core/text/edit-text.js +12 -0
- package/dist/core/text/find-closest-name.d.ts +12 -0
- package/dist/core/text/find-closest-name.js +21 -0
- package/dist/core/text/find-last-start.d.ts +11 -0
- package/dist/core/text/find-last-start.js +9 -0
- package/dist/core/text/find-token-start.d.ts +14 -0
- package/dist/core/text/find-token-start.js +12 -0
- package/dist/core/text/get-line-starts.d.ts +8 -0
- package/dist/core/text/get-line-starts.js +7 -0
- package/dist/core/text/get-operator-range.d.ts +15 -0
- package/dist/core/text/get-operator-range.js +21 -0
- package/dist/core/text/get-source-position.d.ts +11 -0
- package/dist/core/text/get-source-position.js +9 -0
- package/dist/core/text/needs-grouping.d.ts +30 -0
- package/dist/core/text/needs-grouping.js +54 -0
- package/dist/core/text/needs-separator.d.ts +11 -0
- package/dist/core/text/needs-separator.js +15 -0
- package/dist/core/text/parse-expression.d.ts +16 -0
- package/dist/core/text/parse-expression.js +23 -0
- package/dist/core/text/pluralize.d.ts +8 -0
- package/dist/core/text/pluralize.js +4 -0
- package/dist/core/text/remove-list-element.d.ts +16 -0
- package/dist/core/text/remove-list-element.js +47 -0
- package/dist/core/text/replace-operator.d.ts +16 -0
- package/dist/core/text/replace-operator.js +82 -0
- package/dist/core/text/swap-string-quotes.d.ts +13 -0
- package/dist/core/text/swap-string-quotes.js +24 -0
- package/dist/core/tree/get-callee-name.d.ts +10 -0
- package/dist/core/tree/get-callee-name.js +6 -0
- package/dist/core/tree/get-context-slot.d.ts +14 -0
- package/dist/core/tree/get-context-slot.js +8 -0
- package/dist/core/tree/get-raw-slot.d.ts +13 -0
- package/dist/core/tree/get-raw-slot.js +6 -0
- package/dist/core/tree/get-slot.d.ts +14 -0
- package/dist/core/tree/get-slot.js +7 -0
- package/dist/core/tree/index-tree.d.ts +17 -0
- package/dist/core/tree/index-tree.js +56 -0
- package/dist/core/tree/is-expression-wrapper.d.ts +15 -0
- package/dist/core/tree/is-expression-wrapper.js +12 -0
- package/dist/core/tree/is-name-position.d.ts +10 -0
- package/dist/core/tree/is-name-position.js +17 -0
- package/dist/core/tree/unwrap-expression.d.ts +9 -0
- package/dist/core/tree/unwrap-expression.js +7 -0
- package/dist/core/tree/unwrap-parentheses.d.ts +9 -0
- package/dist/core/tree/unwrap-parentheses.js +6 -0
- package/dist/core/tree/walk-tree.d.ts +12 -0
- package/dist/core/tree/walk-tree.js +44 -0
- package/dist/docs/public/fonts/jetbrains-mono.js +2 -0
- package/dist/docs/public/fonts/sora-bold.js +2 -0
- package/dist/docs/public/fonts/sora-regular.js +2 -0
- package/dist/docs/styles/base.js +2 -0
- package/dist/docs/styles/colors.js +2 -0
- package/dist/docs/styles/fonts.js +2 -0
- package/dist/docs/styles/sizes.js +2 -0
- package/dist/docs/styles/spaces.js +2 -0
- package/dist/package.js +2 -0
- package/dist/types/adapter/adapter-context.d.ts +51 -0
- package/dist/types/adapter/adapter-session.d.ts +71 -0
- package/dist/types/adapter/batch-plan.d.ts +63 -0
- package/dist/types/adapter/batch-result.d.ts +80 -0
- package/dist/types/adapter/built-in-adapters.d.ts +31 -0
- package/dist/types/adapter/cache-inputs.d.ts +29 -0
- package/dist/types/adapter/dry-file.d.ts +83 -0
- package/dist/types/adapter/dry-run-request.d.ts +40 -0
- package/dist/types/adapter/dry-run-result.d.ts +53 -0
- package/dist/types/adapter/dry-test.d.ts +35 -0
- package/dist/types/adapter/isolated-plan.d.ts +42 -0
- package/dist/types/adapter/isolated-result.d.ts +84 -0
- package/dist/types/adapter/mutant-runtime.d.ts +40 -0
- package/dist/types/adapter/run-inputs.d.ts +20 -0
- package/dist/types/adapter/switched-file.d.ts +20 -0
- package/dist/types/adapter/test-adapter.d.ts +34 -0
- package/dist/types/adapter/try-facts.d.ts +63 -0
- package/dist/types/adapter/try-limits.d.ts +14 -0
- package/dist/types/adapter/unit-end.d.ts +25 -0
- package/dist/types/cache/cache-entry.d.ts +66 -0
- package/dist/types/cache/cached-inputs.d.ts +18 -0
- package/dist/types/cache/run-cache-file.d.ts +23 -0
- package/dist/types/cache/run-cache.d.ts +130 -0
- package/dist/types/cache/stored-cache.d.ts +16 -0
- package/dist/types/cli/line-part.d.ts +22 -0
- package/dist/types/cli/text-style.d.ts +21 -0
- package/dist/types/config/config.d.ts +36 -0
- package/dist/types/config/plugin.d.ts +17 -0
- package/dist/types/config/preset-settings.d.ts +43 -0
- package/dist/types/config/preset.d.ts +28 -0
- package/dist/types/config/run-config.d.ts +72 -0
- package/dist/types/config/run-settings.d.ts +38 -0
- package/dist/types/git/changed-lines.d.ts +15 -0
- package/dist/types/git/since-revision.d.ts +15 -0
- package/dist/types/hints/inferred-type.d.ts +19 -0
- package/dist/types/hints/type-hint-provider.d.ts +18 -0
- package/dist/types/hints/type-hints.d.ts +34 -0
- package/dist/types/hints/type-inference.d.ts +28 -0
- package/dist/types/hints/value-kind.d.ts +16 -0
- package/dist/types/html/file-view.d.ts +39 -0
- package/dist/types/html/indexed-file.d.ts +73 -0
- package/dist/types/html/indexed-mutant.d.ts +30 -0
- package/dist/types/html/indexed-mutator.d.ts +21 -0
- package/dist/types/html/indexed-skip.d.ts +31 -0
- package/dist/types/html/inline-script.d.ts +9 -0
- package/dist/types/html/mutants-filter.d.ts +26 -0
- package/dist/types/html/report-index.d.ts +49 -0
- package/dist/types/html/report-route.d.ts +48 -0
- package/dist/types/html/shown-change.d.ts +26 -0
- package/dist/types/html/tests-filter.d.ts +20 -0
- package/dist/types/mutant/diagnostic.d.ts +64 -0
- package/dist/types/mutant/file-mutants.d.ts +54 -0
- package/dist/types/mutant/ignore-directive.d.ts +46 -0
- package/dist/types/mutant/ignore-rule.d.ts +46 -0
- package/dist/types/mutant/ignore-source.d.ts +20 -0
- package/dist/types/mutant/mutant-candidate.d.ts +61 -0
- package/dist/types/mutant/mutant-range.d.ts +31 -0
- package/dist/types/mutant/mutant-status.d.ts +5 -0
- package/dist/types/mutant/mutant.d.ts +75 -0
- package/dist/types/mutant/skip-category.d.ts +16 -0
- package/dist/types/mutant/skip-justifier.d.ts +21 -0
- package/dist/types/mutant/skip-note.d.ts +30 -0
- package/dist/types/mutant/skip-rule-id.d.ts +6 -0
- package/dist/types/mutant/skip-rule.d.ts +17 -0
- package/dist/types/mutant/skipped-candidate.d.ts +65 -0
- package/dist/types/mutant/skipped-mutant.d.ts +71 -0
- package/dist/types/mutator/active-mutator.d.ts +10 -0
- package/dist/types/mutator/mutator-context.d.ts +58 -0
- package/dist/types/mutator/mutator-meta.d.ts +24 -0
- package/dist/types/mutator/mutator-registry.d.ts +16 -0
- package/dist/types/mutator/mutator-setting.d.ts +5 -0
- package/dist/types/mutator/mutator-visitors.d.ts +24 -0
- package/dist/types/mutator/mutator.d.ts +19 -0
- package/dist/types/mutator/regex-flag-options.d.ts +10 -0
- package/dist/types/mutator/regex-pattern-options.d.ts +28 -0
- package/dist/types/mutator/registered-mutator.d.ts +21 -0
- package/dist/types/mutator/replacement.d.ts +42 -0
- package/dist/types/regex/regex-call.d.ts +28 -0
- package/dist/types/regex/regex-change.d.ts +26 -0
- package/dist/types/regex/regex-source.d.ts +67 -0
- package/dist/types/report/file-score.d.ts +24 -0
- package/dist/types/report/html-report.d.ts +381 -0
- package/dist/types/report/list-report-diff.d.ts +28 -0
- package/dist/types/report/list-report-file.d.ts +20 -0
- package/dist/types/report/list-report-focus.d.ts +36 -0
- package/dist/types/report/list-report-justifier.d.ts +26 -0
- package/dist/types/report/list-report-mutant.d.ts +97 -0
- package/dist/types/report/list-report-mutator.d.ts +19 -0
- package/dist/types/report/list-report-skipped.d.ts +81 -0
- package/dist/types/report/list-report-summary.d.ts +46 -0
- package/dist/types/report/list-report.d.ts +66 -0
- package/dist/types/report/list-result.d.ts +39 -0
- package/dist/types/report/run-report.d.ts +336 -0
- package/dist/types/report/slim-list-report.d.ts +110 -0
- package/dist/types/report/slim-run-report.d.ts +196 -0
- package/dist/types/run/dry-analysis.d.ts +68 -0
- package/dist/types/run/isolated-evidence.d.ts +9 -0
- package/dist/types/run/isolated-reason.d.ts +25 -0
- package/dist/types/run/live-verdicts.d.ts +42 -0
- package/dist/types/run/module-cost.d.ts +25 -0
- package/dist/types/run/mutant-class.d.ts +28 -0
- package/dist/types/run/mutant-result.d.ts +82 -0
- package/dist/types/run/mutant-state.d.ts +131 -0
- package/dist/types/run/run-durations.d.ts +30 -0
- package/dist/types/run/run-event.d.ts +227 -0
- package/dist/types/run/run-kind.d.ts +10 -0
- package/dist/types/run/run-mode.d.ts +13 -0
- package/dist/types/run/run-result.d.ts +117 -0
- package/dist/types/run/run-score.d.ts +15 -0
- package/dist/types/run/run-state.d.ts +133 -0
- package/dist/types/run/run-status.d.ts +14 -0
- package/dist/types/run/status-counts.d.ts +5 -0
- package/dist/types/run/try-cause.d.ts +26 -0
- package/dist/types/run/try-verdict.d.ts +20 -0
- package/dist/types/source/component-framework.d.ts +4 -0
- package/dist/types/source/parse-settings.d.ts +23 -0
- package/dist/types/source/parsed-file.d.ts +49 -0
- package/dist/types/source/script-block.d.ts +26 -0
- package/dist/types/source/source-block.d.ts +12 -0
- package/dist/types/source/source-code.d.ts +101 -0
- package/dist/types/source/source-position.d.ts +14 -0
- package/dist/types/source/source-range.d.ts +14 -0
- package/dist/types/source/svelte-compiler.d.ts +7 -0
- package/dist/types/source/template-compilers.d.ts +17 -0
- package/dist/types/source/template-expression.d.ts +27 -0
- package/dist/types/source/template-outcome.d.ts +46 -0
- package/dist/types/source/template-parts.d.ts +17 -0
- package/dist/types/source/template-source.d.ts +20 -0
- package/dist/types/source/text-edit.d.ts +11 -0
- package/dist/types/source/vue-compiler.d.ts +7 -0
- package/dist/types/syntax/analyzed-program.d.ts +24 -0
- package/dist/types/syntax/binding-closure.d.ts +11 -0
- package/dist/types/syntax/binding.d.ts +53 -0
- package/dist/types/syntax/bound-evaluation.d.ts +33 -0
- package/dist/types/syntax/compiler-pin.d.ts +18 -0
- package/dist/types/syntax/count-map.d.ts +18 -0
- package/dist/types/syntax/imported-name.d.ts +15 -0
- package/dist/types/syntax/list-expression.d.ts +6 -0
- package/dist/types/syntax/literal-change.d.ts +27 -0
- package/dist/types/syntax/logging-call.d.ts +23 -0
- package/dist/types/syntax/match-regex.d.ts +18 -0
- package/dist/types/syntax/node-slot.d.ts +20 -0
- package/dist/types/syntax/operator-expression.d.ts +11 -0
- package/dist/types/syntax/read-check.d.ts +7 -0
- package/dist/types/syntax/scope-analysis.d.ts +42 -0
- package/dist/types/syntax/syntax-helpers.d.ts +292 -0
- package/dist/types/syntax/timer-call.d.ts +18 -0
- package/dist/types/syntax/timer-kind.d.ts +15 -0
- package/dist/types/syntax/tree-index.d.ts +18 -0
- package/dist/types/syntax/value-bound.d.ts +37 -0
- package/dist/types/syntax/value-bounds.d.ts +47 -0
- package/license.md +20 -0
- package/package.json +83 -6
- package/readme.md +132 -0
- package/skills/mootant/SKILL.md +232 -0
- package/skills/mootant/references/mutators.md +43 -0
- package/skills/readme.md +11 -0
- package/README.md +0 -45
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { RegexFlagOptions } from '../../types/mutator/regex-flag-options.js';
|
|
2
|
+
import { Mutator } from '../../types/mutator/mutator.js';
|
|
3
|
+
/**
|
|
4
|
+
* Removes a flag of a regular expression literal, or of a `RegExp` call whose
|
|
5
|
+
* pattern is a string, a template without expressions or a `String.raw`
|
|
6
|
+
* template and whose flags are absent or a literal: `i`, `m` or `s` anywhere,
|
|
7
|
+
* and `g` only in the first argument of a `.replace` or `.match` call, where it
|
|
8
|
+
* picks between the first match and all of them. With the `additions` option it
|
|
9
|
+
* also adds `i` to a pattern with cased characters and `g` to the pattern of a
|
|
10
|
+
* `.replace` call. Removing `i` without cased characters, `m` without anchors
|
|
11
|
+
* or `s` without `.`, removing or adding `g` in a `.replace` call whose pattern
|
|
12
|
+
* is anchored at the start or the end, and removing `g` from a `.match` call
|
|
13
|
+
* whose reads do not show it (see `getMatchSkip`), are skipped as equivalent.
|
|
14
|
+
* `u`, `v`, `y` and `d` are never changed, and `g` elsewhere is kept: removing
|
|
15
|
+
* it there is equivalent, throws in `matchAll` and `replaceAll`, or never ends
|
|
16
|
+
* a `while (re.exec(s))` loop. New flags of a call are printed as a string; a
|
|
17
|
+
* call without flags gets them as a second argument. A regular expression that
|
|
18
|
+
* does not compile is not changed.
|
|
19
|
+
*/
|
|
20
|
+
export declare let regexFlag: Mutator<RegexFlagOptions>;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { createRegexReplacement as e } from "../regex/create-regex-replacement.js";
|
|
2
|
+
import { findStringMatchCall as t } from "../regex/find-string-match-call.js";
|
|
3
|
+
import { createRegexVisitors as n } from "../regex/create-regex-visitors.js";
|
|
4
|
+
import { hasCapturingGroup as r } from "../regex/has-capturing-group.js";
|
|
5
|
+
import { hasCasedCharacter as i } from "../regex/has-cased-character.js";
|
|
6
|
+
import { getRegexUsage as a } from "../regex/get-regex-usage.js";
|
|
7
|
+
import { canMatchEmpty as o } from "../regex/can-match-empty.js";
|
|
8
|
+
import { loadRegexpp as s } from "../regex/load-regexpp.js";
|
|
9
|
+
const c = {
|
|
10
|
+
reason: "the pattern is anchored at the start or the end, so it matches at most once with or without g",
|
|
11
|
+
rule: "anchored-global"
|
|
12
|
+
}, l = {
|
|
13
|
+
reason: "only whether there is a match and the first match are read, and g changes neither",
|
|
14
|
+
rule: "unused-flag",
|
|
15
|
+
heuristic: !0
|
|
16
|
+
};
|
|
17
|
+
let u = {
|
|
18
|
+
meta: {
|
|
19
|
+
description: "Removes a flag of a regular expression (i, m, s, or g where it picks all matches).",
|
|
20
|
+
defaultOptions: { additions: !1 }
|
|
21
|
+
},
|
|
22
|
+
create(e) {
|
|
23
|
+
return n(e, (t) => t.dynamic ? [] : d(t, e));
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
function d(t, n) {
|
|
27
|
+
let { settings: r, options: o, syntax: s } = n, { expression: l, flags: u, tree: d } = t, h = a(l, s), g = i(d, u), _ = m(t), v = [];
|
|
28
|
+
function y(n, i) {
|
|
29
|
+
v.push(e(t, {
|
|
30
|
+
flags: n,
|
|
31
|
+
change: null,
|
|
32
|
+
skip: i
|
|
33
|
+
}, r));
|
|
34
|
+
}
|
|
35
|
+
function b(e) {
|
|
36
|
+
let r;
|
|
37
|
+
switch (e) {
|
|
38
|
+
case "g": return h === "replace" && p(t) ? c : h === "match" ? f(t, n) : null;
|
|
39
|
+
case "i":
|
|
40
|
+
r = g;
|
|
41
|
+
break;
|
|
42
|
+
case "m":
|
|
43
|
+
r = _.anchors;
|
|
44
|
+
break;
|
|
45
|
+
default: r = _.dots;
|
|
46
|
+
}
|
|
47
|
+
return r ? null : {
|
|
48
|
+
reason: `the pattern has nothing the ${e} flag changes`,
|
|
49
|
+
rule: "unused-flag"
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
for (let e of u) ("ims".includes(e) || e === "g" && h !== null) && y(u.replace(e, ""), b(e));
|
|
53
|
+
return o.additions && (g && !u.includes("i") && y(`${u}i`, null), h === "replace" && !u.includes("g") && y(`${u}g`, p(t) ? c : null)), v;
|
|
54
|
+
}
|
|
55
|
+
function f(e, n) {
|
|
56
|
+
let { expression: i, tree: a } = e, { syntax: o } = n, s = t(i, n), u = o.isBooleanContext(o.getContextSlot(i).parent) ? "first" : s && o.getMatchResultUse(s);
|
|
57
|
+
return !u || o.readsRegexStatics() ? null : u === "first" ? l : p(e) && !r(a) ? {
|
|
58
|
+
...c,
|
|
59
|
+
reason: `${c.reason}, and without capturing groups the length of the result is the same`
|
|
60
|
+
} : null;
|
|
61
|
+
}
|
|
62
|
+
function p(e) {
|
|
63
|
+
let { flags: t, tree: n } = e;
|
|
64
|
+
return t.includes("m") ? !1 : n.alternatives.every((e) => {
|
|
65
|
+
let [t] = e.elements;
|
|
66
|
+
return t?.type === "Assertion" && t.kind === "start";
|
|
67
|
+
}) || !o(n) && n.alternatives.every((e) => {
|
|
68
|
+
let t = e.elements.at(-1);
|
|
69
|
+
return t?.type === "Assertion" && t.kind === "end";
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
function m(e) {
|
|
73
|
+
let t = {
|
|
74
|
+
anchors: !1,
|
|
75
|
+
dots: !1
|
|
76
|
+
};
|
|
77
|
+
return s().visitRegExpAST(e.tree, {
|
|
78
|
+
onAssertionEnter(e) {
|
|
79
|
+
t.anchors ||= e.kind === "start" || e.kind === "end";
|
|
80
|
+
},
|
|
81
|
+
onCharacterSetEnter(e) {
|
|
82
|
+
t.dots ||= e.kind === "any";
|
|
83
|
+
}
|
|
84
|
+
}), t;
|
|
85
|
+
}
|
|
86
|
+
export { u as regexFlag };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { RegexPatternOptions } from '../../types/mutator/regex-pattern-options.js';
|
|
2
|
+
import { Mutator } from '../../types/mutator/mutator.js';
|
|
3
|
+
/**
|
|
4
|
+
* Changes the pattern of a regular expression literal, or of the string,
|
|
5
|
+
* template or `String.raw` argument of a `RegExp` call with known flags:
|
|
6
|
+
* removes `^`, `$`, `\b`, `\B`, a lookaround or an alternative, makes an
|
|
7
|
+
* optional element required, or widens a class or an escape to any character;
|
|
8
|
+
* the options add quantifier, class member and negation changes and removals
|
|
9
|
+
* from long alternations. In a template with expressions only an `^` at its
|
|
10
|
+
* start and a `$` at its end that follows written text other than a backslash
|
|
11
|
+
* are removed, since an expression just before the `$` may escape it, and they
|
|
12
|
+
* are never skipped as equivalent, since an expression may change the meaning
|
|
13
|
+
* of the tokens around it. Each mutant replaces the whole literal, written in
|
|
14
|
+
* the same form with the same quotes and escapes; reports show the changed part
|
|
15
|
+
* of the pattern. Removals of capturing groups, anchors next to an edge
|
|
16
|
+
* wildcard, widening of what already matches any character, changes of an upper
|
|
17
|
+
* bound that do not change whether the pattern or a lookaround matches (see
|
|
18
|
+
* `findOpenRepeatScope`), invalid regular expressions and, without the
|
|
19
|
+
* `timeouts` setting, patterns with `g` or `y` that start to match the empty
|
|
20
|
+
* string are skipped. A regular expression that does not compile is not
|
|
21
|
+
* changed.
|
|
22
|
+
*/
|
|
23
|
+
export declare let regexPattern: Mutator<RegexPatternOptions>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { createRegexReplacement as e } from "../regex/create-regex-replacement.js";
|
|
2
|
+
import { collectPatternChanges as t } from "../regex/collect-pattern-changes.js";
|
|
3
|
+
import { findStringMatchCall as n } from "../regex/find-string-match-call.js";
|
|
4
|
+
import { createRegexVisitors as r } from "../regex/create-regex-visitors.js";
|
|
5
|
+
const i = {
|
|
6
|
+
reason: "only whether the pattern matches is used, and with nothing required before or after the quantifier its upper bound does not change that",
|
|
7
|
+
rule: "unused-repeat",
|
|
8
|
+
heuristic: !0
|
|
9
|
+
};
|
|
10
|
+
let a = {
|
|
11
|
+
meta: {
|
|
12
|
+
description: "Removes an anchor, assertion or alternative of a regular expression, makes an optional part required, or widens a class to any character.",
|
|
13
|
+
defaultOptions: {
|
|
14
|
+
largeAlternations: !1,
|
|
15
|
+
classMembers: !1,
|
|
16
|
+
quantifiers: !1,
|
|
17
|
+
negations: !1
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
create(e) {
|
|
21
|
+
return r(e, (t) => o(t, e));
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
function o(n, r) {
|
|
25
|
+
let { pattern: i, flags: a } = n, { options: o } = r, l = t(n, o, o.quantifiers ? s(n, r) : null);
|
|
26
|
+
return n.dynamic && (l = l.filter((e) => c(e, i)).map((e) => ({
|
|
27
|
+
...e,
|
|
28
|
+
skip: null
|
|
29
|
+
}))), l.map((t) => e(n, {
|
|
30
|
+
change: {
|
|
31
|
+
start: t.start,
|
|
32
|
+
text: t.text,
|
|
33
|
+
end: t.end
|
|
34
|
+
},
|
|
35
|
+
skip: t.skip,
|
|
36
|
+
flags: a
|
|
37
|
+
}, r.settings));
|
|
38
|
+
}
|
|
39
|
+
function s(e, t) {
|
|
40
|
+
let { expression: r, flags: a } = e, { syntax: o } = t, s = o.isRegexOnlyTested(r, a);
|
|
41
|
+
if (!s && !a.includes("y")) {
|
|
42
|
+
let e = n(r, t);
|
|
43
|
+
s = e !== null && o.isPresenceTest(e);
|
|
44
|
+
}
|
|
45
|
+
return s && !o.readsRegexStatics() ? i : null;
|
|
46
|
+
}
|
|
47
|
+
function c(e, t) {
|
|
48
|
+
let { start: n, text: r, end: i } = e;
|
|
49
|
+
if (r !== "" || i - n !== 1) return !1;
|
|
50
|
+
if (n === 0) return t[0] === "^";
|
|
51
|
+
let a = t.slice(0, n);
|
|
52
|
+
return i === t.length && t[n] === "$" && !a.endsWith("\\") && !a.endsWith("(?:)");
|
|
53
|
+
}
|
|
54
|
+
export { a as regexPattern };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Mutator } from '../../types/mutator/mutator.js';
|
|
2
|
+
/**
|
|
3
|
+
* Replaces a returned value with an empty default ('', 0, false and true, [] or
|
|
4
|
+
* undefined), as catalog 4.14 states: the kind comes from the value's type or
|
|
5
|
+
* the return annotation; a function that returns `Promise<T>` without `async`
|
|
6
|
+
* gets `Promise.resolve` of an empty value that `T` allows in place of any
|
|
7
|
+
* value but that promise; literals, `undefined`, `void x`, `this`, functions,
|
|
8
|
+
* classes and logging calls are not replaced; a default that is already the
|
|
9
|
+
* value or that makes the comparator of an in-place `sort` a no-op (O12) is
|
|
10
|
+
* skipped. Every default but the boolean constants of a boolean kind is
|
|
11
|
+
* solitary (2.6); those constants are skipped when the owner of the result
|
|
12
|
+
* emits them (O19), when a returned comparison always has them (EQ) or while a
|
|
13
|
+
* mutant moves the result toward them (R6). Skipped mutants follow as skipped
|
|
14
|
+
* replacements.
|
|
15
|
+
*/
|
|
16
|
+
export declare let returnValue: Mutator;
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { getReturnValueKind as e } from "./shared/get-return-value-kind.js";
|
|
2
|
+
import { isPlainReturnValue as t } from "./shared/is-plain-return-value.js";
|
|
3
|
+
import { isGlobalIdentifier as n } from "./shared/is-global-identifier.js";
|
|
4
|
+
import { NO_OP_CALLBACK_SKIP as r } from "./shared/no-op-callback-skip.js";
|
|
5
|
+
import { getCallbackResult as i } from "./shared/get-callback-result.js";
|
|
6
|
+
import { getComparisonPlan as a } from "./shared/get-comparison-plan.js";
|
|
7
|
+
import { getOwnerConstant as o } from "./shared/get-owner-constant.js";
|
|
8
|
+
import { createRunContext as s } from "./shared/create-run-context.js";
|
|
9
|
+
import { getLiteralValue as c } from "./shared/get-literal-value.js";
|
|
10
|
+
import { getTowardMutant as l } from "./shared/get-toward-mutant.js";
|
|
11
|
+
import { emptiesCallback as u } from "./shared/empties-callback.js";
|
|
12
|
+
import { getMemberRoot as d } from "../syntax/get-member-root.js";
|
|
13
|
+
import { isComparison as f } from "./shared/is-comparison.js";
|
|
14
|
+
import { getInnermost as p } from "./shared/get-innermost.js";
|
|
15
|
+
let m = /* @__PURE__ */ new Set([
|
|
16
|
+
"const",
|
|
17
|
+
"let",
|
|
18
|
+
"var"
|
|
19
|
+
]), h = /* @__PURE__ */ new Set([
|
|
20
|
+
"TaggedTemplateExpression",
|
|
21
|
+
"AssignmentExpression",
|
|
22
|
+
"UpdateExpression",
|
|
23
|
+
"AwaitExpression",
|
|
24
|
+
"YieldExpression",
|
|
25
|
+
"CallExpression",
|
|
26
|
+
"NewExpression"
|
|
27
|
+
]), g = {
|
|
28
|
+
boolean: [{
|
|
29
|
+
text: "true",
|
|
30
|
+
value: !0
|
|
31
|
+
}, {
|
|
32
|
+
text: "false",
|
|
33
|
+
value: !1
|
|
34
|
+
}],
|
|
35
|
+
void: [{
|
|
36
|
+
value: void 0,
|
|
37
|
+
text: "void 0"
|
|
38
|
+
}],
|
|
39
|
+
null: [{
|
|
40
|
+
text: "null",
|
|
41
|
+
value: null
|
|
42
|
+
}],
|
|
43
|
+
bigint: [{
|
|
44
|
+
text: "0n",
|
|
45
|
+
value: 0n
|
|
46
|
+
}],
|
|
47
|
+
string: [{
|
|
48
|
+
text: "''",
|
|
49
|
+
value: ""
|
|
50
|
+
}],
|
|
51
|
+
array: [{
|
|
52
|
+
text: "[]",
|
|
53
|
+
value: []
|
|
54
|
+
}],
|
|
55
|
+
number: [{
|
|
56
|
+
text: "0",
|
|
57
|
+
value: 0
|
|
58
|
+
}]
|
|
59
|
+
}, _ = {
|
|
60
|
+
create(e) {
|
|
61
|
+
return {
|
|
62
|
+
ArrowFunctionExpression(t) {
|
|
63
|
+
return t.body.type === "BlockStatement" ? [] : v(t.body, e);
|
|
64
|
+
},
|
|
65
|
+
ReturnStatement(t) {
|
|
66
|
+
return t.argument ? v(t.argument, e) : [];
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
},
|
|
70
|
+
meta: { description: "Replaces a returned value with an empty default ('', 0, false and true, [] or undefined), or a promise of one." }
|
|
71
|
+
};
|
|
72
|
+
function v(n, a) {
|
|
73
|
+
let { syntax: o } = a, s = o.unwrapParentheses(n), c = o.unwrapExpression(s), l = e(s, a);
|
|
74
|
+
if (l === null || t(c, a)) return [];
|
|
75
|
+
let d = typeof l == "object" ? O(l, c, a) : b(l, c);
|
|
76
|
+
if (A(c, a)) return d.map((e) => ({
|
|
77
|
+
skip: {
|
|
78
|
+
reason: "it only replaces a returned logging call",
|
|
79
|
+
rule: "logging-call"
|
|
80
|
+
},
|
|
81
|
+
text: e.text,
|
|
82
|
+
node: s
|
|
83
|
+
}));
|
|
84
|
+
if (l === "void" && !E(c) && (!o.getEnclosingFunction(s)?.async || o.isNonThenable(c))) return [{
|
|
85
|
+
skip: {
|
|
86
|
+
reason: "the function returns void and the value has no effect to remove",
|
|
87
|
+
rule: "void-result"
|
|
88
|
+
},
|
|
89
|
+
text: "undefined",
|
|
90
|
+
node: s
|
|
91
|
+
}];
|
|
92
|
+
let f = i(s, a), p = l === "boolean" ? null : [s, ...C(c, a)];
|
|
93
|
+
return d.map((e) => {
|
|
94
|
+
let t = p ? {
|
|
95
|
+
text: e.text,
|
|
96
|
+
node: s,
|
|
97
|
+
solitary: p
|
|
98
|
+
} : {
|
|
99
|
+
text: e.text,
|
|
100
|
+
node: s
|
|
101
|
+
}, n = f && u(f.owner, e.value) ? r : null;
|
|
102
|
+
return !n && l === "boolean" && (n = y(s, e.value === !0, a)), n && (t.skip = n), t;
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
function y(e, t, n) {
|
|
106
|
+
let r = o(e, t, n);
|
|
107
|
+
if (r) return {
|
|
108
|
+
reason: `it makes the result ${t}, as ${r.mutator} does`,
|
|
109
|
+
rule: "O19",
|
|
110
|
+
by: r
|
|
111
|
+
};
|
|
112
|
+
let i = D(e, t, n);
|
|
113
|
+
if (i) return i;
|
|
114
|
+
let a = [e, ...k(n.syntax.unwrapExpression(e), n)], c = {
|
|
115
|
+
mutator: n.id,
|
|
116
|
+
node: e
|
|
117
|
+
}, u = s(n);
|
|
118
|
+
for (let e of a) {
|
|
119
|
+
let n = l({
|
|
120
|
+
decision: e,
|
|
121
|
+
candidate: c,
|
|
122
|
+
value: t
|
|
123
|
+
}, u);
|
|
124
|
+
if (n) return {
|
|
125
|
+
reason: `it makes the result ${t}, as ${n.mutator} does on some inputs`,
|
|
126
|
+
by: n,
|
|
127
|
+
rule: "R6"
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
return null;
|
|
131
|
+
}
|
|
132
|
+
function b(e, t) {
|
|
133
|
+
switch (e) {
|
|
134
|
+
case "boolean": return [{
|
|
135
|
+
text: "true",
|
|
136
|
+
value: !0
|
|
137
|
+
}, {
|
|
138
|
+
text: "false",
|
|
139
|
+
value: !1
|
|
140
|
+
}];
|
|
141
|
+
case "nullish": return [];
|
|
142
|
+
case "string": return c(t) === "" ? [] : [{
|
|
143
|
+
text: "''",
|
|
144
|
+
value: ""
|
|
145
|
+
}];
|
|
146
|
+
case "number": return [{
|
|
147
|
+
text: "0",
|
|
148
|
+
value: 0
|
|
149
|
+
}];
|
|
150
|
+
case "bigint": return [{
|
|
151
|
+
text: "0n",
|
|
152
|
+
value: 0n
|
|
153
|
+
}];
|
|
154
|
+
case "array": return t.type === "ArrayExpression" && t.elements.length === 0 ? [] : [{
|
|
155
|
+
text: "[]",
|
|
156
|
+
value: []
|
|
157
|
+
}];
|
|
158
|
+
default: return [{
|
|
159
|
+
text: "undefined",
|
|
160
|
+
value: void 0
|
|
161
|
+
}];
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
function x(e, t, r) {
|
|
165
|
+
return t === void 0 ? e.type === "UnaryExpression" && e.operator === "void" && r.syntax.unwrapExpression(e.argument).type === "Literal" || n(e, "undefined", r) : t === null ? e.type === "Literal" && e.raw === "null" : Array.isArray(t) ? e.type === "ArrayExpression" && e.elements.length === 0 : Object.is(c(e), t);
|
|
166
|
+
}
|
|
167
|
+
function S(e, t) {
|
|
168
|
+
if (e.type !== "CallExpression" || e.arguments.length > 1) return !1;
|
|
169
|
+
let { syntax: n } = t, r = n.unwrapExpression(e.callee);
|
|
170
|
+
if (r.type !== "MemberExpression" || r.computed || r.property.name !== "resolve") return !1;
|
|
171
|
+
let i = n.unwrapExpression(r.object);
|
|
172
|
+
return i.type === "Identifier" && i.name === "Promise";
|
|
173
|
+
}
|
|
174
|
+
function C(e, t) {
|
|
175
|
+
let n = w(e, t);
|
|
176
|
+
if (!n) return [];
|
|
177
|
+
let { init: r } = n.declaration, { syntax: i } = t, a = i.getEnclosingFunction(e);
|
|
178
|
+
return [...r ? [r] : [], ...n.writes.filter((e) => i.isRuntimeNode(e) && i.getEnclosingFunction(e) === a)];
|
|
179
|
+
}
|
|
180
|
+
function w(e, t) {
|
|
181
|
+
let { sourceCode: n, syntax: r } = t, i = d(e), a = n.getBinding(i);
|
|
182
|
+
return a && m.has(a.kind) && r.isRuntimeNode(a.declaration) && r.getEnclosingFunction(a.declaration) === r.getEnclosingFunction(e) ? a : null;
|
|
183
|
+
}
|
|
184
|
+
function T(e, t, n) {
|
|
185
|
+
if (!S(e, n)) return !1;
|
|
186
|
+
let [r] = e.arguments;
|
|
187
|
+
return r ? r.type !== "SpreadElement" && x(n.syntax.unwrapExpression(r), t, n) : t === void 0;
|
|
188
|
+
}
|
|
189
|
+
function E(e) {
|
|
190
|
+
switch (e.type) {
|
|
191
|
+
case "SequenceExpression": return e.expressions.some(E);
|
|
192
|
+
case "ChainExpression": return e.expression.type === "CallExpression";
|
|
193
|
+
case "UnaryExpression": return e.operator === "delete";
|
|
194
|
+
default: return h.has(e.type);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
function D(e, t, n) {
|
|
198
|
+
let { negations: r, node: i } = p(e);
|
|
199
|
+
if (!f(i)) return null;
|
|
200
|
+
let o = t !== (r % 2 == 1);
|
|
201
|
+
return a(i, n).skippedConstants.get(o) ?? null;
|
|
202
|
+
}
|
|
203
|
+
function O(e, t, n) {
|
|
204
|
+
return g[e.promise].filter((e) => !T(t, e.value, n)).map((e) => ({
|
|
205
|
+
text: `Promise.resolve(${e.text})`,
|
|
206
|
+
value: {}
|
|
207
|
+
}));
|
|
208
|
+
}
|
|
209
|
+
function k(e, t) {
|
|
210
|
+
return e.type === "Identifier" ? C(e, t).map((e) => e.type === "AssignmentExpression" && e.operator === "=" ? e.right : e) : [];
|
|
211
|
+
}
|
|
212
|
+
function A(e, t) {
|
|
213
|
+
let n = e.type === "ChainExpression" ? e.expression : e;
|
|
214
|
+
return n.type === "CallExpression" && t.syntax.isLoggingCall(n);
|
|
215
|
+
}
|
|
216
|
+
export { _ as returnValue };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Node } from 'oxc-parser';
|
|
2
|
+
import { MutatorContext } from '../../../types/mutator/mutator-context.js';
|
|
3
|
+
/**
|
|
4
|
+
* Mutator context with the test that decides whether a mutant justifies
|
|
5
|
+
* skipping a candidate. The shared plans take it, so one rule serves both the
|
|
6
|
+
* redundancy skips and the static ownership checks.
|
|
7
|
+
*/
|
|
8
|
+
export interface RunContext extends MutatorContext {
|
|
9
|
+
/**
|
|
10
|
+
* Tells whether a mutant counts as running when it justifies skipping a
|
|
11
|
+
* candidate.
|
|
12
|
+
*
|
|
13
|
+
* @param justifier - Mutant that would make the candidate redundant.
|
|
14
|
+
* @param candidate - Mutant whose skip is decided.
|
|
15
|
+
* @returns Whether the justifying mutant counts.
|
|
16
|
+
*/
|
|
17
|
+
runs(justifier: MutantSite, candidate: MutantSite): boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Mutant named by its mutator and the node it replaces.
|
|
21
|
+
*/
|
|
22
|
+
export interface MutantSite {
|
|
23
|
+
/**
|
|
24
|
+
* Id of the mutator.
|
|
25
|
+
*/
|
|
26
|
+
mutator: string;
|
|
27
|
+
/**
|
|
28
|
+
* Node the mutant replaces.
|
|
29
|
+
*/
|
|
30
|
+
node: Node;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Adds the test of the redundancy rules to a mutator context (catalog 2.7): a
|
|
34
|
+
* justifying mutant counts when it will run, or when its mutator is enabled and
|
|
35
|
+
* the candidate itself is ignored, so that an ignore comment never adds or
|
|
36
|
+
* removes an ignored entry. A justifying mutant that only changes a log message
|
|
37
|
+
* never counts, since it is skipped (see `isLogMessage`).
|
|
38
|
+
*
|
|
39
|
+
* @param context - Mutator context of the file.
|
|
40
|
+
* @returns The context with the test of mutants that will run.
|
|
41
|
+
*/
|
|
42
|
+
export declare function createRunContext(context: MutatorContext): RunContext;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MutatorContext } from '../../../types/mutator/mutator-context.js';
|
|
2
|
+
import { RunContext } from './create-run-context.js';
|
|
3
|
+
/**
|
|
4
|
+
* Adds a test to a mutator context under which every mutant counts as running
|
|
5
|
+
* (catalog 5.2, O19): an ownership skip is judged with every mutator enabled
|
|
6
|
+
* and without ignore comments, so it never depends on the preset or on
|
|
7
|
+
* comments.
|
|
8
|
+
*
|
|
9
|
+
* @param context - Mutator context of the file.
|
|
10
|
+
* @returns The context with a test that always holds.
|
|
11
|
+
*/
|
|
12
|
+
export declare function createStaticRunContext(context: MutatorContext): RunContext;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Node } from 'oxc-parser';
|
|
2
|
+
import { TypeHints } from '../../../types/hints/type-hints.js';
|
|
3
|
+
/**
|
|
4
|
+
* Operands of `??`, `||`, `??=` or `||=`.
|
|
5
|
+
*/
|
|
6
|
+
interface NullishOperands {
|
|
7
|
+
/**
|
|
8
|
+
* Default value.
|
|
9
|
+
*/
|
|
10
|
+
right: Node;
|
|
11
|
+
/**
|
|
12
|
+
* Value or assignment target that decides whether the default applies.
|
|
13
|
+
*/
|
|
14
|
+
left: Node;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Tells whether `??` and `||` give different results for some falsy value of
|
|
18
|
+
* the left side that is not nullish and not already the default (catalog 3.3,
|
|
19
|
+
* `swapDistinguishes`). A string, number, BigInt or boolean left side differs
|
|
20
|
+
* unless the default is its only falsy value. An unknown left side differs when
|
|
21
|
+
* the default is a string, number, BigInt or boolean other than `''`, `false`
|
|
22
|
+
* and `0n`, because the default reveals the type of the slot (`0` is kept). The
|
|
23
|
+
* `always` mode also accepts a number with the default `0` and an unknown left
|
|
24
|
+
* side with a default that is not an object.
|
|
25
|
+
*
|
|
26
|
+
* @param operands - Left side and default of the expression.
|
|
27
|
+
* @param hints - Type hints of the file.
|
|
28
|
+
* @param mode - The `nullishSwap` option of the mutator.
|
|
29
|
+
* @returns Whether the swap between `??` and `||` changes the behavior.
|
|
30
|
+
*/
|
|
31
|
+
export declare function distinguishesNullishSwap(operands: NullishOperands, hints: TypeHints, mode: 'distinguishing' | 'always'): boolean;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { hasDefinedFalsyValue as e } from "./has-defined-falsy-value.js";
|
|
2
|
+
import { isCanonicalFalsy as t } from "./is-canonical-falsy.js";
|
|
3
|
+
import { getTypeView as n } from "./get-type-view.js";
|
|
4
|
+
function r(r, i, a) {
|
|
5
|
+
let { right: o, left: s } = r, c = i.getType(s), l = n(c);
|
|
6
|
+
if (e(c)) return !t(l.type, o) || a === "always" && l.type === "number";
|
|
7
|
+
if (l.type !== "unknown") return !1;
|
|
8
|
+
let u = n(i.getType(o));
|
|
9
|
+
return a === "always" ? u.type !== "function" && u.type !== "object" && u.type !== "array" : e(i.getType(o)) && (u.type === "number" || !t(u.type, o));
|
|
10
|
+
}
|
|
11
|
+
export { r as distinguishesNullishSwap };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CallbackOwner } from './get-callback-owner.js';
|
|
2
|
+
/**
|
|
3
|
+
* Tells whether a result makes a comparator a no-op (catalog 2.2, O12): a
|
|
4
|
+
* result that compares as `0` (`Number(value)` is `0` or `NaN`, as for `0`,
|
|
5
|
+
* `false`, `''`, `[]`, `null` and `undefined`) makes a stable `sort` keep the
|
|
6
|
+
* order, so it returns its receiver as if the call were removed. `toSorted`
|
|
7
|
+
* returns a copy, which removing the call does not, so no result of its
|
|
8
|
+
* comparator is the same as the removal; neither is a constant `filter`
|
|
9
|
+
* predicate, whose call also returns a new array.
|
|
10
|
+
*
|
|
11
|
+
* @param owner - Method that calls the comparator.
|
|
12
|
+
* @param value - Result the comparator would return for every call.
|
|
13
|
+
* @returns Whether the call then behaves as if it were removed.
|
|
14
|
+
*/
|
|
15
|
+
export declare function emptiesCallback(owner: CallbackOwner, value: unknown): boolean;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Node } from 'oxc-parser';
|
|
2
|
+
import { LiteralChange } from '../../../types/syntax/literal-change.js';
|
|
3
|
+
import { SkipNote } from '../../../types/mutant/skip-note.js';
|
|
4
|
+
import { RunContext } from './create-run-context.js';
|
|
5
|
+
/**
|
|
6
|
+
* Decides whether a literal mutant of a branch is skipped because it forces the
|
|
7
|
+
* test of its branch pair (catalog 4.5, 4.11, 4.16; 5.2 O19 and 5.3 R5). A
|
|
8
|
+
* mutant that gives the branch the value (or, for a template with expressions,
|
|
9
|
+
* the text) of the other branch makes both branches alike, which is the test
|
|
10
|
+
* forced to a constant: skipped statically when the test's owner emits that
|
|
11
|
+
* constant, otherwise while a mutant that will run moves the test toward it. A
|
|
12
|
+
* flipped boolean branch next to a boolean-valued branch (or any branch of a
|
|
13
|
+
* pair in a boolean context or a boolean result) is subsumed the same way by a
|
|
14
|
+
* mutant that moves the test toward the other branch. In the statement forms
|
|
15
|
+
* the boolean result is judged on the other branch, whose kind the literal
|
|
16
|
+
* itself cannot decide. A skipped mutant comes with its rule.
|
|
17
|
+
*
|
|
18
|
+
* @param node - Literal that a literal mutator would replace.
|
|
19
|
+
* @param replacement - New value of the literal, or new text of a template with
|
|
20
|
+
* expressions.
|
|
21
|
+
* @param context - Mutator context with the test of mutants that will run.
|
|
22
|
+
* @returns Rule and reason of the skip, or null when the mutant is emitted.
|
|
23
|
+
*/
|
|
24
|
+
export declare function getBranchCopySkip(node: Node, replacement: LiteralChange, context: RunContext): SkipNote | null;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { isExpectedBoolean as e } from "./is-expected-boolean.js";
|
|
2
|
+
import { getLiteralMutator as t } from "./get-literal-mutator.js";
|
|
3
|
+
import { getOwnerConstant as n } from "./get-owner-constant.js";
|
|
4
|
+
import { isBooleanResult as r } from "./is-boolean-result.js";
|
|
5
|
+
import { isBooleanValued as i } from "./is-boolean-valued.js";
|
|
6
|
+
import { getLiteralValue as a } from "./get-literal-value.js";
|
|
7
|
+
import { getTowardMutant as o } from "./get-toward-mutant.js";
|
|
8
|
+
import { getBranchPair as s } from "./get-branch-pair.js";
|
|
9
|
+
function c(c, l, u) {
|
|
10
|
+
let d = s(c, u);
|
|
11
|
+
if (!d) return null;
|
|
12
|
+
let { forced: f, other: p, test: m } = d, h = {
|
|
13
|
+
candidate: {
|
|
14
|
+
mutator: t(c),
|
|
15
|
+
node: c
|
|
16
|
+
},
|
|
17
|
+
decision: m,
|
|
18
|
+
value: f
|
|
19
|
+
}, g = a(p);
|
|
20
|
+
if ("value" in l ? g === l.value : u.sourceCode.getText(p) === l.text) {
|
|
21
|
+
let e = n(m, f, u);
|
|
22
|
+
if (e) return {
|
|
23
|
+
reason: `it copies the other branch, which is the test forced to ${f}, as ${e.mutator} does`,
|
|
24
|
+
rule: "O19",
|
|
25
|
+
by: e
|
|
26
|
+
};
|
|
27
|
+
let t = o(h, u);
|
|
28
|
+
return t ? {
|
|
29
|
+
reason: `it copies the other branch, which is the test forced to ${f}, as ${t.mutator} does on some inputs`,
|
|
30
|
+
by: t,
|
|
31
|
+
rule: "R5"
|
|
32
|
+
} : null;
|
|
33
|
+
}
|
|
34
|
+
if (g !== null || typeof a(c) != "boolean") return null;
|
|
35
|
+
let { parent: _ } = u.syntax.getContextSlot(c), v = i(p, u) || (_?.type === "ConditionalExpression" ? u.syntax.isBooleanContext(_) || e(_, u) || r(_, u) : r(p, u)) ? o(h, u) : null;
|
|
36
|
+
return v ? {
|
|
37
|
+
reason: `next to a boolean-valued branch it acts like the test forced to ${f}, as ${v.mutator} does on some inputs`,
|
|
38
|
+
by: v,
|
|
39
|
+
rule: "R5"
|
|
40
|
+
} : null;
|
|
41
|
+
}
|
|
42
|
+
export { c as getBranchCopySkip };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Node } from 'oxc-parser';
|
|
2
|
+
import { MutatorContext } from '../../../types/mutator/mutator-context.js';
|
|
3
|
+
/**
|
|
4
|
+
* Two branches chosen by one test, seen from one of them.
|
|
5
|
+
*/
|
|
6
|
+
export interface BranchPair {
|
|
7
|
+
/**
|
|
8
|
+
* The test forced to this value gives every input the other branch: false
|
|
9
|
+
* when the node is the branch taken on true, true otherwise.
|
|
10
|
+
*/
|
|
11
|
+
forced: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* The other branch, without parentheses.
|
|
14
|
+
*/
|
|
15
|
+
other: Node;
|
|
16
|
+
/**
|
|
17
|
+
* Test of the pair, without parentheses.
|
|
18
|
+
*/
|
|
19
|
+
test: Node;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Finds the branch pair of a node (catalog 2.2): the node is, through wrappers,
|
|
23
|
+
* a branch of `t ? A : B`, or the argument of a `return` in `if (t) return A`
|
|
24
|
+
* directly followed by `return B` in the same statement list, or in `if (t)
|
|
25
|
+
* return A; else return B` (each branch the `return` itself or a block that
|
|
26
|
+
* holds only it). A mutant that gives the node the value of the other branch
|
|
27
|
+
* forces the test to a constant.
|
|
28
|
+
*
|
|
29
|
+
* @param node - Node of the runtime tree.
|
|
30
|
+
* @param context - Mutator context of the file.
|
|
31
|
+
* @returns The other branch, the test and the forced value, or null.
|
|
32
|
+
*/
|
|
33
|
+
export declare function getBranchPair(node: Node, context: MutatorContext): BranchPair | null;
|