The source set a file is in: `androidMain` of `lib/src/androidMain/kotlin/a/Util.kt`; null outside any `src/ /`.
(filePath: string)
| 3085 | |
| 3086 | /** The source set a file is in: `androidMain` of `lib/src/androidMain/kotlin/a/Util.kt`; null outside any `src/<set>/`. */ |
| 3087 | function kmpSourceSet(filePath: string): string | null { |
| 3088 | return /(?:^|\/)src\/([^/]+)\//.exec(filePath)?.[1] ?? null; |
| 3089 | } |
| 3090 | |
| 3091 | /** What a source set builds for: `android` of `androidMain` and `androidUnitTest`, `common` of `commonTest`. */ |
| 3092 | function kmpBuildTarget(set: string): string { |
no test coverage detected