Check the code of a presentation
check_codeRun the code blocks of a presentation you may edit, in the order of the slides (on a slide: from the top), the way a viewer who goes through it would, and compare what each shows with its "expect" (the expected output, a prop of code blocks that only those who may edit see). Runs every block that is "runnable" or has an "expect". With "fresh" (the default) your databases of the presentation are first made again from its database scripts, so the check starts where a new viewer starts; what the blocks change stays in your databases. Per block: "status" "match", "mismatch" (with the first "difference"), "error" (it failed), "ran" (no "expect" to compare with) or "skipped" (out of time: check the rest with "slide_ids" and "fresh": false), and "got" -- what it showed, which you may put into "expect". The comparison ignores spaces around cells, the separator lines of tables, "(N rows)" and the header of a table when only its rows are expected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The presentation's slug (its address: /movie/<slug>/). | |
| fresh | No | First make your databases again from the scripts (default true). | |
| slide_ids | No | Only the code blocks of these slides (default: all of them). | |
| only_expected | No | Only the blocks that have an "expect" (default false). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | ||
| blocks | Yes | The code blocks in the order they ran. | |
| summary | Yes | How many blocks of each status. |