@@ -9,10 +9,10 @@ import * as testBom from "./test-bom.js";
99import * as testEndOfLine from "./test-end-of-line.js" ;
1010import * as testSecondFormat from "./test-second-format.js" ;
1111import * as testBytecodeCompare from "./test-bytecode-compare.js" ;
12+ import * as testVariantCoverage from "./test-variant-coverage.js" ;
1213import { shouldThrowOnFormat } from "./utilities.js" ;
1314import getPrettier from "./get-prettier.js" ;
1415import getCreateParser from "./get-create-parser.js" ;
15- import getVariantCoverage from "./get-variant-coverage.js" ;
1616import getPlugins from "./get-plugins.js" ;
1717
1818async function runTest ( {
@@ -70,11 +70,7 @@ async function runTest({
7070
7171 if ( formatOptions . parser === "slang" ) {
7272 const createParser = await getCreateParser ( ) ;
73- const variantCoverage = await getVariantCoverage ( ) ;
74- const { parser, parseOutput } = createParser ( code , formatOptions ) ;
75-
76- // Check coverage
77- variantCoverage ( parseOutput . tree . asNonterminalNode ( ) ) ;
73+ const { parser } = createParser ( code , formatOptions ) ;
7874
7975 if ( ! failedTests . isAntlrMismatch ( filename , formatOptions ) ) {
8076 // Compare with ANTLR's format
@@ -91,6 +87,7 @@ async function runTest({
9187 }
9288 }
9389
90+ await testVariantCoverage . run ( code , formatResult , filename , formatOptions ) ;
9491 await testSecondFormat . run ( code , formatResult , filename , formatOptions ) ;
9592 await testAstCompare . run ( code , formatResult , filename , formatOptions ) ;
9693 await testEndOfLine . run ( code , formatResult , filename , formatOptions , "\r\n" ) ;
0 commit comments