Directories
¶
| Path | Synopsis |
|---|---|
|
Package benchset installs the bench set for the tests that use its generated model.
|
Package benchset installs the bench set for the tests that use its generated model. |
|
Conformance runner (Go).
|
Conformance runner (Go). |
|
dbspec
|
|
|
apply
command
Command go applies the chain of plan-cases.json (tests/dbspec/plan-cases.json; its cases are read from that file, create-from-empty and rename-table-and-column) to one database with the Go engine (docs/spec/plans.md "Apply").
|
Command go applies the chain of plan-cases.json (tests/dbspec/plan-cases.json; its cases are read from that file, create-from-empty and rename-table-and-column) to one database with the Go engine (docs/spec/plans.md "Apply"). |
|
compare
command
Command go prints the Go dbspec results for all shared cases, stress documents, statement vectors, plan vectors, and Mermaid vectors in the line format of tests/dbspec/compare/check.mts.
|
Command go prints the Go dbspec results for all shared cases, stress documents, statement vectors, plan vectors, and Mermaid vectors in the line format of tests/dbspec/compare/check.mts. |
|
database
Package database opens the databases of the dbspec tools by URI.
|
Package database opens the databases of the dbspec tools by URI. |
|
ddlcases
Package ddlcases reads the vectors of tests/dbspec/ddl.json, the rendered statements and behavior steps that the physical dialect tests and the client tests share.
|
Package ddlcases reads the vectors of tests/dbspec/ddl.json, the rendered statements and behavior steps that the physical dialect tests and the client tests share. |
|
introspect
command
Command go introspects one database with the Go engine and writes it in the output format of tests/dbspec/introspect: the canonical document on stdout and the unsupported object lines "! kind<TAB>table<TAB>name", and on stderr a "reason ..." line per unsupported object and an "elapsed <ms>" line.
|
Command go introspects one database with the Go engine and writes it in the output format of tests/dbspec/introspect: the canonical document on stdout and the unsupported object lines "! kind<TAB>table<TAB>name", and on stderr a "reason ..." line per unsupported object and an "elapsed <ms>" line. |
|
plancases
Package plancases reads the cases of tests/dbspec/plan-cases.json, the recipe of the plan cases, and their physical data in tests/dbspec/plans-physical.json, which the dbspec apply tool and the physical dialect tests share.
|
Package plancases reads the cases of tests/dbspec/plan-cases.json, the recipe of the plan cases, and their physical data in tests/dbspec/plans-physical.json, which the dbspec apply tool and the physical dialect tests share. |
|
skeleton
Package skeleton writes the part of a dbspec document that Mermaid carries, which the Go recipe helper and the dbspec compare runner both check a Mermaid round trip by.
|
Package skeleton writes the part of a dbspec document that Mermaid carries, which the Go recipe helper and the dbspec compare runner both check a Mermaid round trip by. |
|
Package dialects holds the schema dialect fact probes of docs/spec/dialects.md.
|
Package dialects holds the schema dialect fact probes of docs/spec/dialects.md. |
|
Package irwhere narrows the where of an IR query, as the request hooks of the tests and of the recipe helper do.
|
Package irwhere narrows the where of an IR query, as the request hooks of the tests and of the recipe helper do. |
|
Package markdowntest holds the listener helpers of the markdown test servers, which the markdown tests of the models and the bind message recipe share.
|
Package markdowntest holds the listener helpers of the markdown test servers, which the markdown tests of the models and the bind message recipe share. |
|
Package recipe runs the cases of a recipe (docs/spec/feature-coverage.md FCV-2 to FCV-4) in Go: the entry of each suite unit, TestRecipe<Recipe><Database>, starts its case with packages/go/testcase and calls Run with the recipe and the database, and Run runs each case as a subtest whose steps call the public API of the orm package that each op names.
|
Package recipe runs the cases of a recipe (docs/spec/feature-coverage.md FCV-2 to FCV-4) in Go: the entry of each suite unit, TestRecipe<Recipe><Database>, starts its case with packages/go/testcase and calls Run with the recipe and the database, and Run runs each case as a subtest whose steps call the public API of the orm package that each op names. |
|
Package stmtevent is the statement event record of docs/operations/usage.md "Statement events", as the conformance vectors and the ORM tests write it.
|
Package stmtevent is the statement event record of docs/operations/usage.md "Statement events", as the conformance vectors and the ORM tests write it. |
|
Go symbol extractor of tests/interfaces/check: prints the declarations of the Go files under the given roots as one JSON object of symbol to signature, read from Go's own syntax trees (go/parser, go/printer) without executing code.
|
Go symbol extractor of tests/interfaces/check: prints the declarations of the Go files under the given roots as one JSON object of symbol to signature, read from Go's own syntax trees (go/parser, go/printer) without executing code. |
|
Package testdb creates the database that one database case uses alone (the case database).
|
Package testdb creates the database that one database case uses alone (the case database). |
|
Package testmodel loads the runtime model of a dbspec document for the tests of the engine and the generator.
|
Package testmodel loads the runtime model of a dbspec document for the tests of the engine and the generator. |
Click to show internal directories.
Click to hide internal directories.