@@ -143,16 +143,6 @@ test("load empty config", async (t) => {
143143 } ,
144144 } ;
145145 } ,
146- async resolveQueries ( ) {
147- return {
148- byLanguage : {
149- javascript : { queries : [ "query1.ql" ] } ,
150- python : { queries : [ "query2.ql" ] } ,
151- } ,
152- noDeclaredLanguage : { } ,
153- multipleDeclaredLanguages : { } ,
154- } ;
155- } ,
156146 async packDownload ( ) : Promise < PackDownloadOutput > {
157147 return { packs : [ ] } ;
158148 } ,
@@ -195,16 +185,6 @@ test("loading config saves config", async (t) => {
195185 } ,
196186 } ;
197187 } ,
198- async resolveQueries ( ) {
199- return {
200- byLanguage : {
201- javascript : { queries : [ "query1.ql" ] } ,
202- python : { queries : [ "query2.ql" ] } ,
203- } ,
204- noDeclaredLanguage : { } ,
205- multipleDeclaredLanguages : { } ,
206- } ;
207- } ,
208188 async packDownload ( ) : Promise < PackDownloadOutput > {
209189 return { packs : [ ] } ;
210190 } ,
@@ -330,18 +310,6 @@ test("load non-empty input", async (t) => {
330310 } ,
331311 } ;
332312 } ,
333- async resolveQueries ( ) {
334- return {
335- byLanguage : {
336- javascript : {
337- "/foo/a.ql" : { } ,
338- "/bar/b.ql" : { } ,
339- } ,
340- } ,
341- noDeclaredLanguage : { } ,
342- multipleDeclaredLanguages : { } ,
343- } ;
344- } ,
345313 async packDownload ( ) : Promise < PackDownloadOutput > {
346314 return { packs : [ ] } ;
347315 } ,
@@ -406,25 +374,6 @@ test("load non-empty input", async (t) => {
406374 } ) ;
407375} ) ;
408376
409- /**
410- * Returns the provided queries, just in the right format for a resolved query
411- * This way we can test by seeing which returned items are in the final
412- * configuration.
413- */
414- function queriesToResolvedQueryForm ( queries : string [ ] ) {
415- const dummyResolvedQueries = { } ;
416- for ( const q of queries ) {
417- dummyResolvedQueries [ q ] = { } ;
418- }
419- return {
420- byLanguage : {
421- javascript : dummyResolvedQueries ,
422- } ,
423- noDeclaredLanguage : { } ,
424- multipleDeclaredLanguages : { } ,
425- } ;
426- }
427-
428377test ( "Using config input and file together, config input should be used." , async ( t ) => {
429378 return await withTmpDir ( async ( tempDir ) => {
430379 process . env [ "RUNNER_TEMP" ] = tempDir ;
@@ -449,10 +398,6 @@ test("Using config input and file together, config input should be used.", async
449398
450399 fs . mkdirSync ( path . join ( tempDir , "foo" ) ) ;
451400
452- const resolveQueriesArgs : Array < {
453- queries : string [ ] ;
454- extraSearchPath : string | undefined ;
455- } > = [ ] ;
456401 const codeql = createStubCodeQL ( {
457402 async betterResolveLanguages ( ) {
458403 return {
@@ -462,13 +407,6 @@ test("Using config input and file together, config input should be used.", async
462407 } ,
463408 } ;
464409 } ,
465- async resolveQueries (
466- queries : string [ ] ,
467- extraSearchPath : string | undefined ,
468- ) {
469- resolveQueriesArgs . push ( { queries, extraSearchPath } ) ;
470- return queriesToResolvedQueryForm ( queries ) ;
471- } ,
472410 async packDownload ( ) : Promise < PackDownloadOutput > {
473411 return { packs : [ ] } ;
474412 } ,
@@ -502,17 +440,6 @@ test("API client used when reading remote config", async (t) => {
502440 } ,
503441 } ;
504442 } ,
505- async resolveQueries ( ) {
506- return {
507- byLanguage : {
508- javascript : {
509- "foo.ql" : { } ,
510- } ,
511- } ,
512- noDeclaredLanguage : { } ,
513- multipleDeclaredLanguages : { } ,
514- } ;
515- } ,
516443 async packDownload ( ) : Promise < PackDownloadOutput > {
517444 return { packs : [ ] } ;
518445 } ,
0 commit comments