import { Analyzer , AnalyzerOptions , Options } from "../src/index" ; export async function testParse ( data , filename = "" , opts ? ) { let analyzerOptions = opts || { } ; analyzerOptions . analyzerName = "test-analyzer" ; let analyzer = new Analyzer ( analyzerOptions ) ; await analyzer . parse ( filename , data ) ; return analyzer ; } export async function testParseFile ( file , opts ? ) { let analyzerOptions = opts || { } ; analyzerOptions . analyzerName = "test-analyzer" ; let analyzer = new Analyzer ( analyzerOptions ) ; await analyzer . parseFile ( file ) ; return analyzer ; }