@@ -139,16 +139,6 @@ test("load empty config", async (t) => {
139139 } ,
140140 } ;
141141 } ,
142- async resolveQueries ( ) {
143- return {
144- byLanguage : {
145- javascript : { queries : [ "query1.ql" ] } ,
146- python : { queries : [ "query2.ql" ] } ,
147- } ,
148- noDeclaredLanguage : { } ,
149- multipleDeclaredLanguages : { } ,
150- } ;
151- } ,
152142 async packDownload ( ) : Promise < PackDownloadOutput > {
153143 return { packs : [ ] } ;
154144 } ,
@@ -191,16 +181,6 @@ test("loading config saves config", async (t) => {
191181 } ,
192182 } ;
193183 } ,
194- async resolveQueries ( ) {
195- return {
196- byLanguage : {
197- javascript : { queries : [ "query1.ql" ] } ,
198- python : { queries : [ "query2.ql" ] } ,
199- } ,
200- noDeclaredLanguage : { } ,
201- multipleDeclaredLanguages : { } ,
202- } ;
203- } ,
204184 async packDownload ( ) : Promise < PackDownloadOutput > {
205185 return { packs : [ ] } ;
206186 } ,
@@ -329,18 +309,6 @@ test("load non-empty input", async (t) => {
329309 } ,
330310 } ;
331311 } ,
332- async resolveQueries ( ) {
333- return {
334- byLanguage : {
335- javascript : {
336- "/foo/a.ql" : { } ,
337- "/bar/b.ql" : { } ,
338- } ,
339- } ,
340- noDeclaredLanguage : { } ,
341- multipleDeclaredLanguages : { } ,
342- } ;
343- } ,
344312 async packDownload ( ) : Promise < PackDownloadOutput > {
345313 return { packs : [ ] } ;
346314 } ,
@@ -405,25 +373,6 @@ test("load non-empty input", async (t) => {
405373 } ) ;
406374} ) ;
407375
408- /**
409- * Returns the provided queries, just in the right format for a resolved query
410- * This way we can test by seeing which returned items are in the final
411- * configuration.
412- */
413- function queriesToResolvedQueryForm ( queries : string [ ] ) {
414- const dummyResolvedQueries = { } ;
415- for ( const q of queries ) {
416- dummyResolvedQueries [ q ] = { } ;
417- }
418- return {
419- byLanguage : {
420- javascript : dummyResolvedQueries ,
421- } ,
422- noDeclaredLanguage : { } ,
423- multipleDeclaredLanguages : { } ,
424- } ;
425- }
426-
427376test ( "Using config input and file together, config input should be used." , async ( t ) => {
428377 return await withTmpDir ( async ( tempDir ) => {
429378 process . env [ "RUNNER_TEMP" ] = tempDir ;
@@ -448,10 +397,6 @@ test("Using config input and file together, config input should be used.", async
448397
449398 fs . mkdirSync ( path . join ( tempDir , "foo" ) ) ;
450399
451- const resolveQueriesArgs : Array < {
452- queries : string [ ] ;
453- extraSearchPath : string | undefined ;
454- } > = [ ] ;
455400 const codeql = setCodeQL ( {
456401 async betterResolveLanguages ( ) {
457402 return {
@@ -461,13 +406,6 @@ test("Using config input and file together, config input should be used.", async
461406 } ,
462407 } ;
463408 } ,
464- async resolveQueries (
465- queries : string [ ] ,
466- extraSearchPath : string | undefined ,
467- ) {
468- resolveQueriesArgs . push ( { queries, extraSearchPath } ) ;
469- return queriesToResolvedQueryForm ( queries ) ;
470- } ,
471409 async packDownload ( ) : Promise < PackDownloadOutput > {
472410 return { packs : [ ] } ;
473411 } ,
@@ -501,17 +439,6 @@ test("API client used when reading remote config", async (t) => {
501439 } ,
502440 } ;
503441 } ,
504- async resolveQueries ( ) {
505- return {
506- byLanguage : {
507- javascript : {
508- "foo.ql" : { } ,
509- } ,
510- } ,
511- noDeclaredLanguage : { } ,
512- multipleDeclaredLanguages : { } ,
513- } ;
514- } ,
515442 async packDownload ( ) : Promise < PackDownloadOutput > {
516443 return { packs : [ ] } ;
517444 } ,
0 commit comments