@@ -143,16 +143,6 @@ test("load empty config", async (t) => {
143
143
} ,
144
144
} ;
145
145
} ,
146
- async resolveQueries ( ) {
147
- return {
148
- byLanguage : {
149
- javascript : { queries : [ "query1.ql" ] } ,
150
- python : { queries : [ "query2.ql" ] } ,
151
- } ,
152
- noDeclaredLanguage : { } ,
153
- multipleDeclaredLanguages : { } ,
154
- } ;
155
- } ,
156
146
async packDownload ( ) : Promise < PackDownloadOutput > {
157
147
return { packs : [ ] } ;
158
148
} ,
@@ -195,16 +185,6 @@ test("loading config saves config", async (t) => {
195
185
} ,
196
186
} ;
197
187
} ,
198
- async resolveQueries ( ) {
199
- return {
200
- byLanguage : {
201
- javascript : { queries : [ "query1.ql" ] } ,
202
- python : { queries : [ "query2.ql" ] } ,
203
- } ,
204
- noDeclaredLanguage : { } ,
205
- multipleDeclaredLanguages : { } ,
206
- } ;
207
- } ,
208
188
async packDownload ( ) : Promise < PackDownloadOutput > {
209
189
return { packs : [ ] } ;
210
190
} ,
@@ -330,18 +310,6 @@ test("load non-empty input", async (t) => {
330
310
} ,
331
311
} ;
332
312
} ,
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
- } ,
345
313
async packDownload ( ) : Promise < PackDownloadOutput > {
346
314
return { packs : [ ] } ;
347
315
} ,
@@ -406,25 +374,6 @@ test("load non-empty input", async (t) => {
406
374
} ) ;
407
375
} ) ;
408
376
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
-
428
377
test ( "Using config input and file together, config input should be used." , async ( t ) => {
429
378
return await withTmpDir ( async ( tempDir ) => {
430
379
process . env [ "RUNNER_TEMP" ] = tempDir ;
@@ -449,10 +398,6 @@ test("Using config input and file together, config input should be used.", async
449
398
450
399
fs . mkdirSync ( path . join ( tempDir , "foo" ) ) ;
451
400
452
- const resolveQueriesArgs : Array < {
453
- queries : string [ ] ;
454
- extraSearchPath : string | undefined ;
455
- } > = [ ] ;
456
401
const codeql = createStubCodeQL ( {
457
402
async betterResolveLanguages ( ) {
458
403
return {
@@ -462,13 +407,6 @@ test("Using config input and file together, config input should be used.", async
462
407
} ,
463
408
} ;
464
409
} ,
465
- async resolveQueries (
466
- queries : string [ ] ,
467
- extraSearchPath : string | undefined ,
468
- ) {
469
- resolveQueriesArgs . push ( { queries, extraSearchPath } ) ;
470
- return queriesToResolvedQueryForm ( queries ) ;
471
- } ,
472
410
async packDownload ( ) : Promise < PackDownloadOutput > {
473
411
return { packs : [ ] } ;
474
412
} ,
@@ -502,17 +440,6 @@ test("API client used when reading remote config", async (t) => {
502
440
} ,
503
441
} ;
504
442
} ,
505
- async resolveQueries ( ) {
506
- return {
507
- byLanguage : {
508
- javascript : {
509
- "foo.ql" : { } ,
510
- } ,
511
- } ,
512
- noDeclaredLanguage : { } ,
513
- multipleDeclaredLanguages : { } ,
514
- } ;
515
- } ,
516
443
async packDownload ( ) : Promise < PackDownloadOutput > {
517
444
return { packs : [ ] } ;
518
445
} ,
0 commit comments