Tests / @ogygia/data-shake

@ogygia/data-shake

Version 0.14.0 latest
commit 620ddcca
212 test runs (212 tests, each run in Node, the browsers or both)
1.27× lines of test for each line of source (1,332 to 1,052) Only real test code counts: test files and their helpers, not fixtures, sample apps or benches. Blank lines are left out on both sides.
Exactly what is counted non-blank lines of test code across the repo (*.test.ts, *.test-d.ts, *.spec.ts, and the .ts helpers in test/ and e2e/ folders; no fixtures, fixture apps, stubs or benches), over non-blank lines of packages/*/src (no .d.ts or generated files)
94.1% of source lines run by the tests
  • 212Unit
  • 0Browser
  • 0End to end
  • 0Type tests
  • 0Lint rules
  • 0Failing

Coverage

  • 94.1%Lines
  • 83.2%Branches
  • 95.7%Functions
  • 91.3%Statements

Every test

212 tests

TestKindNodeChromiumFirefoxWebKit
packages/data-shake/test/page-keys-soundness.test.ts
a get() or derived() that is not svelte/store > a followed helper reading through svelte/store get is still summarizedUnitpassnot runnot runnot run
a get() or derived() that is not svelte/store > function get(o, k) { return o.data[k]; } use(get(page, 'b').url); answers all or follows the callUnitpassnot runnot runnot run
a get() or derived() that is not svelte/store > import { derived } from './my-derived'; derived(page, (p) => p.url); answers all or follows the callUnitpassnot runnot runnot run
a get() or derived() that is not svelte/store > import { derived } from 'svelte/store'; const d = derived(page, (p) => p.data.b); still reads b aloneUnitpassnot runnot runnot run
a get() or derived() that is not svelte/store > import { derived } from 'svelte/store'; const pick = (p) => p.data.b; derived(page, pick); answers all or follows the callUnitpassnot runnot runnot run
a get() or derived() that is not svelte/store > import { derived } from 'svelte/store'; import { pick } from './pick'; derived(page, pick); answers all or follows the callUnitpassnot runnot runnot run
a get() or derived() that is not svelte/store > import { derived as d } from 'svelte/store'; const s = d([page], ([p]) => p.data.b); still reads b aloneUnitpassnot runnot runnot run
a get() or derived() that is not svelte/store > import { get } from 'lodash-es'; const v = get(page, 'data.b'); use(v.params); answers all or follows the callUnitpassnot runnot runnot run
a get() or derived() that is not svelte/store > import { get } from 'lodash-es'; use(get(page, 'data.b').url); answers all or follows the callUnitpassnot runnot runnot run
a get() or derived() that is not svelte/store > import { get } from 'svelte/store'; use(get(page).data.b); still reads b aloneUnitpassnot runnot runnot run
a get() or derived() that is not svelte/store > import { get as read } from 'svelte/store'; use(read(page).data.b); still reads b aloneUnitpassnot runnot runnot run
an imported helper handed the page is summarized soundly > export const h = (p, { b } = p.data) => b;Unitpassnot runnot runnot run
an imported helper handed the page is summarized soundly > export const h = (p) => p.data?.b;Unitpassnot runnot runnot run
an imported helper handed the page is summarized soundly > export function h(...ps) { return ps[0].data.b; }Unitpassnot runnot runnot run
an imported helper handed the page is summarized soundly > export function h(p, q = p.data.b) { return q; }Unitpassnot runnot runnot run
an imported helper handed the page is summarized soundly > export function h(p) { const d = p.data; return d.b; }Unitpassnot runnot runnot run
an imported helper handed the page is summarized soundly > export function h(p) { const q = p; return q.data.b; }Unitpassnot runnot runnot run
an imported helper handed the page is summarized soundly > export function h(p) { const r = arguments; return r[0].data.b; }Unitpassnot runnot runnot run
an imported helper handed the page is summarized soundly > export function h(p) { function inner() { return p.data.b; } return inner(); }Unitpassnot runnot runnot run
an imported helper handed the page is summarized soundly > export function h(p) { let q; q = p; return q.data.b; }Unitpassnot runnot runnot run
an imported helper handed the page is summarized soundly > export function h(p) { return [p][0].data.b; }Unitpassnot runnot runnot run
an imported helper handed the page is summarized soundly > export function h(p) { return arguments[0].data.b; }Unitpassnot runnot runnot run
an imported helper handed the page is summarized soundly > export function h(p) { return p.data.b; }Unitpassnot runnot runnot run
an imported helper handed the page is summarized soundly > export function h(p) { return p.url; } h = (p) => p.data.b;Unitpassnot runnot runnot run
an imported helper handed the page is summarized soundly > export let h = (p) => p.url; h = (p) => p.data.b;Unitpassnot runnot runnot run
an imported helper handed the page is summarized soundly > function g(p) { return p.data.b; } export { g as h };Unitpassnot runnot runnot run
an imported helper handed the page is summarized soundly > function h(p) { return p.url; } export { h }; h = (p) => p.data.b;Unitpassnot runnot runnot run
page.data seed shaping is sound > { const window = undefined; use(typeof window === 'undefined' ? page.data.b : 0); }Unitpassnot runnot runnot run
page.data seed shaping is sound > class V0 { m() { return page.data.b; } } use(new V0().m());Unitpassnot runnot runnot run
page.data seed shaping is sound > const [v0] = [page.data]; use(v0.b);Unitpassnot runnot runnot run
page.data seed shaping is sound > const { b: v0 } = page.data; use(v0);Unitpassnot runnot runnot run
page.data seed shaping is sound > const { b: v0, ...v1 } = page.data; use(v0);Unitpassnot runnot runnot run
page.data seed shaping is sound > const { data: { b: v0 } } = page; use(v0);Unitpassnot runnot runnot run
page.data seed shaping is sound > const { data: v0 } = page; use(v0.b);Unitpassnot runnot runnot run
page.data seed shaping is sound > const v0 = 'b'; use(page.data[v0]);Unitpassnot runnot runnot run
page.data seed shaping is sound > const v0 = () => page.data.b; use(v0());Unitpassnot runnot runnot run
page.data seed shaping is sound > const v0 = (0, page.data); use(v0.b);Unitpassnot runnot runnot run
page.data seed shaping is sound > const v0 = (o = page.data) => o.b; use(v0());Unitpassnot runnot runnot run
page.data seed shaping is sound > const v0 = (o) => o.data.b; use(v0(page));Unitpassnot runnot runnot run
page.data seed shaping is sound > const v0 = [page]; use(v0[0].data.b);Unitpassnot runnot runnot run
page.data seed shaping is sound > const v0 = { get x() { return page.data.b; } }; use(v0.x);Unitpassnot runnot runnot run
page.data seed shaping is sound > const v0 = { p: page }; use(v0.p.data.b);Unitpassnot runnot runnot run
page.data seed shaping is sound > const v0 = page; use(v0.data.b);Unitpassnot runnot runnot run
page.data seed shaping is sound > const v0 = page.data ?? {}; use(v0.b);Unitpassnot runnot runnot run
page.data seed shaping is sound > const v0 = page.data; { const v0 = { z: 1 }; use(v0.z); } use(v0.b);Unitpassnot runnot runnot run
page.data seed shaping is sound > const v0 = page.data; use(v0.b);Unitpassnot runnot runnot run
page.data seed shaping is sound > const v0 = true ? page.data : null; use(v0.b);Unitpassnot runnot runnot run
page.data seed shaping is sound > for (const v0 in page.data) use(0);Unitpassnot runnot runnot run
page.data seed shaping is sound > function v0({ data } = page) { return data.b; } use(v0());Unitpassnot runnot runnot run
page.data seed shaping is sound > function v0({ data }) { return data.b; } use(v0(page));Unitpassnot runnot runnot run
page.data seed shaping is sound > function v0(o) { return o.b; } use(v0(page.data));Unitpassnot runnot runnot run
page.data seed shaping is sound > function v0(p = page) { return p.data.b; } use(v0());Unitpassnot runnot runnot run
page.data seed shaping is sound > function v0(p, q = p.data.b) { return q; } use(v0(page));Unitpassnot runnot runnot run
page.data seed shaping is sound > function v0(p) { const q = p; return q.data.b; } use(v0(page));Unitpassnot runnot runnot run
page.data seed shaping is sound > function v0(p) { return arguments[0].data.b; } use(v0(page));Unitpassnot runnot runnot run
page.data seed shaping is sound > function v0(p) { return p.url; } function v1() { const v0 = (p) => p.data.b; return v0(page); } use(v1());Unitpassnot runnot runnot run
page.data seed shaping is sound > function v0(p) { return p.url; } v0 = (p) => p.data.b; use(v0(page));Unitpassnot runnot runnot run
page.data seed shaping is sound > let v0 = (p) => p.url; v0 = (p) => p.data.b; use(v0(page));Unitpassnot runnot runnot run
page.data seed shaping is sound > let v0; ({ b: v0 } = page.data); use(v0);Unitpassnot runnot runnot run
page.data seed shaping is sound > let v0; v0 = page.data; use(v0.b);Unitpassnot runnot runnot run
page.data seed shaping is sound > over generated mixes of the shapesUnitpassnot runnot runnot run
page.data seed shaping is sound > use('b' in page.data);Unitpassnot runnot runnot run
page.data seed shaping is sound > use(((x) => x)(page.data).b);Unitpassnot runnot runnot run
page.data seed shaping is sound > use((page.data).b);Unitpassnot runnot runnot run
page.data seed shaping is sound > use([page.data][0].b);Unitpassnot runnot runnot run
page.data seed shaping is sound > use([page]);Unitpassnot runnot runnot run
page.data seed shaping is sound > use([page][0].data.b);Unitpassnot runnot runnot run
page.data seed shaping is sound > use({ ...page.data });Unitpassnot runnot runnot run
page.data seed shaping is sound > use(JSON.stringify(page.data));Unitpassnot runnot runnot run
page.data seed shaping is sound > use(Object.hasOwn(page.data, 'b'));Unitpassnot runnot runnot run
page.data seed shaping is sound > use(Object.keys(page.data));Unitpassnot runnot runnot run
page.data seed shaping is sound > use(page?.data?.b);Unitpassnot runnot runnot run
page.data seed shaping is sound > use(page.data?.b);Unitpassnot runnot runnot run
page.data seed shaping is sound > use(page.data.b = page.data.b);Unitpassnot runnot runnot run
page.data seed shaping is sound > use(page.data.b, page.data);Unitpassnot runnot runnot run
page.data seed shaping is sound > use(page.data.b?.x);Unitpassnot runnot runnot run
page.data seed shaping is sound > use(page.data.b.toString());Unitpassnot runnot runnot run
page.data seed shaping is sound > use(page.data.b);Unitpassnot runnot runnot run
page.data seed shaping is sound > use(page.data.hasOwnProperty('b'));Unitpassnot runnot runnot run
page.data seed shaping is sound > use(page.data.valueOf().b);Unitpassnot runnot runnot run
page.data seed shaping is sound > use(page.data['b']);Unitpassnot runnot runnot run
page.data seed shaping is sound > use(page.data[('b')]);Unitpassnot runnot runnot run
page.data seed shaping is sound > use(page.data[`b`]);Unitpassnot runnot runnot run
page.data seed shaping is sound > use(page['data'].b);Unitpassnot runnot runnot run
page.data seed shaping is sound > use(Reflect.get(page.data, 'b'));Unitpassnot runnot runnot run
the page store re-exported or imported dynamically > a re-export of another name from the page module answers nullUnitpassnot runnot runnot run
the page store re-exported or imported dynamically > const { page } = await import('$app/state'); use(page.data.b); answers allUnitpassnot runnot runnot run
the page store re-exported or imported dynamically > export { page } from '$app/state'; answers allUnitpassnot runnot runnot run
the page store re-exported or imported dynamically > export { page as p } from '$app/stores'; answers allUnitpassnot runnot runnot run
the page store re-exported or imported dynamically > export * as app from '$app/state'; answers allUnitpassnot runnot runnot run
the page store re-exported or imported dynamically > export * from '$app/state'; answers allUnitpassnot runnot runnot run
the page store re-exported or imported dynamically > import { getStores } from '$app/stores'; const { page } = getStores(); page.subscribe((p) => use(p.data.b)); answers allUnitpassnot runnot runnot run
the page store re-exported or imported dynamically > import { getStores as stores } from '$app/stores'; use(stores().page); answers allUnitpassnot runnot runnot run
the page store re-exported or imported dynamically > import { page } from '$app/state'; export { page as p } from '$app/state'; use(page.data.a); answers allUnitpassnot runnot runnot run
the page store re-exported or imported dynamically > import('$app/stores').then((m) => use(m.page)); answers allUnitpassnot runnot runnot run
packages/data-shake/test/page-keys-summaries.test.ts
a followed function rebound by destructuring is not followed > ((f) = (p) => p.data.b);Unitpassnot runnot runnot run
a followed function rebound by destructuring is not followed > ({ ...f } = {});Unitpassnot runnot runnot run
a followed function rebound by destructuring is not followed > ({ f } = { f: (p) => p.data.b });Unitpassnot runnot runnot run
a followed function rebound by destructuring is not followed > ({ f = (p) => p.data.b } = {});Unitpassnot runnot runnot run
a followed function rebound by destructuring is not followed > ({ x: f } = { x: (p) => p.data.b });Unitpassnot runnot runnot run
a followed function rebound by destructuring is not followed > (f as any) = (p) => p.data.b;Unitpassnot runnot runnot run
a followed function rebound by destructuring is not followed > [...[f]] = [(p) => p.data.b];Unitpassnot runnot runnot run
a followed function rebound by destructuring is not followed > [f = (p) => p.data.b] = [];Unitpassnot runnot runnot run
a followed function rebound by destructuring is not followed > [f] = [(p) => p.data.b];Unitpassnot runnot runnot run
a read in a branch the browser can take counts > flag && use(page.data.b);Unitpassnot runnot runnot run
a read in a branch the browser can take counts > if (!!flag) use(page.data.b);Unitpassnot runnot runnot run
a read in a branch the browser can take counts > if (!(typeof window !== 'undefined')) use(page.data.b); is server onlyUnitpassnot runnot runnot run
a read in a branch the browser can take counts > if (!(typeof window === 'undefined')) use(page.data.b);Unitpassnot runnot runnot run
a read in a branch the browser can take counts > if (!flag) use(page.data.b);Unitpassnot runnot runnot run
a read in a branch the browser can take counts > if (!import.meta.env.SSR) use(page.data.b);Unitpassnot runnot runnot run
a read in a branch the browser can take counts > if ('undefined' !== typeof document) use(page.data.b);Unitpassnot runnot runnot run
a read in a branch the browser can take counts > if ('undefined' === typeof window) use(page.data.b); is server onlyUnitpassnot runnot runnot run
a read in a branch the browser can take counts > if (env.SSR) use(page.data.b);Unitpassnot runnot runnot run
a read in a branch the browser can take counts > if (flag) use(page.data.b);Unitpassnot runnot runnot run
a read in a branch the browser can take counts > if (import.meta.env.DEV) use(page.data.b);Unitpassnot runnot runnot run
a read in a branch the browser can take counts > if (import.meta.env.SSR) {} else use(page.data.b);Unitpassnot runnot runnot run
a read in a branch the browser can take counts > if (import.meta.env.SSR) use(page.data.b); is server onlyUnitpassnot runnot runnot run
a read in a branch the browser can take counts > if (import.meta.env[SSR]) use(page.data.b);Unitpassnot runnot runnot run
a read in a branch the browser can take counts > if (typeof document == 'undefined') use(page.data.b); is server onlyUnitpassnot runnot runnot run
a read in a branch the browser can take counts > if (typeof foo === 'undefined') use(page.data.b);Unitpassnot runnot runnot run
a read in a branch the browser can take counts > if (typeof window != 'undefined') use(page.data.b);Unitpassnot runnot runnot run
a read in a branch the browser can take counts > if (typeof window !== 'undefined') use(page.data.b);Unitpassnot runnot runnot run
a read in a branch the browser can take counts > if (typeof window < 'undefined') use(page.data.b);Unitpassnot runnot runnot run
a read in a branch the browser can take counts > if (typeof window === 'object') use(page.data.b);Unitpassnot runnot runnot run
a read in a branch the browser can take counts > if (typeof window === 'string') use(page.data.b);Unitpassnot runnot runnot run
a read in a branch the browser can take counts > if (typeof window === 'undefined') {} else use(page.data.b);Unitpassnot runnot runnot run
a read in a branch the browser can take counts > if (typeof window === 'undefined') use(page.data.b); is server onlyUnitpassnot runnot runnot run
a read in a branch the browser can take counts > if (void window === 'undefined') use(page.data.b);Unitpassnot runnot runnot run
a read in a branch the browser can take counts > typeof window === 'undefined' && use(page.data.b); is server onlyUnitpassnot runnot runnot run
a read in a branch the browser can take counts > use(typeof window === 'undefined' ? 0 : page.data.b);Unitpassnot runnot runnot run
a read in a branch the browser can take counts > use(typeof window === 'undefined' ? page.data.b : 0); is server onlyUnitpassnot runnot runnot run
a renamed re-export is followed under its source name > `export { g as h }` looks for g, not h, in the source moduleUnitpassnot runnot runnot run
summarize_export answers exactly > a component that does not parse gives upUnitpassnot runnot runnot run
summarize_export answers exactly > a default-imported helper handed the page is followed by its default exportUnitpassnot runnot runnot run
summarize_export answers exactly > const g = (p) => p.data.b; export { g as h }; (h, arg 0)Unitpassnot runnot runnot run
summarize_export answers exactly > const g = function (p) { return p.data.b; }; export { g as h }; (h, arg 0)Unitpassnot runnot runnot run
summarize_export answers exactly > export { g as h } from './x'; (h, arg 0)Unitpassnot runnot runnot run
summarize_export answers exactly > export { h } from './b'; export * from './a'; (h, arg 0)Unitpassnot runnot runnot run
summarize_export answers exactly > export { h } from './x'; (h, arg 0)Unitpassnot runnot runnot run
summarize_export answers exactly > export * from './a'; export { h } from './b'; (h, arg 0)Unitpassnot runnot runnot run
summarize_export answers exactly > export * from './a'; export function h(p) { return p.data.b; } (h, arg 0)Unitpassnot runnot runnot run
summarize_export answers exactly > export class h { constructor(p) { this.b = p.data.b; } } (h, arg 0)Unitpassnot runnot runnot run
summarize_export answers exactly > export const a = (p) => p.data.a, h = (p) => p.data.b; (h, arg 0)Unitpassnot runnot runnot run
summarize_export answers exactly > export const h = (p) => p.data.b; (h, arg 0)Unitpassnot runnot runnot run
summarize_export answers exactly > export const h = (p) => p.data.b; (k, arg 0)Unitpassnot runnot runnot run
summarize_export answers exactly > export const h = 1; (h, arg 0)Unitpassnot runnot runnot run
summarize_export answers exactly > export const h = function (p) { return p.data.b; }; (h, arg 0)Unitpassnot runnot runnot run
summarize_export answers exactly > export function h(a, p) { return p.data.b + a.data.a; } (h, arg 1)Unitpassnot runnot runnot run
summarize_export answers exactly > export function h(a, p) { return p.url; } (h, arg 1)Unitpassnot runnot runnot run
summarize_export answers exactly > export function h(p) { return p.data.b; (h, arg 0)Unitpassnot runnot runnot run
summarize_export answers exactly > export function h(p) { return p.data.b; } export function k(p) { return p.url; } (h, arg 0)Unitpassnot runnot runnot run
summarize_export answers exactly > export function h(p) { return p.data.b; } (h, arg 0)Unitpassnot runnot runnot run
summarize_export answers exactly > function g(p) { return p.data.b; } export { g as h }; (h, arg 0)Unitpassnot runnot runnot run
summarize_export answers exactly > function outer() { const g = (p) => p.url; return g; } const g = (p) => p.data.b; export { g as h }; (h, arg 0)Unitpassnot runnot runnot run
summarize_export answers exactly > function outer() { function g(p) { return p.url; } return g; } function g(p) { return p.data.b; } export { g as h }; (h, arg 0)Unitpassnot runnot runnot run
summarize_export answers exactly > import { g } from './x'; export { g as h }; (h, arg 0)Unitpassnot runnot runnot run
summarize_export answers exactly > import { g } from './x'; export const k = 1; (h, arg 0)Unitpassnot runnot runnot run
summarize_export answers exactly > import { k as g } from './x'; export { g as h }; (h, arg 0)Unitpassnot runnot runnot run
summarize_export answers exactly > names the line of the read that ships all, not the module's lastUnitpassnot runnot runnot run
summarize_export answers exactly > page_data_keys: const f = function (p) { return p.data.b; }; use(f(page));Unitpassnot runnot runnot run
summarize_export answers exactly > page_data_keys: function f() { return arguments.length; } use(f(), page.data.b);Unitpassnot runnot runnot run
summarize_export answers exactly > page_data_keys: use(page.data.b); const = ;Unitpassnot runnot runnot run
summarize_export answers exactly > reads a component module scriptUnitpassnot runnot runnot run
packages/data-shake/test/page-keys.test.ts
follow_pending_page_calls > an `export *` fan-out is searched; a helper that hands the page on → all with a reasonUnitpassnot runnot runnot run
follow_pending_page_calls > an unresolvable specifier → all, named in the reasonUnitpassnot runnot runnot run
follow_pending_page_calls > follows getParams(page) through a barrel to its url-only reader; url(page) adds its keyUnitpassnot runnot runnot run
merge_page_keys > unions sets, all absorbs, null is identityUnitpassnot runnot runnot run
page_data_keys — a branch the browser never takes > a read under typeof window === 'undefined' or import.meta.env.SSR is not the client'sUnitpassnot runnot runnot run
page_data_keys — a branch the browser never takes > the client branch still counts: typeof window !== 'undefined', and the else of a server testUnitpassnot runnot runnot run
page_data_keys — call following > a helper of the same module is followed: its parameter is the page inside itUnitpassnot runnot runnot run
page_data_keys — call following > an imported helper is recorded as pending, the rest of the module still pinnedUnitpassnot runnot runnot run
page_data_keys — call following > summarize_export: a barrel re-export says where to followUnitpassnot runnot runnot run
page_data_keys — call following > summarize_export: what the helper reads of its page parameterUnitpassnot runnot runnot run
page_data_keys — components > $page?.data?.key in the script and page.data.key in the templateUnitpassnot runnot runnot run
page_data_keys — components > a component that only reads params → empty setUnitpassnot runnot runnot run
page_data_keys — components > a module script and an {#each} over page dataUnitpassnot runnot runnot run
page_data_keys — components > the palaestra reader that hands page.data to an arrow → allUnitpassnot runnot runnot run
page_data_keys — doubt goes to all > a same-named unrelated identifier is not the page: `foo.page`, `pageContent`Unitpassnot runnot runnot run
page_data_keys — doubt goes to all > dynamic index, subscribe, namespace import, the whole page passed to a functionUnitpassnot runnot runnot run
page_data_keys — doubt goes to all > page.data used whole: passed on, spread, compared, returnedUnitpassnot runnot runnot run
page_data_keys — doubt goes to all > prose that says "page" is not a referenceUnitpassnot runnot runnot run
page_data_keys — doubt goes to all > the data object aliased or destructured off the pageUnitpassnot runnot runnot run
page_data_keys — guards and subscribers > `const { a, b } = $page?.data || {}` names its keys; a subscriber parameter is the pageUnitpassnot runnot runnot run
page_data_keys — ogygia's own Region parts > Region's page seed ask reads no page.data, so a hole's or a lake's endpoint never looks its page up for itUnitpassnot runnot runnot run
page_data_keys — safe built-ins > Object.keys(page) reads names only; isEmpty(page) from a library still hands the page onUnitpassnot runnot runnot run
page_data_keys — scripts > $app/state: page.data.key, optional chaining, nested paths keep the top-level keyUnitpassnot runnot runnot run
page_data_keys — scripts > a local name that shadows svelte/store get is a plain call that takes the pageUnitpassnot runnot runnot run
page_data_keys — scripts > a template call into a helper of the script follows aliases the helper makesUnitpassnot runnot runnot run
page_data_keys — scripts > an aliased import nameUnitpassnot runnot runnot run
page_data_keys — scripts > bracket access with a string literalUnitpassnot runnot runnot run
page_data_keys — scripts > derived(page, ($page) => …) and derived([a, page], ([$a, $page]) => …) name the page parameterUnitpassnot runnot runnot run
page_data_keys — scripts > destructuring page.data names its keysUnitpassnot runnot runnot run
page_data_keys — scripts > get(page).data.key, and the whole page aliased then read (the analytics helper)Unitpassnot runnot runnot run
page_data_keys — scripts > null for a module that never names the page store, even one that does not parseUnitpassnot runnot runnot run
page_data_keys — scripts > null when the module never imports the pageUnitpassnot runnot runnot run
page_data_keys — scripts > only url / params / route / status reads → an empty set (the seed still ships, data empty)Unitpassnot runnot runnot run
page_data_keys — the demented cases > a reason names the construct and the lineUnitpassnot runnot runnot run
page_data_keys — the demented cases > a shadowing local named page in an inner scope is over-approximated, never a crashUnitpassnot runnot runnot run
page_data_keys — the demented cases > an alias declared in one function is not applied in a sibling functionUnitpassnot runnot runnot run
page_data_keys — the demented cases > an alias is scoped to its function: an unrelated `value` elsewhere is not the pageUnitpassnot runnot runnot run
page_data_keys — the demented cases > component: <style lang="scss"> with // comments does not stop the analysisUnitpassnot runnot runnot run
page_data_keys — the demented cases > component: a spread of page.data into attributes → allUnitpassnot runnot runnot run
page_data_keys — the demented cases > component: runes — $state, $derived.by, $effect, class fields; legacy context="module"Unitpassnot runnot runnot run
page_data_keys — the demented cases > component: template constructs — {#if} {#each} {#await} {@const} {@html} attributes, bind:, handlers, snippets, svelte:headUnitpassnot runnot runnot run
page_data_keys — the demented cases > component: the whole page passed to a helper in the template → all, with the reasonUnitpassnot runnot runnot run
page_data_keys — the demented cases > scale: a long module with many reads stays linear and exactUnitpassnot runnot runnot run
page_data_keys — the demented cases > TypeScript wrappers: as / ! / satisfies / parentheses around the page or page.dataUnitpassnot runnot runnot run
page_data_keys — the PENDING13 shape > `if (!page?.url) return` keeps a helper summarizable as url/params-onlyUnitpassnot runnot runnot run
packages/data-shake/test/plugin.test.ts
dataShake() > registers one seed-shaping answer with the buildUnitpassnot runnot runnot run
page_reads > a helper call is unknown until settled, then folds in its keysUnitpassnot runnot runnot run
page_reads > an unpinned read is 'unknown' with its line; a module that never reads the page is nullUnitpassnot runnot runnot run
page_reads > dev: the files' keys together, a helper followed; an unresolved helper is unknown with whyUnitpassnot runnot runnot run