[{"data":1,"prerenderedAt":479},["ShallowReactive",2],{"blog-slat-14-en":3},{"number":4,"title":5,"summary":6,"parts":7,"toc":11,"minutes":478},14,"Testing by layer","A test for a message shown to a person belongs where the person sees it, not only in logic.rs. A function that produces the right sentence proves nothing if…",[8],{"kind":9,"html":10},"html","\u003Cdiv class=\"table-wrap\">\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Layer\u003C\u002Fth>\n\u003Cth>How to test\u003C\u002Fth>\n\u003Cth>What counts as proof\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\n\u003Ctr>\n\u003Ctd>\u003Ccode>logic.rs\u003C\u002Fcode>, \u003Ccode>update.rs\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>a plain \u003Ccode>#[test]\u003C\u002Fcode>, no tokio\u003C\u002Ftd>\n\u003Ctd>an assertion on a value or on the list of effects\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>store.rs\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>a database in a temporary folder\u003C\u002Ftd>\n\u003Ctd>the row that comes back from a read\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>service.rs\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>#[tokio::test]\u003C\u002Fcode> with a real store and a data seam (14.2)\u003C\u002Ftd>\n\u003Ctd>the state of files or the database after the call\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>actor\u002F\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>a \u003Ccode>Handle\u003C\u002Fcode> plus a script of messages; time with \u003Ccode>tokio::time::pause\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>the sequence of \u003Ccode>Snapshot\u003C\u002Fcode>s\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>drivers\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>a real process or a recorded stream\u003C\u002Ftd>\n\u003Ctd>the process is dead (\u003Ccode>ESRCH\u003C\u002Fcode> or an empty job), the lines from the wire\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>app\u002Fcommands\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>no unit test; an end-to-end or integration test through the entry, for what a person sees\u003C\u002Ftd>\n\u003Ctd>the text a person sees\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\u003C\u002Fdiv>\n\u003Cp>A test for a message shown to a person belongs where the person sees it, not only in \u003Ccode>logic.rs\u003C\u002Fcode>. A function that produces the right sentence proves nothing if nobody calls it.\u003C\u002Fp>\n\u003Ch3 id=\"s14-1\">14.1. One integration binary\u003C\u002Fh3>\n\u003Cp>Every file directly in \u003Ccode>tests\u002F\u003C\u002Fcode> is a separate binary, and each binary is linked separately. On a large workspace that is a minute per file. Give each crate \u003Cstrong>one\u003C\u002Fstrong> integration target, \u003Ccode>tests\u002Fit\u002Fmain.rs\u003C\u002Fcode>, with one module per topic, and run a single topic with a filter:\u003C\u002Fp>\n\u003Cpre class=\"code-tree\">\u003Ccode>\u003Cspan class=\"t-dir\">tests\u002Fit\u002F\u003C\u002Fspan>\n\u003Cspan class=\"t-guide\">  \u003C\u002Fspan>\u003Cspan class=\"t-file\">main.rs\u003C\u002Fspan>\u003Cspan class=\"t-note\">          mod recording_stops_on_time_limit; mod transcript_survives_restart; …\u003C\u002Fspan>\n\u003Cspan class=\"t-guide\">  \u003C\u002Fspan>\u003Cspan class=\"t-file\">recording_stops_on_time_limit.rs\u003C\u002Fspan>\n\u003Cspan class=\"t-guide\">  \u003C\u002Fspan>\u003Cspan class=\"t-file\">transcript_survives_restart.rs\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">cargo\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> nextest\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> run\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> --test\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> it\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> recording_stops_on_time_limit::\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Cp>Run with \u003Ccode>--no-tests=fail\u003C\u002Fcode>, so that a filter that matches nothing is red instead of quietly green.\u003C\u002Fp>\n\u003Cp>Helpers shared by the tests are a module of the same target, \u003Ccode>tests\u002Fit\u002Fsupport\u002F\u003C\u002Fcode>. A helper file placed directly in \u003Ccode>tests\u002F\u003C\u002Fcode> is one more binary to link.\u003C\u002Fp>\n\u003Ch3 id=\"s14-2\">14.2. A fake driver without a trait\u003C\u002Fh3>\n\u003Cp>A test needs a driver that does not start real processes. SLAT forbids a trait with one implementation, and a fake does not count as a second real one. Two options keep the rule. Prefer the first: a feature changes how \u003Ccode>drivers\u003C\u002Fcode> and every crate above it compile, so a test build with it and an application build without it are two separate sets of artifacts (section 22.3). A data seam costs no compile time at all.\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>A data seam.\u003C\u002Fstrong> The service takes the driver's \u003Cem>output\u003C\u002Fem> as a value or a channel, not the driver itself. The test sends lines into the channel.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>A test build.\u003C\u002Fstrong> \u003Ccode>drivers\u003C\u002Fcode> exposes \u003Ccode>#[cfg(any(test, feature = &quot;fake&quot;))] pub mod fake;\u003C\u002Fcode> with the same functions as the real module, and the test crate enables the \u003Ccode>fake\u003C\u002Fcode> feature.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>When a second real implementation appears (a second provider, a second platform), that is the moment for a trait.\u003C\u002Fp>\n\u003Ch3 id=\"s14-3\">14.3. Mutants in the diff\u003C\u002Fh3>\n\u003Cp>A test that passes proves something only if it would fail on wrong code. That is section 16.2 applied to tests. \u003Ccode>cargo-mutants\u003C\u002Fcode> changes the code (it flips a condition, replaces a return value, deletes a statement) and reports every change that no test noticed. Run it on the lines a pull request changed, not on the whole workspace:\u003C\u002Fp>\n\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> diff\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> origin\u002Fmain...HEAD\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> >\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> changes.diff\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">cargo\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> mutants\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> --in-diff\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> changes.diff\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> --package\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> quayside-core\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>logic.rs\u003C\u002Fcode> and \u003Ccode>update.rs\u003C\u002Fcode> are where this pays off most. They are pure, so their tests run in microseconds, and a surviving mutant there is a business rule nobody checks. A surviving mutant is fixed with a test, never with an exclusion.\u003C\u002Fp>\n\u003Ch3 id=\"s14-4\">14.4. Property tests for \u003Ccode>update\u003C\u002Fcode>\u003C\u002Fh3>\n\u003Cp>An \u003Ccode>update\u003C\u002Fcode> test checks one script of messages. A property test checks thousands of random scripts against rules that must always hold. With \u003Ccode>proptest\u003C\u002Fcode>, generate a sequence of \u003Ccode>Msg\u003C\u002Fcode> values and assert the invariants of the state after every step:\u003C\u002Fp>\n\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">proptest!\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">    #[test]\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">    fn\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\"> a_stale_generation_never_changes_the_phase\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(script \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">in\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\"> messages\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">64\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">)) {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">        let\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> mut\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> state \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">=\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\"> State\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">::\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">default\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">();\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">        for\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> msg \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">in\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> script {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">            let\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> generation_before \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">=\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> state\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">.\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">generation;\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">            let\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> phase_before \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">=\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> state\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">.\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">phase\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">.\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">clone\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">();\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">            let\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> stale \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">=\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> msg\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">.\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">generation\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">()\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">.\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">is_some_and\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">|\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">g\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">|\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> g \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">!=\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> generation_before);\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">            update\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">&#x26;mut\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> state, msg);\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">            prop_assert!\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(state\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">.\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">generation \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">>=\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> generation_before);\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">            if\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> stale {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">                prop_assert_eq!\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">&#x26;\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">state\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">.\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">phase, \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">&#x26;\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">phase_before);\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">            }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">        }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">    }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">}\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>messages(n)\u003C\u002Fcode> is a strategy of the test module that builds random \u003Ccode>Msg\u003C\u002Fcode> values, and \u003Ccode>Msg::generation()\u003C\u002Fcode> is a small helper that returns the generation a message carries. The leak from section 20.2 is exactly the kind of bug such a test finds on its own: no one has to think of the order of messages that causes it.\u003C\u002Fp>\n\u003Ch3 id=\"s14-5\">14.5. A test through the entry\u003C\u002Fh3>\n\u003Cp>The sentence a person sees is proved through the entry: the real command and a real \u003Ccode>AppState\u003C\u002Fcode>, without a window. Tauri's \u003Ccode>test\u003C\u002Fcode> feature has a mock runtime that runs a command the way the window does. The test is a module of the \u003Ccode>app\u003C\u002Fcode> crate's \u003Ccode>tests\u002Fit\u003C\u002Fcode> and registers the commands it calls:\u003C\u002Fp>\n\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">#[test]\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">fn\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\"> reading_a_transcript_that_is_gone_says_so\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">() {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">    let\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> app \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">=\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\"> tauri\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">::\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">test\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">::\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">mock_builder\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">()\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">        .\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">manage\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">support\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">::\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">app_state\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">())\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">        .\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">invoke_handler\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">tauri\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">::\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">generate_handler!\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">[\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">transcript\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">::\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">commands\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">::\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">transcript_read])\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">        .\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">build\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">tauri\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">::\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">test\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">::\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">mock_context\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">tauri\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">::\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">test\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">::\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">noop_assets\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">()))\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">        .\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">expect\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"the test app could not start\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">);\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">    let\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> window \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">=\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\"> tauri\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">::\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">WebviewWindowBuilder\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">::\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">new\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">&#x26;\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">app, \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"main\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">, \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">Default\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">::\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">default\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">())\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">        .\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">build\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">()\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">        .\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">expect\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"the test window could not open\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">);\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">    let\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> reply \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">=\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\"> tauri\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">::\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">test\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">::\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">get_ipc_response\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">        &#x26;\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">window,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">        support\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">::\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">invoke\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"transcript_read\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">, \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">serde_json\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">::\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">json!\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">({ \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"id\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">:\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> \"gone\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> })),\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">    );\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">    let\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> error \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">=\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> reply\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">.\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">expect_err\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"a missing transcript must be refused\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">);\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">    assert_eq!\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">support\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">::\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">english\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">&#x26;\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">error[\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"messageKey\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">]), \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"This transcript no longer exists.\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">);\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">}\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Cp>\u003Ccode>support::app_state()\u003C\u002Fcode> assembles \u003Ccode>AppState\u003C\u002Fcode> on a temporary folder, \u003Ccode>support::invoke\u003C\u002Fcode> builds the \u003Ccode>tauri::webview::InvokeRequest\u003C\u002Fcode> with \u003Ccode>tauri::test::INVOKE_KEY\u003C\u002Fcode>, and \u003Ccode>support::english\u003C\u002Fcode> looks the key up in the same translation file the front-end uses. A test that stops at \u003Ccode>messageKey\u003C\u002Fcode> proves only the mapping; the sentence is the proof.\u003C\u002Fp>\n",[12,30,34,38,42,62,86,102,122,146,150,158,190,194,218,222,246,282,286,306,326,342,378,426,474],{"id":13,"text":14,"depth":15,"children":16},"s1","1. Why SLAT exists",2,[17,22,26],{"id":18,"text":19,"depth":20,"children":21},"s1-1","1.1. Goals",3,[],{"id":23,"text":24,"depth":20,"children":25},"s1-2","1.2. Non-goals",[],{"id":27,"text":28,"depth":20,"children":29},"s1-3","1.3. Who should use it",[],{"id":31,"text":32,"depth":15,"children":33},"s2","2. SLAT on one page",[],{"id":35,"text":36,"depth":15,"children":37},"s3","3. Vocabulary",[],{"id":39,"text":40,"depth":15,"children":41},"s4","4. Where SLAT comes from",[],{"id":43,"text":44,"depth":15,"children":45},"s5","5. Tiers",[46,50,54,58],{"id":47,"text":48,"depth":20,"children":49},"s5-1","5.1. The compiler is the guard",[],{"id":51,"text":52,"depth":20,"children":53},"s5-2","5.2. How many crates to start with",[],{"id":55,"text":56,"depth":20,"children":57},"s5-3","5.3. When to split a tier",[],{"id":59,"text":60,"depth":20,"children":61},"s5-4","5.4. Compatibility exception",[],{"id":63,"text":64,"depth":15,"children":65},"s6","6. Slices",[66,70,74,78,82],{"id":67,"text":68,"depth":20,"children":69},"s6-1","6.1. A slice in core",[],{"id":71,"text":72,"depth":20,"children":73},"s6-2","6.2. A slice in app",[],{"id":75,"text":76,"depth":20,"children":77},"s6-3","6.3. A command, the reference shape",[],{"id":79,"text":80,"depth":20,"children":81},"s6-4","6.4. Registering commands",[],{"id":83,"text":84,"depth":20,"children":85},"s6-5","6.5. Naming slices",[],{"id":87,"text":88,"depth":15,"children":89},"s7","7. Who may import whom",[90,94,98],{"id":91,"text":92,"depth":20,"children":93},"s7-1","7.1. Inside a slice",[],{"id":95,"text":96,"depth":20,"children":97},"s7-2","7.2. Between slices",[],{"id":99,"text":100,"depth":20,"children":101},"s7-3","7.3. Why these particular lines",[],{"id":103,"text":104,"depth":15,"children":105},"s8","8. Data flows",[106,110,114,118],{"id":107,"text":108,"depth":20,"children":109},"s8-1","8.1. Query (a read)",[],{"id":111,"text":112,"depth":20,"children":113},"s8-2","8.2. Command (a change)",[],{"id":115,"text":116,"depth":20,"children":117},"s8-3","8.3. Event (backend → window)",[],{"id":119,"text":120,"depth":20,"children":121},"s8-4","8.4. High-volume streams",[],{"id":123,"text":124,"depth":15,"children":125},"s9","9. Actors: slices with state",[126,130,134,138,142],{"id":127,"text":128,"depth":20,"children":129},"s9-1","9.1. When to use an actor",[],{"id":131,"text":132,"depth":20,"children":133},"s9-2","9.2. Files",[],{"id":135,"text":136,"depth":20,"children":137},"s9-3","9.3. The contract",[],{"id":139,"text":140,"depth":20,"children":141},"s9-4","9.4. A complete small actor",[],{"id":143,"text":144,"depth":20,"children":145},"s9-5","9.5. Testing an actor",[],{"id":147,"text":148,"depth":15,"children":149},"s10","10. The variant explosion",[],{"id":151,"text":152,"depth":15,"children":153},"s11","11. AppState, the composition root",[154],{"id":155,"text":156,"depth":20,"children":157},"s11-1","11.1. kit::Jobs: one-shot background work",[],{"id":159,"text":160,"depth":15,"children":161},"s12","12. Platforms",[162,166,170,174,178,182,186],{"id":163,"text":164,"depth":20,"children":165},"s12-1","12.1. Layout",[],{"id":167,"text":168,"depth":20,"children":169},"s12-2","12.2. Contracts",[],{"id":171,"text":172,"depth":20,"children":173},"s12-3","12.3. What is forbidden outside platform\u002F",[],{"id":175,"text":176,"depth":20,"children":177},"s12-4","12.4. Paths, files and text",[],{"id":179,"text":180,"depth":20,"children":181},"s12-5","12.5. Platform tests",[],{"id":183,"text":184,"depth":20,"children":185},"s12-6","12.6. Enforcement",[],{"id":187,"text":188,"depth":20,"children":189},"s12-7","12.7. Porting to a new operating system",[],{"id":191,"text":192,"depth":15,"children":193},"s13","13. Errors",[],{"id":195,"text":196,"depth":15,"children":197},"s14","14. Testing by layer",[198,202,206,210,214],{"id":199,"text":200,"depth":20,"children":201},"s14-1","14.1. One integration binary",[],{"id":203,"text":204,"depth":20,"children":205},"s14-2","14.2. A fake driver without a trait",[],{"id":207,"text":208,"depth":20,"children":209},"s14-3","14.3. Mutants in the diff",[],{"id":211,"text":212,"depth":20,"children":213},"s14-4","14.4. Property tests for update",[],{"id":215,"text":216,"depth":20,"children":217},"s14-5","14.5. A test through the entry",[],{"id":219,"text":220,"depth":15,"children":221},"s15","15. Size limits",[],{"id":223,"text":224,"depth":15,"children":225},"s16","16. Enforcement",[226,230,234,238,242],{"id":227,"text":228,"depth":20,"children":229},"s16-1","16.1. A check with a baseline",[],{"id":231,"text":232,"depth":20,"children":233},"s16-2","16.2. A check must be able to fail",[],{"id":235,"text":236,"depth":20,"children":237},"s16-3","16.3. The platform job in CI",[],{"id":239,"text":240,"depth":20,"children":241},"s16-4","16.4. Checks for the whole set",[],{"id":243,"text":244,"depth":20,"children":245},"s16-5","16.5. Lints and bans before scripts",[],{"id":247,"text":248,"depth":15,"children":249},"s17","17. Recipes",[250,254,258,262,266,270,274,278],{"id":251,"text":252,"depth":20,"children":253},"s17-1","17.1. A new read (Query)",[],{"id":255,"text":256,"depth":20,"children":257},"s17-2","17.2. A new change without background state (Command)",[],{"id":259,"text":260,"depth":20,"children":261},"s17-3","17.3. A new slice",[],{"id":263,"text":264,"depth":20,"children":265},"s17-4","17.4. A new flow with state (actor)",[],{"id":267,"text":268,"depth":20,"children":269},"s17-5","17.5. A new driver (the outside world)",[],{"id":271,"text":272,"depth":20,"children":273},"s17-6","17.6. A new event for the window",[],{"id":275,"text":276,"depth":20,"children":277},"s17-7","17.7. A new platform",[],{"id":279,"text":280,"depth":20,"children":281},"s17-8","17.8. Where does this go? (decision tree)",[],{"id":283,"text":284,"depth":15,"children":285},"s18","18. Working with coding agents",[],{"id":287,"text":288,"depth":15,"children":289},"s19","19. Migrating an existing codebase",[290,294,298,302],{"id":291,"text":292,"depth":20,"children":293},"s19-1","19.1. The order",[],{"id":295,"text":296,"depth":20,"children":297},"s19-2","19.2. Rules of migration",[],{"id":299,"text":300,"depth":20,"children":301},"s19-3","19.3. Layout first, a faster start",[],{"id":303,"text":304,"depth":20,"children":305},"s19-4","19.4. What usually goes wrong",[],{"id":307,"text":308,"depth":15,"children":309},"s20","20. Case study: Quayside",[310,314,318,322],{"id":311,"text":312,"depth":20,"children":313},"s20-1","20.1. Before",[],{"id":315,"text":316,"depth":20,"children":317},"s20-2","20.2. Symptoms in the code",[],{"id":319,"text":320,"depth":20,"children":321},"s20-3","20.3. The migration, step by step",[],{"id":323,"text":324,"depth":20,"children":325},"s20-4","20.4. After",[],{"id":327,"text":328,"depth":15,"children":329},"s21","21. Adoption checklist and FAQ",[330,334,338],{"id":331,"text":332,"depth":20,"children":333},"s21-1","21.1. Checklist for a new project",[],{"id":335,"text":336,"depth":20,"children":337},"s21-2","21.2. Checklist for an existing project",[],{"id":339,"text":340,"depth":20,"children":341},"s21-3","21.3. Questions",[],{"id":343,"text":344,"depth":15,"children":345},"s22","22. Build and test time",[346,350,354,358,362,366,370,374],{"id":347,"text":348,"depth":20,"children":349},"s22-1","22.1. Where the time goes",[],{"id":351,"text":352,"depth":20,"children":353},"s22-2","22.2. Build settings",[],{"id":355,"text":356,"depth":20,"children":357},"s22-3","22.3. One set of features",[],{"id":359,"text":360,"depth":20,"children":361},"s22-4","22.4. Run what a change can affect",[],{"id":363,"text":364,"depth":20,"children":365},"s22-5","22.5. Many working copies",[],{"id":367,"text":368,"depth":20,"children":369},"s22-6","22.6. CI",[],{"id":371,"text":372,"depth":20,"children":373},"s22-7","22.7. What makes a build start over",[],{"id":375,"text":376,"depth":20,"children":377},"s22-8","22.8. Clean target\u002F",[],{"id":379,"text":380,"depth":15,"children":381},"s23","23. Plugins",[382,386,390,394,398,402,406,410,414,418,422],{"id":383,"text":384,"depth":20,"children":385},"s23-1","23.1. When a feature is a plugin",[],{"id":387,"text":388,"depth":20,"children":389},"s23-2","23.2. Layout",[],{"id":391,"text":392,"depth":20,"children":393},"s23-3","23.3. Direction",[],{"id":395,"text":396,"depth":20,"children":397},"s23-4","23.4. Extension points",[],{"id":399,"text":400,"depth":20,"children":401},"s23-5","23.5. On and off",[],{"id":403,"text":404,"depth":20,"children":405},"s23-6","23.6. Front-end",[],{"id":407,"text":408,"depth":20,"children":409},"s23-7","23.7. A plugin in its own crate",[],{"id":411,"text":412,"depth":20,"children":413},"s23-8","23.8. Testing",[],{"id":415,"text":416,"depth":20,"children":417},"s23-9","23.9. Turning an existing slice into a plugin",[],{"id":419,"text":420,"depth":20,"children":421},"s23-10","23.10. Enforcement",[],{"id":423,"text":424,"depth":20,"children":425},"s23-11","23.11. Plugins from outside",[],{"id":427,"text":428,"depth":15,"children":429},"s24","24. Plugin packages",[430,434,438,442,446,450,454,458,462,466,470],{"id":431,"text":432,"depth":20,"children":433},"s24-1","24.1. Built-in plugin or package",[],{"id":435,"text":436,"depth":20,"children":437},"s24-2","24.2. The process rule",[],{"id":439,"text":440,"depth":20,"children":441},"s24-3","24.3. Layout",[],{"id":443,"text":444,"depth":20,"children":445},"s24-4","24.4. The manifest",[],{"id":447,"text":448,"depth":20,"children":449},"s24-5","24.5. The protocol",[],{"id":451,"text":452,"depth":20,"children":453},"s24-6","24.6. Extension points for packages",[],{"id":455,"text":456,"depth":20,"children":457},"s24-7","24.7. Signing and the store",[],{"id":459,"text":460,"depth":20,"children":461},"s24-8","24.8. Life cycle",[],{"id":463,"text":464,"depth":20,"children":465},"s24-9","24.9. Permissions",[],{"id":467,"text":468,"depth":20,"children":469},"s24-10","24.10. Testing",[],{"id":471,"text":472,"depth":20,"children":473},"s24-11","24.11. Enforcement",[],{"id":475,"text":476,"depth":15,"children":477},"s25","25. Version history",[],77,1795449738167]