mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-07 15:44:25 +02:00
chore: Use correct resource names for tests
This commit is contained in:
parent
909d89fa8d
commit
49930f6565
@ -84,7 +84,7 @@ class TestPatchAnnotationProcessor {
|
|||||||
// endregion
|
// endregion
|
||||||
|
|
||||||
private companion object Utils {
|
private companion object Utils {
|
||||||
const val SAMPLE_PACKAGE = "app.revanced.patcher.patch.annotations.processor.samples"
|
const val SAMPLE_PACKAGE = "app.revanced.patcher.patch.annotation.processor.samples"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a source file from the given sample and class name.
|
* Get a source file from the given sample and class name.
|
||||||
@ -94,7 +94,7 @@ class TestPatchAnnotationProcessor {
|
|||||||
* @return The source file.
|
* @return The source file.
|
||||||
*/
|
*/
|
||||||
fun getSourceFile(sample: String, className: String): SourceFile {
|
fun getSourceFile(sample: String, className: String): SourceFile {
|
||||||
val resourceName = "app/revanced/patcher/patch/annotations/processor/samples/$sample/$className.kt"
|
val resourceName = "app/revanced/patcher/patch/annotation/processor/samples/$sample/$className.kt"
|
||||||
return SourceFile.kotlin(
|
return SourceFile.kotlin(
|
||||||
"$className.kt",
|
"$className.kt",
|
||||||
TestPatchAnnotationProcessor::class.java.classLoader.getResourceAsStream(resourceName)
|
TestPatchAnnotationProcessor::class.java.classLoader.getResourceAsStream(resourceName)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user