@whaaaley/crush 0.0.0-stage → 0.2.6
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/LICENSE +32 -0
- package/README.md +185 -2
- package/SKILL.md +187 -0
- package/THIRD_PARTY_NOTICES.md +277 -0
- package/dist/capture/capture.operations.d.ts +23 -0
- package/dist/capture/capture.operations.js +231 -0
- package/dist/capture/capture.schema.d.ts +73 -0
- package/dist/capture/capture.schema.js +28 -0
- package/dist/collapse/collapse.operations.d.ts +2 -0
- package/dist/collapse/collapse.operations.js +82 -0
- package/dist/collapse/collapse.schema.d.ts +40 -0
- package/dist/collapse/collapse.schema.js +35 -0
- package/dist/crush.tables.d.ts +3583 -0
- package/dist/crush.tables.js +456 -0
- package/dist/crushes/callback.crush.d.ts +2 -0
- package/dist/crushes/callback.crush.js +19 -0
- package/dist/crushes/crush.d.ts +36 -0
- package/dist/crushes/crush.js +12 -0
- package/dist/crushes/crush.names.d.ts +1 -0
- package/dist/crushes/crush.names.js +2 -0
- package/dist/crushes/crushes.d.ts +2 -0
- package/dist/crushes/crushes.js +9 -0
- package/dist/crushes/default-value.crush.d.ts +2 -0
- package/dist/crushes/default-value.crush.js +29 -0
- package/dist/crushes/drop-operand.crush.d.ts +2 -0
- package/dist/crushes/drop-operand.crush.js +37 -0
- package/dist/crushes/fold.d.ts +64 -0
- package/dist/crushes/fold.js +366 -0
- package/dist/crushes/force-fork.crush.d.ts +2 -0
- package/dist/crushes/force-fork.crush.js +79 -0
- package/dist/crushes/loop-once.crush.d.ts +2 -0
- package/dist/crushes/loop-once.crush.js +71 -0
- package/dist/crushes/optional-chain.crush.d.ts +2 -0
- package/dist/crushes/optional-chain.crush.js +30 -0
- package/dist/crushes/switch-case.crush.d.ts +2 -0
- package/dist/crushes/switch-case.crush.js +19 -0
- package/dist/decisions/decide.d.ts +61 -0
- package/dist/decisions/decide.js +161 -0
- package/dist/decisions/decisions.d.ts +24 -0
- package/dist/decisions/decisions.js +62 -0
- package/dist/decisions/forks.decision.d.ts +4 -0
- package/dist/decisions/forks.decision.js +32 -0
- package/dist/decisions/kinds.d.ts +101 -0
- package/dist/decisions/kinds.js +38 -0
- package/dist/decisions/loops.decision.d.ts +4 -0
- package/dist/decisions/loops.decision.js +39 -0
- package/dist/decisions/shorts.decision.d.ts +3 -0
- package/dist/decisions/shorts.decision.js +66 -0
- package/dist/decisions/switches.decision.d.ts +3 -0
- package/dist/decisions/switches.decision.js +20 -0
- package/dist/decisions/throws.decision.d.ts +3 -0
- package/dist/decisions/throws.decision.js +35 -0
- package/dist/decisions/values.decision.d.ts +3 -0
- package/dist/decisions/values.decision.js +67 -0
- package/dist/explore/edges/explore.d.ts +60 -0
- package/dist/explore/edges/explore.db.d.ts +22 -0
- package/dist/explore/edges/explore.db.js +55 -0
- package/dist/explore/edges/explore.js +305 -0
- package/dist/explore/edges/random.d.ts +2 -0
- package/dist/explore/edges/random.js +32 -0
- package/dist/explore/explore.operations.d.ts +30 -0
- package/dist/explore/explore.operations.js +117 -0
- package/dist/explore/limits.operations.d.ts +14 -0
- package/dist/explore/limits.operations.js +20 -0
- package/dist/explore/targets.operations.d.ts +36 -0
- package/dist/explore/targets.operations.js +32 -0
- package/dist/explore/utils/draws.d.ts +6 -0
- package/dist/explore/utils/draws.js +2 -0
- package/dist/explore/utils/edits.d.ts +15 -0
- package/dist/explore/utils/edits.js +151 -0
- package/dist/explore/utils/guide.d.ts +23 -0
- package/dist/explore/utils/guide.js +35 -0
- package/dist/explore/utils/keep.d.ts +10 -0
- package/dist/explore/utils/keep.js +61 -0
- package/dist/explore/utils/pools.d.ts +17 -0
- package/dist/explore/utils/pools.js +121 -0
- package/dist/explore/utils/reads.d.ts +19 -0
- package/dist/explore/utils/reads.js +118 -0
- package/dist/explore/utils/twin.d.ts +21 -0
- package/dist/explore/utils/twin.js +55 -0
- package/dist/forks/forks.operations.d.ts +32 -0
- package/dist/forks/forks.operations.js +134 -0
- package/dist/forks/forks.schema.d.ts +20 -0
- package/dist/forks/forks.schema.js +14 -0
- package/dist/graph/cfg/cfg.d.ts +28 -0
- package/dist/graph/cfg/cfg.js +31 -0
- package/dist/graph/cfg/code-paths/analyzer.d.ts +27 -0
- package/dist/graph/cfg/code-paths/analyzer.js +358 -0
- package/dist/graph/cfg/code-paths/segments.d.ts +44 -0
- package/dist/graph/cfg/code-paths/segments.js +105 -0
- package/dist/graph/cfg/code-paths/state.d.ts +121 -0
- package/dist/graph/cfg/code-paths/state.js +611 -0
- package/dist/graph/cfg/entries.d.ts +13 -0
- package/dist/graph/cfg/entries.js +120 -0
- package/dist/graph/cfg/functions.d.ts +6 -0
- package/dist/graph/cfg/functions.js +47 -0
- package/dist/graph/cfg/paths.d.ts +27 -0
- package/dist/graph/cfg/paths.js +91 -0
- package/dist/graph/cfg/scopes/scopes.d.ts +40 -0
- package/dist/graph/cfg/scopes/scopes.js +375 -0
- package/dist/graph/symbols/file.d.ts +90 -0
- package/dist/graph/symbols/file.js +427 -0
- package/dist/graph/symbols/keys.d.ts +13 -0
- package/dist/graph/symbols/keys.js +22 -0
- package/dist/graph/symbols/resolve.operations.d.ts +4 -0
- package/dist/graph/symbols/resolve.operations.js +33 -0
- package/dist/graph/symbols/symbols.d.ts +12 -0
- package/dist/graph/symbols/symbols.js +155 -0
- package/dist/graph/symbols/symbols.schema.d.ts +32 -0
- package/dist/graph/symbols/symbols.schema.js +19 -0
- package/dist/graph/unused/tests.d.ts +7 -0
- package/dist/graph/unused/tests.js +95 -0
- package/dist/graph/unused/unused.d.ts +53 -0
- package/dist/graph/unused/unused.js +319 -0
- package/dist/graph/walk/walk.d.ts +7 -0
- package/dist/graph/walk/walk.js +39 -0
- package/dist/instrument/instrument.operations.d.ts +72 -0
- package/dist/instrument/instrument.operations.js +786 -0
- package/dist/instrument/instrument.schema.d.ts +257 -0
- package/dist/instrument/instrument.schema.js +100 -0
- package/dist/judge/counters.d.ts +86 -0
- package/dist/judge/counters.js +402 -0
- package/dist/judge/edges/api.d.ts +14 -0
- package/dist/judge/edges/api.js +80 -0
- package/dist/judge/edges/completion.reporter.d.ts +9 -0
- package/dist/judge/edges/completion.reporter.js +51 -0
- package/dist/judge/edges/hints.reporter.d.ts +13 -0
- package/dist/judge/edges/hints.reporter.js +29 -0
- package/dist/judge/edges/judge.edges.d.ts +52 -0
- package/dist/judge/edges/judge.edges.js +59 -0
- package/dist/judge/edges/judge.fs.d.ts +8 -0
- package/dist/judge/edges/judge.fs.js +45 -0
- package/dist/judge/edges/merge.d.ts +11 -0
- package/dist/judge/edges/merge.js +60 -0
- package/dist/judge/edges/plugin.d.ts +132 -0
- package/dist/judge/edges/plugin.js +441 -0
- package/dist/judge/edges/reach.d.ts +68 -0
- package/dist/judge/edges/reach.js +132 -0
- package/dist/judge/edges/speed.d.ts +32 -0
- package/dist/judge/edges/speed.js +34 -0
- package/dist/judge/edges/strays.d.ts +1 -0
- package/dist/judge/edges/strays.js +14 -0
- package/dist/judge/edges/vitest.d.ts +20 -0
- package/dist/judge/edges/vitest.js +36 -0
- package/dist/judge/edges/vitest.schema.d.ts +14 -0
- package/dist/judge/edges/vitest.schema.js +16 -0
- package/dist/judge/explore.test.d.ts +1 -0
- package/dist/judge/explore.test.js +101 -0
- package/dist/judge/hints.d.ts +11 -0
- package/dist/judge/hints.js +44 -0
- package/dist/judge/judge.operations.d.ts +218 -0
- package/dist/judge/judge.operations.js +464 -0
- package/dist/judge/judge.schema.d.ts +135 -0
- package/dist/judge/judge.schema.js +129 -0
- package/dist/judge/judge.shard-1.test.d.ts +1 -0
- package/dist/judge/judge.shard-1.test.js +3 -0
- package/dist/judge/judge.shard-2.test.d.ts +1 -0
- package/dist/judge/judge.shard-2.test.js +3 -0
- package/dist/judge/judge.test.d.ts +1 -0
- package/dist/judge/judge.test.js +3 -0
- package/dist/judge/refusals.d.ts +14 -0
- package/dist/judge/refusals.js +10 -0
- package/dist/judge/report.test.d.ts +1 -0
- package/dist/judge/report.test.js +432 -0
- package/dist/judge/runner.d.ts +3 -0
- package/dist/judge/runner.js +1602 -0
- package/dist/judge/stresses.test.d.ts +1 -0
- package/dist/judge/stresses.test.js +12 -0
- package/dist/judge/task-meta.d.ts +51 -0
- package/dist/judge/task-meta.js +3 -0
- package/dist/justify/edges/load.d.ts +7 -0
- package/dist/justify/edges/load.js +40 -0
- package/dist/justify/edges/refresh.fs.d.ts +8 -0
- package/dist/justify/edges/refresh.fs.js +15 -0
- package/dist/justify/justify.operations.d.ts +46 -0
- package/dist/justify/justify.operations.js +80 -0
- package/dist/justify/justify.schema.d.ts +21 -0
- package/dist/justify/justify.schema.js +11 -0
- package/dist/mutators/arithmetic-operator.mutator.d.ts +2 -0
- package/dist/mutators/arithmetic-operator.mutator.js +22 -0
- package/dist/mutators/array-declaration.mutator.d.ts +2 -0
- package/dist/mutators/array-declaration.mutator.js +12 -0
- package/dist/mutators/arrow-function.mutator.d.ts +2 -0
- package/dist/mutators/arrow-function.mutator.js +10 -0
- package/dist/mutators/assignment-operator.mutator.d.ts +2 -0
- package/dist/mutators/assignment-operator.mutator.js +29 -0
- package/dist/mutators/await-expression.mutator.d.ts +2 -0
- package/dist/mutators/await-expression.mutator.js +7 -0
- package/dist/mutators/bitwise-operator.mutator.d.ts +2 -0
- package/dist/mutators/bitwise-operator.mutator.js +19 -0
- package/dist/mutators/block-statement.mutator.d.ts +2 -0
- package/dist/mutators/block-statement.mutator.js +30 -0
- package/dist/mutators/boolean-literal.mutator.d.ts +2 -0
- package/dist/mutators/boolean-literal.mutator.js +5 -0
- package/dist/mutators/coercion.mutator.d.ts +2 -0
- package/dist/mutators/coercion.mutator.js +28 -0
- package/dist/mutators/conditional-expression.mutator.d.ts +2 -0
- package/dist/mutators/conditional-expression.mutator.js +36 -0
- package/dist/mutators/disposal.mutator.d.ts +2 -0
- package/dist/mutators/disposal.mutator.js +13 -0
- package/dist/mutators/empty-destructuring.mutator.d.ts +2 -0
- package/dist/mutators/empty-destructuring.mutator.js +35 -0
- package/dist/mutators/empty-return.mutator.d.ts +2 -0
- package/dist/mutators/empty-return.mutator.js +35 -0
- package/dist/mutators/equality-operator.mutator.d.ts +2 -0
- package/dist/mutators/equality-operator.mutator.js +16 -0
- package/dist/mutators/loop-exit.mutator.d.ts +2 -0
- package/dist/mutators/loop-exit.mutator.js +5 -0
- package/dist/mutators/method-expression.mutator.d.ts +2 -0
- package/dist/mutators/method-expression.mutator.js +59 -0
- package/dist/mutators/missing-lookup.mutator.d.ts +2 -0
- package/dist/mutators/missing-lookup.mutator.js +25 -0
- package/dist/mutators/mutator.d.ts +40 -0
- package/dist/mutators/mutator.js +49 -0
- package/dist/mutators/mutator.names.d.ts +3 -0
- package/dist/mutators/mutator.names.js +43 -0
- package/dist/mutators/mutators.d.ts +8 -0
- package/dist/mutators/mutators.js +84 -0
- package/dist/mutators/nested-condition.mutator.d.ts +2 -0
- package/dist/mutators/nested-condition.mutator.js +16 -0
- package/dist/mutators/number-literal.mutator.d.ts +3 -0
- package/dist/mutators/number-literal.mutator.js +13 -0
- package/dist/mutators/object-literal.mutator.d.ts +2 -0
- package/dist/mutators/object-literal.mutator.js +6 -0
- package/dist/mutators/odd-number.mutator.d.ts +2 -0
- package/dist/mutators/odd-number.mutator.js +15 -0
- package/dist/mutators/operand-deletion.mutator.d.ts +2 -0
- package/dist/mutators/operand-deletion.mutator.js +9 -0
- package/dist/mutators/outcome.mutator.d.ts +3 -0
- package/dist/mutators/outcome.mutator.js +45 -0
- package/dist/mutators/plain-assignment.mutator.d.ts +2 -0
- package/dist/mutators/plain-assignment.mutator.js +7 -0
- package/dist/mutators/power-operator.mutator.d.ts +2 -0
- package/dist/mutators/power-operator.mutator.js +13 -0
- package/dist/mutators/private-brand.mutator.d.ts +2 -0
- package/dist/mutators/private-brand.mutator.js +7 -0
- package/dist/mutators/regex.mutator.d.ts +2 -0
- package/dist/mutators/regex.mutator.js +29 -0
- package/dist/mutators/short-iteration.mutator.d.ts +2 -0
- package/dist/mutators/short-iteration.mutator.js +8 -0
- package/dist/mutators/string-literal.mutator.d.ts +3 -0
- package/dist/mutators/string-literal.mutator.js +149 -0
- package/dist/mutators/switch-default.mutator.d.ts +2 -0
- package/dist/mutators/switch-default.mutator.js +13 -0
- package/dist/mutators/sync-iteration.mutator.d.ts +3 -0
- package/dist/mutators/sync-iteration.mutator.js +9 -0
- package/dist/mutators/thrown-call.mutator.d.ts +2 -0
- package/dist/mutators/thrown-call.mutator.js +7 -0
- package/dist/mutators/unary-operator.mutator.d.ts +2 -0
- package/dist/mutators/unary-operator.mutator.js +18 -0
- package/dist/mutators/unbound-call.mutator.d.ts +2 -0
- package/dist/mutators/unbound-call.mutator.js +14 -0
- package/dist/mutators/update-operator.mutator.d.ts +2 -0
- package/dist/mutators/update-operator.mutator.js +15 -0
- package/dist/mutators/yield-value.mutator.d.ts +2 -0
- package/dist/mutators/yield-value.mutator.js +7 -0
- package/dist/parity/compare.d.ts +27 -0
- package/dist/parity/compare.js +26 -0
- package/dist/parity/corpus.parity.d.ts +1 -0
- package/dist/parity/corpus.parity.js +97 -0
- package/dist/parity/edges/corpus.fs.d.ts +3 -0
- package/dist/parity/edges/corpus.fs.js +30 -0
- package/dist/parity/edges/ports.d.ts +2 -0
- package/dist/parity/edges/ports.js +21 -0
- package/dist/parity/edges/vitest.d.ts +2 -0
- package/dist/parity/edges/vitest.js +3 -0
- package/dist/parity/parity.operations.d.ts +33 -0
- package/dist/parity/parity.operations.js +60 -0
- package/dist/parity/parity.schema.d.ts +5 -0
- package/dist/parity/parity.schema.js +6 -0
- package/dist/parity/stryker/compare.d.ts +14 -0
- package/dist/parity/stryker/compare.js +52 -0
- package/dist/parity/stryker/edges/ports.d.ts +12 -0
- package/dist/parity/stryker/edges/ports.js +28 -0
- package/dist/parity/stryker/equivalence.d.ts +1 -0
- package/dist/parity/stryker/equivalence.js +42 -0
- package/dist/parity/stryker/intended.d.ts +29 -0
- package/dist/parity/stryker/intended.js +152 -0
- package/dist/parity/stryker/normalize.d.ts +27 -0
- package/dist/parity/stryker/normalize.js +181 -0
- package/dist/parity/stryker/rules.d.ts +6 -0
- package/dist/parity/stryker/rules.js +116 -0
- package/dist/parity/stryker/sides.d.ts +46 -0
- package/dist/parity/stryker/sides.js +199 -0
- package/dist/parity/stryker/stryker.parity.d.ts +1 -0
- package/dist/parity/stryker/stryker.parity.js +147 -0
- package/dist/parity/stryker/stryker.schema.d.ts +6 -0
- package/dist/parity/stryker/stryker.schema.js +7 -0
- package/dist/parity/views.d.ts +21 -0
- package/dist/parity/views.js +119 -0
- package/dist/questions/questions.operations.d.ts +110 -0
- package/dist/questions/questions.operations.js +446 -0
- package/dist/questions/questions.schema.d.ts +57 -0
- package/dist/questions/questions.schema.js +28 -0
- package/dist/record/edges/calls.db.d.ts +10 -0
- package/dist/record/edges/calls.db.js +91 -0
- package/dist/record/edges/hits.db.d.ts +3 -0
- package/dist/record/edges/hits.db.js +5 -0
- package/dist/record/edges/holds.db.d.ts +4 -0
- package/dist/record/edges/holds.db.js +31 -0
- package/dist/record/edges/judged-state.db.d.ts +5 -0
- package/dist/record/edges/judged-state.db.js +25 -0
- package/dist/record/edges/markers.db.d.ts +11 -0
- package/dist/record/edges/markers.db.js +55 -0
- package/dist/record/edges/merge.db.d.ts +7 -0
- package/dist/record/edges/merge.db.js +46 -0
- package/dist/record/edges/parts.db.d.ts +42 -0
- package/dist/record/edges/parts.db.js +389 -0
- package/dist/record/edges/parts.edges.d.ts +2 -0
- package/dist/record/edges/parts.edges.js +7 -0
- package/dist/record/edges/parts.fs.d.ts +1 -0
- package/dist/record/edges/parts.fs.js +11 -0
- package/dist/record/edges/parts.writer.d.ts +1 -0
- package/dist/record/edges/parts.writer.js +85 -0
- package/dist/record/edges/passes.db.d.ts +19 -0
- package/dist/record/edges/passes.db.js +31 -0
- package/dist/record/edges/plan.db.d.ts +21 -0
- package/dist/record/edges/plan.db.js +174 -0
- package/dist/record/edges/reach.db.d.ts +6 -0
- package/dist/record/edges/reach.db.js +62 -0
- package/dist/record/edges/record.db.d.ts +22 -0
- package/dist/record/edges/record.db.js +176 -0
- package/dist/record/edges/record.fs.d.ts +3 -0
- package/dist/record/edges/record.fs.js +7 -0
- package/dist/record/edges/site-verdicts.db.d.ts +11 -0
- package/dist/record/edges/site-verdicts.db.js +66 -0
- package/dist/record/edges/verified.db.d.ts +7 -0
- package/dist/record/edges/verified.db.js +71 -0
- package/dist/record/parts.operations.d.ts +26 -0
- package/dist/record/parts.operations.js +31 -0
- package/dist/record/path-checks.operations.d.ts +15 -0
- package/dist/record/path-checks.operations.js +84 -0
- package/dist/record/record.operations.d.ts +36 -0
- package/dist/record/record.operations.js +11 -0
- package/dist/stresses/edges/stresses.record.d.ts +4 -0
- package/dist/stresses/edges/stresses.record.js +37 -0
- package/dist/stresses/stresses.operations.d.ts +28 -0
- package/dist/stresses/stresses.operations.js +22 -0
- package/dist/utils/ast.d.ts +55 -0
- package/dist/utils/ast.js +181 -0
- package/dist/utils/errors.d.ts +8 -0
- package/dist/utils/errors.js +12 -0
- package/dist/utils/faults.d.ts +6 -0
- package/dist/utils/faults.js +10 -0
- package/dist/utils/lookup.d.ts +4 -0
- package/dist/utils/lookup.js +27 -0
- package/dist/utils/order.d.ts +2 -0
- package/dist/utils/order.js +17 -0
- package/dist/utils/retry.d.ts +14 -0
- package/dist/utils/retry.js +15 -0
- package/dist/utils/safe.d.ts +11 -0
- package/dist/utils/safe.js +31 -0
- package/migrations/main/20261129123324_initial/migration.sql +418 -0
- package/migrations/main/20261129123324_initial/snapshot.json +3641 -0
- package/package.json +89 -4
- package/references/consumer-setup.md +92 -0
- package/src/graph/cfg/code-paths/LICENSE +21 -0
- package/src/graph/cfg/scopes/LICENSE +24 -0
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
CREATE TABLE `candidate_edits` (
|
|
2
|
+
`id` integer PRIMARY KEY,
|
|
3
|
+
`candidate` integer NOT NULL,
|
|
4
|
+
`start_at` integer NOT NULL,
|
|
5
|
+
`end_at` integer NOT NULL,
|
|
6
|
+
CONSTRAINT `fk_candidate_edits_candidate_candidates_id_fk` FOREIGN KEY (`candidate`) REFERENCES `candidates`(`id`) ON DELETE CASCADE
|
|
7
|
+
);
|
|
8
|
+
--> statement-breakpoint
|
|
9
|
+
CREATE TABLE `candidates` (
|
|
10
|
+
`id` integer PRIMARY KEY,
|
|
11
|
+
`site` integer NOT NULL,
|
|
12
|
+
`point` integer NOT NULL,
|
|
13
|
+
`forced` text NOT NULL,
|
|
14
|
+
`start_at` integer NOT NULL,
|
|
15
|
+
CONSTRAINT `fk_candidates_site_sites_id_fk` FOREIGN KEY (`site`) REFERENCES `sites`(`id`) ON DELETE CASCADE,
|
|
16
|
+
CONSTRAINT "candidates_forced_check" CHECK("forced" in ('true', 'false', 'once'))
|
|
17
|
+
);
|
|
18
|
+
--> statement-breakpoint
|
|
19
|
+
CREATE TABLE `entries` (
|
|
20
|
+
`test` integer NOT NULL,
|
|
21
|
+
`unit` text NOT NULL,
|
|
22
|
+
CONSTRAINT `entries_pk` PRIMARY KEY(`test`, `unit`),
|
|
23
|
+
CONSTRAINT `fk_entries_test_test_runs_id_fk` FOREIGN KEY (`test`) REFERENCES `test_runs`(`id`) ON DELETE CASCADE
|
|
24
|
+
);
|
|
25
|
+
--> statement-breakpoint
|
|
26
|
+
CREATE TABLE `explore_findings` (
|
|
27
|
+
`finding_key` text NOT NULL,
|
|
28
|
+
`kind` text NOT NULL,
|
|
29
|
+
`file` text NOT NULL,
|
|
30
|
+
`line` integer NOT NULL,
|
|
31
|
+
`function` text NOT NULL,
|
|
32
|
+
`input` text NOT NULL,
|
|
33
|
+
`target` text NOT NULL,
|
|
34
|
+
`source_hash` text NOT NULL,
|
|
35
|
+
CONSTRAINT `explore_findings_pk` PRIMARY KEY(`target`, `finding_key`),
|
|
36
|
+
CONSTRAINT "explore_findings_kind_check" CHECK("kind" in ('throw', 'property'))
|
|
37
|
+
);
|
|
38
|
+
--> statement-breakpoint
|
|
39
|
+
CREATE TABLE `explore_runs` (
|
|
40
|
+
`target_key` text PRIMARY KEY,
|
|
41
|
+
`ms` integer NOT NULL,
|
|
42
|
+
`explored_at` integer NOT NULL,
|
|
43
|
+
`stopped` text
|
|
44
|
+
);
|
|
45
|
+
--> statement-breakpoint
|
|
46
|
+
CREATE TABLE `export_call_steps` (
|
|
47
|
+
`call` integer NOT NULL,
|
|
48
|
+
`step` integer NOT NULL,
|
|
49
|
+
`site` integer NOT NULL,
|
|
50
|
+
`side` text NOT NULL,
|
|
51
|
+
`passes` integer NOT NULL,
|
|
52
|
+
CONSTRAINT `export_call_steps_pk` PRIMARY KEY(`call`, `step`),
|
|
53
|
+
CONSTRAINT `fk_export_call_steps_call_export_calls_id_fk` FOREIGN KEY (`call`) REFERENCES `export_calls`(`id`) ON DELETE CASCADE,
|
|
54
|
+
CONSTRAINT `fk_export_call_steps_site_sites_id_fk` FOREIGN KEY (`site`) REFERENCES `sites`(`id`) ON DELETE CASCADE,
|
|
55
|
+
CONSTRAINT "export_call_steps_side_check" CHECK("side" in ('true', 'false'))
|
|
56
|
+
);
|
|
57
|
+
--> statement-breakpoint
|
|
58
|
+
CREATE TABLE `export_calls` (
|
|
59
|
+
`id` integer PRIMARY KEY,
|
|
60
|
+
`test_file` integer NOT NULL,
|
|
61
|
+
`position` integer NOT NULL,
|
|
62
|
+
`export_key` text NOT NULL,
|
|
63
|
+
`test_key` text NOT NULL,
|
|
64
|
+
`parent` integer,
|
|
65
|
+
`depth` integer NOT NULL,
|
|
66
|
+
`args` text NOT NULL,
|
|
67
|
+
`outcome` text NOT NULL,
|
|
68
|
+
`result` text NOT NULL,
|
|
69
|
+
`thrown_at` text,
|
|
70
|
+
`is_path_cut` integer NOT NULL,
|
|
71
|
+
CONSTRAINT `fk_export_calls_test_file_test_files_id_fk` FOREIGN KEY (`test_file`) REFERENCES `test_files`(`id`) ON DELETE CASCADE,
|
|
72
|
+
CONSTRAINT `fk_export_calls_parent_export_calls_id_fk` FOREIGN KEY (`parent`) REFERENCES `export_calls`(`id`) ON DELETE CASCADE,
|
|
73
|
+
CONSTRAINT "export_calls_outcome_check" CHECK("outcome" in ('returned', 'threw', 'promised'))
|
|
74
|
+
);
|
|
75
|
+
--> statement-breakpoint
|
|
76
|
+
CREATE TABLE `hits` (
|
|
77
|
+
`test` integer NOT NULL,
|
|
78
|
+
`site` integer NOT NULL,
|
|
79
|
+
`side` text NOT NULL,
|
|
80
|
+
CONSTRAINT `hits_pk` PRIMARY KEY(`test`, `site`, `side`),
|
|
81
|
+
CONSTRAINT `fk_hits_test_test_runs_id_fk` FOREIGN KEY (`test`) REFERENCES `test_runs`(`id`) ON DELETE CASCADE,
|
|
82
|
+
CONSTRAINT "hits_side_check" CHECK("side" in ('true', 'false', 'repeat', 'case', 'default', 'absent', 'present', 'reached'))
|
|
83
|
+
);
|
|
84
|
+
--> statement-breakpoint
|
|
85
|
+
CREATE TABLE `hold_tests` (
|
|
86
|
+
`id` integer PRIMARY KEY,
|
|
87
|
+
`site` integer NOT NULL,
|
|
88
|
+
`test_key` text NOT NULL,
|
|
89
|
+
CONSTRAINT `fk_hold_tests_site_holds_site_fk` FOREIGN KEY (`site`) REFERENCES `holds`(`site`) ON DELETE CASCADE
|
|
90
|
+
);
|
|
91
|
+
--> statement-breakpoint
|
|
92
|
+
CREATE TABLE `holds` (
|
|
93
|
+
`site` integer PRIMARY KEY,
|
|
94
|
+
`basis_hash` text NOT NULL,
|
|
95
|
+
CONSTRAINT `fk_holds_site_sites_id_fk` FOREIGN KEY (`site`) REFERENCES `sites`(`id`) ON DELETE CASCADE
|
|
96
|
+
);
|
|
97
|
+
--> statement-breakpoint
|
|
98
|
+
CREATE TABLE `judged_state` (
|
|
99
|
+
`hash` text PRIMARY KEY,
|
|
100
|
+
`is_recorded` integer NOT NULL
|
|
101
|
+
);
|
|
102
|
+
--> statement-breakpoint
|
|
103
|
+
CREATE TABLE `merge_basis` (
|
|
104
|
+
`hash` text PRIMARY KEY
|
|
105
|
+
);
|
|
106
|
+
--> statement-breakpoint
|
|
107
|
+
CREATE TABLE `meta` (
|
|
108
|
+
`version` text PRIMARY KEY,
|
|
109
|
+
`created_at` integer NOT NULL
|
|
110
|
+
);
|
|
111
|
+
--> statement-breakpoint
|
|
112
|
+
CREATE TABLE `part_assignees` (
|
|
113
|
+
`test_file` integer NOT NULL,
|
|
114
|
+
`source` text NOT NULL,
|
|
115
|
+
`assignee` text NOT NULL,
|
|
116
|
+
CONSTRAINT `part_assignees_pk` PRIMARY KEY(`test_file`, `source`),
|
|
117
|
+
CONSTRAINT `fk_part_assignees_test_file_test_files_id_fk` FOREIGN KEY (`test_file`) REFERENCES `test_files`(`id`) ON DELETE CASCADE
|
|
118
|
+
);
|
|
119
|
+
--> statement-breakpoint
|
|
120
|
+
CREATE TABLE `passes_ended` (
|
|
121
|
+
`pass` text NOT NULL,
|
|
122
|
+
`shard` integer NOT NULL,
|
|
123
|
+
`failure` text,
|
|
124
|
+
CONSTRAINT `passes_ended_pk` PRIMARY KEY(`pass`, `shard`),
|
|
125
|
+
CONSTRAINT "passes_ended_pass_check" CHECK("pass" in ('plan', 'judge', 'parts', 'merge', 'verify'))
|
|
126
|
+
);
|
|
127
|
+
--> statement-breakpoint
|
|
128
|
+
CREATE TABLE `plan_codes` (
|
|
129
|
+
`path` text PRIMARY KEY,
|
|
130
|
+
`plan_key` text NOT NULL,
|
|
131
|
+
`hash` text NOT NULL,
|
|
132
|
+
`code` text NOT NULL
|
|
133
|
+
);
|
|
134
|
+
--> statement-breakpoint
|
|
135
|
+
CREATE TABLE `plan_crush_dedents` (
|
|
136
|
+
`id` integer PRIMARY KEY,
|
|
137
|
+
`crush` integer NOT NULL,
|
|
138
|
+
`start_at` integer NOT NULL,
|
|
139
|
+
`end_at` integer NOT NULL,
|
|
140
|
+
`width` integer NOT NULL,
|
|
141
|
+
CONSTRAINT `fk_plan_crush_dedents_crush_plan_crushes_id_fk` FOREIGN KEY (`crush`) REFERENCES `plan_crushes`(`id`) ON DELETE CASCADE
|
|
142
|
+
);
|
|
143
|
+
--> statement-breakpoint
|
|
144
|
+
CREATE TABLE `plan_crush_edits` (
|
|
145
|
+
`id` integer PRIMARY KEY,
|
|
146
|
+
`crush` integer NOT NULL,
|
|
147
|
+
`start_at` integer NOT NULL,
|
|
148
|
+
`end_at` integer NOT NULL,
|
|
149
|
+
`replacement` text NOT NULL,
|
|
150
|
+
CONSTRAINT `fk_plan_crush_edits_crush_plan_crushes_id_fk` FOREIGN KEY (`crush`) REFERENCES `plan_crushes`(`id`) ON DELETE CASCADE
|
|
151
|
+
);
|
|
152
|
+
--> statement-breakpoint
|
|
153
|
+
CREATE TABLE `plan_crushes` (
|
|
154
|
+
`id` integer PRIMARY KEY,
|
|
155
|
+
`source` integer NOT NULL,
|
|
156
|
+
`site` integer NOT NULL,
|
|
157
|
+
`crush` text NOT NULL,
|
|
158
|
+
`decision` text NOT NULL,
|
|
159
|
+
`side` text NOT NULL,
|
|
160
|
+
`point` integer NOT NULL,
|
|
161
|
+
`start_at` integer NOT NULL,
|
|
162
|
+
`end_at` integer NOT NULL,
|
|
163
|
+
`forced` text NOT NULL,
|
|
164
|
+
`skips` integer NOT NULL,
|
|
165
|
+
`forced_effect` text,
|
|
166
|
+
`owner` text NOT NULL,
|
|
167
|
+
`code` text NOT NULL,
|
|
168
|
+
`line` integer NOT NULL,
|
|
169
|
+
CONSTRAINT `fk_plan_crushes_source_sources_id_fk` FOREIGN KEY (`source`) REFERENCES `sources`(`id`) ON DELETE CASCADE,
|
|
170
|
+
CONSTRAINT `fk_plan_crushes_site_sites_id_fk` FOREIGN KEY (`site`) REFERENCES `sites`(`id`),
|
|
171
|
+
CONSTRAINT "plan_crushes_crush_check" CHECK("crush" in ('force-fork', 'loop-once', 'drop-operand', 'switch-case', 'default-value', 'optional-chain', 'callback')),
|
|
172
|
+
CONSTRAINT "plan_crushes_side_check" CHECK("side" in ('true', 'false', 'repeat', 'case', 'default', 'absent', 'present', 'reached')),
|
|
173
|
+
CONSTRAINT "plan_crushes_forced_check" CHECK("forced" in ('true', 'false', 'once'))
|
|
174
|
+
);
|
|
175
|
+
--> statement-breakpoint
|
|
176
|
+
CREATE TABLE `plan_points` (
|
|
177
|
+
`id` integer PRIMARY KEY,
|
|
178
|
+
`source` integer NOT NULL,
|
|
179
|
+
`site` integer NOT NULL,
|
|
180
|
+
`counter` integer NOT NULL,
|
|
181
|
+
`decision` text NOT NULL,
|
|
182
|
+
`kind` text NOT NULL,
|
|
183
|
+
CONSTRAINT `fk_plan_points_source_sources_id_fk` FOREIGN KEY (`source`) REFERENCES `sources`(`id`) ON DELETE CASCADE,
|
|
184
|
+
CONSTRAINT `fk_plan_points_site_sites_id_fk` FOREIGN KEY (`site`) REFERENCES `sites`(`id`),
|
|
185
|
+
CONSTRAINT "plan_points_kind_check" CHECK("kind" in ('if', 'ternary', 'while', 'doWhile', 'for', 'operand', 'callback', 'short', 'logicalAssign', 'optional', 'valueDefault', 'case', 'switchDefault', 'forOf', 'forIn', 'forAwait', 'iterate', 'iteratorClose', 'mayThrow', 'catch', 'finallyOverride', 'coerce', 'notFound', 'oddResult', 'await', 'yield', 'dispatch', 'nonNull', 'privateBrand', 'dispose', 'destructure', 'classHeritage', 'superCall'))
|
|
186
|
+
);
|
|
187
|
+
--> statement-breakpoint
|
|
188
|
+
CREATE TABLE `plan_switches` (
|
|
189
|
+
`id` integer PRIMARY KEY,
|
|
190
|
+
`source` integer NOT NULL,
|
|
191
|
+
`site` integer NOT NULL,
|
|
192
|
+
`counter` integer NOT NULL,
|
|
193
|
+
`mutator` text NOT NULL,
|
|
194
|
+
`owner` text NOT NULL,
|
|
195
|
+
`code` text NOT NULL,
|
|
196
|
+
`replacement` text NOT NULL,
|
|
197
|
+
`start_at` integer NOT NULL,
|
|
198
|
+
`line` integer NOT NULL,
|
|
199
|
+
CONSTRAINT `fk_plan_switches_source_sources_id_fk` FOREIGN KEY (`source`) REFERENCES `sources`(`id`) ON DELETE CASCADE,
|
|
200
|
+
CONSTRAINT `fk_plan_switches_site_sites_id_fk` FOREIGN KEY (`site`) REFERENCES `sites`(`id`),
|
|
201
|
+
CONSTRAINT "plan_switches_mutator_check" CHECK("mutator" in ('ArithmeticOperator', 'ArrayDeclaration', 'ArrowFunction', 'AssignmentOperator', 'BlockStatement', 'BooleanLiteral', 'ConditionalExpression', 'EqualityOperator', 'MethodExpression', 'ObjectLiteral', 'Regex', 'StringLiteral', 'UnaryOperator', 'UpdateOperator', 'AwaitExpression', 'Coercion', 'Disposal', 'EmptyDestructuring', 'MissingLookup', 'OddNumber', 'PrivateBrand', 'ShortIteration', 'SwitchDefault', 'ThrownCall', 'UnboundCall', 'YieldValue', 'NumberLiteral', 'BitwiseOperator', 'EmptyReturn', 'PlainAssignment', 'PowerOperator', 'LoopExit', 'NestedCondition', 'Outcome', 'SyncIteration', 'OperandDeletion', 'Plugin'))
|
|
202
|
+
);
|
|
203
|
+
--> statement-breakpoint
|
|
204
|
+
CREATE TABLE `plan_tests` (
|
|
205
|
+
`path` text PRIMARY KEY,
|
|
206
|
+
`hash` text NOT NULL,
|
|
207
|
+
`metadata_hash` text
|
|
208
|
+
);
|
|
209
|
+
--> statement-breakpoint
|
|
210
|
+
CREATE TABLE `plan_units` (
|
|
211
|
+
`counter` integer PRIMARY KEY,
|
|
212
|
+
`path` text NOT NULL,
|
|
213
|
+
`name` text NOT NULL,
|
|
214
|
+
`hash` text NOT NULL
|
|
215
|
+
);
|
|
216
|
+
--> statement-breakpoint
|
|
217
|
+
CREATE TABLE `reach_edges` (
|
|
218
|
+
`from_key` text NOT NULL,
|
|
219
|
+
`to_key` text NOT NULL,
|
|
220
|
+
CONSTRAINT `reach_edges_pk` PRIMARY KEY(`from_key`, `to_key`),
|
|
221
|
+
CONSTRAINT `fk_reach_edges_from_key_reach_nodes_node_key_fk` FOREIGN KEY (`from_key`) REFERENCES `reach_nodes`(`node_key`) ON DELETE CASCADE,
|
|
222
|
+
CONSTRAINT `fk_reach_edges_to_key_reach_nodes_node_key_fk` FOREIGN KEY (`to_key`) REFERENCES `reach_nodes`(`node_key`) ON DELETE CASCADE
|
|
223
|
+
);
|
|
224
|
+
--> statement-breakpoint
|
|
225
|
+
CREATE TABLE `reach_nodes` (
|
|
226
|
+
`node_key` text PRIMARY KEY,
|
|
227
|
+
`file` text NOT NULL,
|
|
228
|
+
`kind` text NOT NULL,
|
|
229
|
+
`name` text NOT NULL,
|
|
230
|
+
`line` integer NOT NULL,
|
|
231
|
+
`parsed` integer NOT NULL,
|
|
232
|
+
`ask` text NOT NULL,
|
|
233
|
+
`alongside` text NOT NULL,
|
|
234
|
+
`only_tests` text NOT NULL,
|
|
235
|
+
`shared_tests` text NOT NULL,
|
|
236
|
+
`unnamed_tests` text NOT NULL,
|
|
237
|
+
`pattern_tests` text NOT NULL,
|
|
238
|
+
CONSTRAINT "reach_nodes_kind_check" CHECK("kind" in ('file', 'export', 'binding', 'function')),
|
|
239
|
+
CONSTRAINT "reach_nodes_ask_check" CHECK("ask" in ('none', 'remove', 'unexport', 'test', 'tests'))
|
|
240
|
+
);
|
|
241
|
+
--> statement-breakpoint
|
|
242
|
+
CREATE TABLE `read_sequences` (
|
|
243
|
+
`test_file` text NOT NULL,
|
|
244
|
+
`generation` integer NOT NULL,
|
|
245
|
+
`position` integer NOT NULL,
|
|
246
|
+
`unit` text NOT NULL,
|
|
247
|
+
CONSTRAINT `read_sequences_pk` PRIMARY KEY(`test_file`, `generation`, `position`)
|
|
248
|
+
);
|
|
249
|
+
--> statement-breakpoint
|
|
250
|
+
CREATE TABLE `side_passes` (
|
|
251
|
+
`test_file` integer NOT NULL,
|
|
252
|
+
`site` integer NOT NULL,
|
|
253
|
+
`side` text NOT NULL,
|
|
254
|
+
`passes` integer NOT NULL,
|
|
255
|
+
CONSTRAINT `side_passes_pk` PRIMARY KEY(`test_file`, `site`, `side`),
|
|
256
|
+
CONSTRAINT `fk_side_passes_test_file_test_files_id_fk` FOREIGN KEY (`test_file`) REFERENCES `test_files`(`id`) ON DELETE CASCADE,
|
|
257
|
+
CONSTRAINT `fk_side_passes_site_sites_id_fk` FOREIGN KEY (`site`) REFERENCES `sites`(`id`) ON DELETE CASCADE,
|
|
258
|
+
CONSTRAINT "side_passes_side_check" CHECK("side" in ('true', 'false'))
|
|
259
|
+
);
|
|
260
|
+
--> statement-breakpoint
|
|
261
|
+
CREATE TABLE `site_verdicts` (
|
|
262
|
+
`site` integer PRIMARY KEY,
|
|
263
|
+
`status` text NOT NULL,
|
|
264
|
+
`catcher_key` text,
|
|
265
|
+
`backup_key` text,
|
|
266
|
+
`reruns` integer NOT NULL,
|
|
267
|
+
`basis_hash` text NOT NULL,
|
|
268
|
+
`owner_file` text,
|
|
269
|
+
`read_units` text NOT NULL,
|
|
270
|
+
`reads_hash` text NOT NULL,
|
|
271
|
+
`is_reused` integer NOT NULL,
|
|
272
|
+
`is_backup_searched` integer NOT NULL,
|
|
273
|
+
CONSTRAINT `fk_site_verdicts_site_sites_id_fk` FOREIGN KEY (`site`) REFERENCES `sites`(`id`) ON DELETE CASCADE,
|
|
274
|
+
CONSTRAINT "site_verdicts_status_check" CHECK("status" in ('caught', 'survived', 'unjudged', 'unreached'))
|
|
275
|
+
);
|
|
276
|
+
--> statement-breakpoint
|
|
277
|
+
CREATE TABLE `sites` (
|
|
278
|
+
`id` integer PRIMARY KEY,
|
|
279
|
+
`site_key` text NOT NULL UNIQUE
|
|
280
|
+
);
|
|
281
|
+
--> statement-breakpoint
|
|
282
|
+
CREATE TABLE `sources` (
|
|
283
|
+
`id` integer PRIMARY KEY,
|
|
284
|
+
`path` text NOT NULL UNIQUE,
|
|
285
|
+
`hash` text NOT NULL,
|
|
286
|
+
`excluded` integer NOT NULL,
|
|
287
|
+
`overlap` integer NOT NULL
|
|
288
|
+
);
|
|
289
|
+
--> statement-breakpoint
|
|
290
|
+
CREATE TABLE `test_file_changed` (
|
|
291
|
+
`test_file` integer NOT NULL,
|
|
292
|
+
`path` text NOT NULL,
|
|
293
|
+
CONSTRAINT `test_file_changed_pk` PRIMARY KEY(`test_file`, `path`),
|
|
294
|
+
CONSTRAINT `fk_test_file_changed_test_file_test_files_id_fk` FOREIGN KEY (`test_file`) REFERENCES `test_files`(`id`) ON DELETE CASCADE
|
|
295
|
+
);
|
|
296
|
+
--> statement-breakpoint
|
|
297
|
+
CREATE TABLE `test_file_outside` (
|
|
298
|
+
`test_file` integer NOT NULL,
|
|
299
|
+
`path` text NOT NULL,
|
|
300
|
+
CONSTRAINT `test_file_outside_pk` PRIMARY KEY(`test_file`, `path`),
|
|
301
|
+
CONSTRAINT `fk_test_file_outside_test_file_test_files_id_fk` FOREIGN KEY (`test_file`) REFERENCES `test_files`(`id`) ON DELETE CASCADE
|
|
302
|
+
);
|
|
303
|
+
--> statement-breakpoint
|
|
304
|
+
CREATE TABLE `test_file_properties` (
|
|
305
|
+
`test_file` integer NOT NULL,
|
|
306
|
+
`name` text NOT NULL,
|
|
307
|
+
CONSTRAINT `test_file_properties_pk` PRIMARY KEY(`test_file`, `name`),
|
|
308
|
+
CONSTRAINT `fk_test_file_properties_test_file_test_files_id_fk` FOREIGN KEY (`test_file`) REFERENCES `test_files`(`id`) ON DELETE CASCADE
|
|
309
|
+
);
|
|
310
|
+
--> statement-breakpoint
|
|
311
|
+
CREATE TABLE `test_file_reads` (
|
|
312
|
+
`test_file` integer NOT NULL,
|
|
313
|
+
`path` text NOT NULL,
|
|
314
|
+
`hash` text NOT NULL,
|
|
315
|
+
CONSTRAINT `test_file_reads_pk` PRIMARY KEY(`test_file`, `path`),
|
|
316
|
+
CONSTRAINT `fk_test_file_reads_test_file_test_files_id_fk` FOREIGN KEY (`test_file`) REFERENCES `test_files`(`id`) ON DELETE CASCADE
|
|
317
|
+
);
|
|
318
|
+
--> statement-breakpoint
|
|
319
|
+
CREATE TABLE `test_files` (
|
|
320
|
+
`id` integer PRIMARY KEY,
|
|
321
|
+
`path` text NOT NULL UNIQUE,
|
|
322
|
+
`hash` text NOT NULL,
|
|
323
|
+
`reused` integer NOT NULL,
|
|
324
|
+
`failure` text,
|
|
325
|
+
`justifications` text
|
|
326
|
+
);
|
|
327
|
+
--> statement-breakpoint
|
|
328
|
+
CREATE TABLE `test_runs` (
|
|
329
|
+
`id` integer PRIMARY KEY,
|
|
330
|
+
`test_file` integer NOT NULL,
|
|
331
|
+
`test_key` text NOT NULL UNIQUE,
|
|
332
|
+
`name` text,
|
|
333
|
+
`passed` integer NOT NULL,
|
|
334
|
+
`failure` text,
|
|
335
|
+
`steps` integer NOT NULL,
|
|
336
|
+
`stated_steps` integer,
|
|
337
|
+
`steps_reason` text,
|
|
338
|
+
`is_steady` integer NOT NULL,
|
|
339
|
+
`ticks` integer NOT NULL,
|
|
340
|
+
`ns` integer NOT NULL,
|
|
341
|
+
`answers` text,
|
|
342
|
+
`keeps` text,
|
|
343
|
+
`rerun_failed` integer NOT NULL,
|
|
344
|
+
CONSTRAINT `fk_test_runs_test_file_test_files_id_fk` FOREIGN KEY (`test_file`) REFERENCES `test_files`(`id`) ON DELETE CASCADE
|
|
345
|
+
);
|
|
346
|
+
--> statement-breakpoint
|
|
347
|
+
CREATE TABLE `verdicts` (
|
|
348
|
+
`test_file` integer NOT NULL,
|
|
349
|
+
`site` integer NOT NULL,
|
|
350
|
+
`status` text NOT NULL,
|
|
351
|
+
`catcher` integer,
|
|
352
|
+
`backup` integer,
|
|
353
|
+
`reruns` integer NOT NULL,
|
|
354
|
+
`basis_hash` text NOT NULL,
|
|
355
|
+
`read_hash` text,
|
|
356
|
+
`read_generation` integer NOT NULL,
|
|
357
|
+
`read_count` integer NOT NULL,
|
|
358
|
+
`is_reused` integer NOT NULL,
|
|
359
|
+
`deferred_to` text,
|
|
360
|
+
CONSTRAINT `verdicts_pk` PRIMARY KEY(`test_file`, `site`),
|
|
361
|
+
CONSTRAINT `fk_verdicts_test_file_test_files_id_fk` FOREIGN KEY (`test_file`) REFERENCES `test_files`(`id`) ON DELETE CASCADE,
|
|
362
|
+
CONSTRAINT `fk_verdicts_site_sites_id_fk` FOREIGN KEY (`site`) REFERENCES `sites`(`id`) ON DELETE CASCADE,
|
|
363
|
+
CONSTRAINT `fk_verdicts_catcher_test_runs_id_fk` FOREIGN KEY (`catcher`) REFERENCES `test_runs`(`id`),
|
|
364
|
+
CONSTRAINT `fk_verdicts_backup_test_runs_id_fk` FOREIGN KEY (`backup`) REFERENCES `test_runs`(`id`),
|
|
365
|
+
CONSTRAINT "verdicts_status_check" CHECK("status" in ('caught', 'survived', 'unjudged', 'unreached'))
|
|
366
|
+
);
|
|
367
|
+
--> statement-breakpoint
|
|
368
|
+
CREATE TABLE `verified_drop_tests` (
|
|
369
|
+
`id` integer PRIMARY KEY,
|
|
370
|
+
`dropped` integer NOT NULL,
|
|
371
|
+
`test` integer NOT NULL,
|
|
372
|
+
CONSTRAINT `fk_verified_drop_tests_dropped_verified_drops_id_fk` FOREIGN KEY (`dropped`) REFERENCES `verified_drops`(`id`) ON DELETE CASCADE,
|
|
373
|
+
CONSTRAINT `fk_verified_drop_tests_test_test_runs_id_fk` FOREIGN KEY (`test`) REFERENCES `test_runs`(`id`) ON DELETE CASCADE
|
|
374
|
+
);
|
|
375
|
+
--> statement-breakpoint
|
|
376
|
+
CREATE TABLE `verified_drops` (
|
|
377
|
+
`id` integer PRIMARY KEY,
|
|
378
|
+
`test_file` integer NOT NULL,
|
|
379
|
+
`site` integer NOT NULL,
|
|
380
|
+
CONSTRAINT `fk_verified_drops_test_file_verified_files_test_file_fk` FOREIGN KEY (`test_file`) REFERENCES `verified_files`(`test_file`) ON DELETE CASCADE,
|
|
381
|
+
CONSTRAINT `fk_verified_drops_site_sites_id_fk` FOREIGN KEY (`site`) REFERENCES `sites`(`id`) ON DELETE CASCADE
|
|
382
|
+
);
|
|
383
|
+
--> statement-breakpoint
|
|
384
|
+
CREATE TABLE `verified_files` (
|
|
385
|
+
`test_file` integer PRIMARY KEY,
|
|
386
|
+
`candidates_hash` text NOT NULL,
|
|
387
|
+
CONSTRAINT `fk_verified_files_test_file_test_files_id_fk` FOREIGN KEY (`test_file`) REFERENCES `test_files`(`id`) ON DELETE CASCADE
|
|
388
|
+
);
|
|
389
|
+
--> statement-breakpoint
|
|
390
|
+
CREATE TABLE `working` (
|
|
391
|
+
`name` text PRIMARY KEY
|
|
392
|
+
);
|
|
393
|
+
--> statement-breakpoint
|
|
394
|
+
CREATE INDEX `candidate_edits_candidate_idx` ON `candidate_edits` (`candidate`);--> statement-breakpoint
|
|
395
|
+
CREATE UNIQUE INDEX `candidates_site_unique` ON `candidates` (`site`);--> statement-breakpoint
|
|
396
|
+
CREATE INDEX `export_call_steps_site_idx` ON `export_call_steps` (`site`);--> statement-breakpoint
|
|
397
|
+
CREATE UNIQUE INDEX `export_calls_test_file_position_unique` ON `export_calls` (`test_file`,`position`);--> statement-breakpoint
|
|
398
|
+
CREATE INDEX `export_calls_export_key_idx` ON `export_calls` (`export_key`);--> statement-breakpoint
|
|
399
|
+
CREATE INDEX `export_calls_parent_idx` ON `export_calls` (`parent`);--> statement-breakpoint
|
|
400
|
+
CREATE INDEX `hold_tests_site_idx` ON `hold_tests` (`site`);--> statement-breakpoint
|
|
401
|
+
CREATE INDEX `plan_crush_dedents_crush_idx` ON `plan_crush_dedents` (`crush`);--> statement-breakpoint
|
|
402
|
+
CREATE INDEX `plan_crush_edits_crush_idx` ON `plan_crush_edits` (`crush`);--> statement-breakpoint
|
|
403
|
+
CREATE INDEX `plan_crushes_source_idx` ON `plan_crushes` (`source`);--> statement-breakpoint
|
|
404
|
+
CREATE UNIQUE INDEX `plan_crushes_site_unique` ON `plan_crushes` (`site`);--> statement-breakpoint
|
|
405
|
+
CREATE UNIQUE INDEX `plan_points_source_counter_unique` ON `plan_points` (`source`,`counter`);--> statement-breakpoint
|
|
406
|
+
CREATE INDEX `plan_points_site_idx` ON `plan_points` (`site`);--> statement-breakpoint
|
|
407
|
+
CREATE INDEX `plan_switches_source_idx` ON `plan_switches` (`source`);--> statement-breakpoint
|
|
408
|
+
CREATE UNIQUE INDEX `plan_switches_site_unique` ON `plan_switches` (`site`);--> statement-breakpoint
|
|
409
|
+
CREATE INDEX `reach_edges_to_key_idx` ON `reach_edges` (`to_key`);--> statement-breakpoint
|
|
410
|
+
CREATE INDEX `side_passes_site_idx` ON `side_passes` (`site`);--> statement-breakpoint
|
|
411
|
+
CREATE INDEX `test_runs_test_file_idx` ON `test_runs` (`test_file`);--> statement-breakpoint
|
|
412
|
+
CREATE INDEX `verdicts_site_idx` ON `verdicts` (`site`);--> statement-breakpoint
|
|
413
|
+
CREATE INDEX `verdicts_catcher_idx` ON `verdicts` (`catcher`);--> statement-breakpoint
|
|
414
|
+
CREATE INDEX `verdicts_backup_idx` ON `verdicts` (`backup`);--> statement-breakpoint
|
|
415
|
+
CREATE INDEX `verified_drop_tests_dropped_idx` ON `verified_drop_tests` (`dropped`);--> statement-breakpoint
|
|
416
|
+
CREATE INDEX `verified_drop_tests_test_idx` ON `verified_drop_tests` (`test`);--> statement-breakpoint
|
|
417
|
+
CREATE INDEX `verified_drops_test_file_idx` ON `verified_drops` (`test_file`);--> statement-breakpoint
|
|
418
|
+
CREATE INDEX `verified_drops_site_idx` ON `verified_drops` (`site`);
|