@@ -18,27 +18,29 @@ function runAdapter(script: string, args: string[], marker: string, env?: NodeJS
1818 } catch { return null ; }
1919}
2020
21- // TS/JS use deterministic stride subsets for speed; the rest run their full corpus.
21+ // Both metrics now run through ONE data-driven driver each, parameterised by the `<lang>` code
22+ // (test/scope-gap-run.ts, test/src-coverage-run.ts). TS/JS use deterministic stride subsets for
23+ // speed; the rest run their full corpus.
2224const COV = [
23- { lang : 'TypeScript' , script : 'test/src-coverage-ts .ts' , args : [ '1500' ] } ,
24- { lang : 'JavaScript' , script : 'test/src-coverage-js .ts' , args : [ '800' ] } ,
25- { lang : 'JSX' , script : 'test/src-coverage-jsx .ts' , args : [ ] } ,
26- { lang : 'TSX' , script : 'test/src-coverage-tsx .ts' , args : [ ] } ,
27- { lang : 'HTML' , script : 'test/src-coverage-html .ts' , args : [ ] } ,
28- { lang : 'YAML' , script : 'test/src-coverage-yaml .ts' , args : [ ] } ,
25+ { lang : 'TypeScript' , script : 'test/src-coverage-run .ts' , args : [ 'ts' , '1500' ] } ,
26+ { lang : 'JavaScript' , script : 'test/src-coverage-run .ts' , args : [ 'js' , '800' ] } ,
27+ { lang : 'JSX' , script : 'test/src-coverage-run .ts' , args : [ 'jsx' ] } ,
28+ { lang : 'TSX' , script : 'test/src-coverage-run .ts' , args : [ 'tsx' ] } ,
29+ { lang : 'HTML' , script : 'test/src-coverage-run .ts' , args : [ 'html' ] } ,
30+ { lang : 'YAML' , script : 'test/src-coverage-run .ts' , args : [ 'yaml' ] } ,
2931] ;
30- // The 4 TS-family scope-gap adapters all read ONE shared env var (MONOGRAM_OFFICIAL_TM) for
31- // the official grammar, so each needs its OWN grammar mapped in (CI sets MONOGRAM_OFFICIAL_TS/
32- // TSX/JS/JSX). html/yaml read their own var (MONOGRAM_OFFICIAL_HTML/_YAML), inherited as-is;
33- // vue is vendored. Absent (local, no env) → each adapter 's VS Code-install fallback path.
32+ // The 4 TS-family scope-gap entries all read ONE shared env var (MONOGRAM_OFFICIAL_TM) for the
33+ // official grammar, so each needs its OWN grammar mapped in (CI sets MONOGRAM_OFFICIAL_TS/TSX/JS/JSX).
34+ // html/yaml read their own var (MONOGRAM_OFFICIAL_HTML/_YAML), inherited as-is; vue is vendored.
35+ // Absent (local, no env) → the driver 's VS Code-install fallback path.
3436const GAP = [
35- { lang : 'TypeScript' , script : 'test/scope-gap-ts .ts' , args : [ '800' ] , officialEnv : 'MONOGRAM_OFFICIAL_TS' } ,
36- { lang : 'JavaScript' , script : 'test/scope-gap-js .ts' , args : [ '800' ] , officialEnv : 'MONOGRAM_OFFICIAL_JS' } ,
37- { lang : 'JSX' , script : 'test/scope-gap-jsx .ts' , args : [ ] , officialEnv : 'MONOGRAM_OFFICIAL_JSX' } ,
38- { lang : 'TSX' , script : 'test/scope-gap-tsx .ts' , args : [ ] , officialEnv : 'MONOGRAM_OFFICIAL_TSX' } ,
39- { lang : 'HTML' , script : 'test/scope-gap-html .ts' , args : [ ] } ,
40- { lang : 'YAML' , script : 'test/scope-gap-yaml .ts' , args : [ ] } ,
41- { lang : 'Vue' , script : 'test/scope-gap-vue .ts' , args : [ ] } ,
37+ { lang : 'TypeScript' , script : 'test/scope-gap-run .ts' , args : [ 'ts' , '800' ] , officialEnv : 'MONOGRAM_OFFICIAL_TS' } ,
38+ { lang : 'JavaScript' , script : 'test/scope-gap-run .ts' , args : [ 'js' , '800' ] , officialEnv : 'MONOGRAM_OFFICIAL_JS' } ,
39+ { lang : 'JSX' , script : 'test/scope-gap-run .ts' , args : [ 'jsx' ] , officialEnv : 'MONOGRAM_OFFICIAL_JSX' } ,
40+ { lang : 'TSX' , script : 'test/scope-gap-run .ts' , args : [ 'tsx' ] , officialEnv : 'MONOGRAM_OFFICIAL_TSX' } ,
41+ { lang : 'HTML' , script : 'test/scope-gap-run .ts' , args : [ 'html' ] } ,
42+ { lang : 'YAML' , script : 'test/scope-gap-run .ts' , args : [ 'yaml' ] } ,
43+ { lang : 'Vue' , script : 'test/scope-gap-run .ts' , args : [ 'vue' ] } ,
4244] as { lang : string ; script : string ; args : string [ ] ; officialEnv ?: string } [ ] ;
4345
4446const pct = ( v : number | null | undefined ) => ( v == null ? '—' : v . toFixed ( 1 ) + '%' ) ;
0 commit comments