(client: BazelClient, module: string)
| 47 | } |
| 48 | |
| 49 | async function getModuleTargets(client: BazelClient, module: string): Promise<string[]> { |
| 50 | const allTargets = await client.queryTargetsByKindWithFilter('valdi_module', [module], 'pipe'); |
| 51 | const androidDebug = allTargets.filter((t: string) => t.includes('android.debug')); |
| 52 | return androidDebug.length > 0 ? androidDebug : allTargets; |
| 53 | } |
| 54 | |
| 55 | async function getTestTargets(client: BazelClient, module: string): Promise<string[]> { |
| 56 | return await client.queryTargetsByKindWithFilter('test', [module], 'pipe'); |
no test coverage detected