test(stdlib): add the demo module to the product lane
This commit is contained in:
1 parent
7a93fe8e7b
commit
0d40de7645
6 files changed
+13
-3
No files matched your search
@@ -88,6 +88,7 @@ fn every_public_stdlib_module_has_a_product_test() {
|
||||
names,
|
||||
vec![
|
||||
"console.mq.md",
|
||||
"demo.mq.md",
|
||||
"format.mq.md",
|
||||
"http.mq.md",
|
||||
"io.mq.md",
|
||||
|
||||
+1
-1
@@ -224,7 +224,7 @@ This is still a **local VM lane**, not a self-hosted GitHub Actions security URL
|
||||
status/index links and SHA-pinned evidence; `crates/cli/tests/architecture_boundaries.rs`
|
||||
pins the workspace graph, `marqdo-runtime -> marqdo-host`, the bundled stdlib
|
||||
digest and the stdio/file/TCP endpoints; `crates/cli/tests/stdlib_product.rs`
|
||||
runs every public stdlib module (`console/format/http/io/stream/table/text/utf8`)
|
||||
runs every public stdlib module (`console/demo/format/http/io/stream/table/text/utf8`)
|
||||
through `std:` imports over `stdlib/tests/*.mq.md`. `tools/pack-stdlib.py`
|
||||
now sorts `.mq.md` by the same relative path key as the CLI. Source baseline
|
||||
`04eae87`; later docs-only commits keep the code byte-identical. Evidence:
|
||||
|
||||
@@ -62,6 +62,7 @@ the verified bundle:
|
||||
| Test | Public module |
|
||||
|---|---|
|
||||
| `console.mq.md` | `std:io/console` |
|
||||
| `demo.mq.md` | `std:demo` |
|
||||
| `format.mq.md` | `std:format` |
|
||||
| `http.mq.md` | `std:net/http` |
|
||||
| `io.mq.md` | `std:io` |
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ module; a mismatch is a hard error.
|
||||
- `data/table.mq.md` — value-returning table select/filter/sort/append/set/join/group/GFM
|
||||
- `net/http.mq.md` — HTTP/1.1 response parsing (headers/chunked) and request builder
|
||||
- `tests/` — product self-tests for every public module
|
||||
(`console`, `format`, `http`, `io`, `stream`, `table`, `text`, `utf8`)
|
||||
(`console`, `demo`, `format`, `http`, `io`, `stream`, `table`, `text`, `utf8`)
|
||||
|
||||
The digest is a SHA-256 over sorted `*.mq.md` relative paths, a NUL, file
|
||||
bytes, and a NUL. It excludes `stdlib.json` and non-`.mq.md` files. After any
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "marqdo-stdlib",
|
||||
"version": "0.1.0",
|
||||
"digest": "sha256:86edd79cb84057dba847cc66136a6d6a647d44ea889fff537bd8d162707a3285"
|
||||
"digest": "sha256:91f1f76daf694efac0c4d8c937d2b2f61d07efd8c105ce407e55690e0a3ad2f5"
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
import:
|
||||
demo: "std:demo"
|
||||
---
|
||||
|
||||
## main
|
||||
|
||||
*demo.演示函数()*
|
||||
Reference in new issue
Block a user