Skip to content

Commit

Permalink
chore: Use correct resource names for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Sep 6, 2023
1 parent 909d89f commit 49930f6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class TestPatchAnnotationProcessor {
// endregion

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.
Expand All @@ -94,7 +94,7 @@ class TestPatchAnnotationProcessor {
* @return The source file.
*/
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(
"$className.kt",
TestPatchAnnotationProcessor::class.java.classLoader.getResourceAsStream(resourceName)
Expand Down

0 comments on commit 49930f6

Please sign in to comment.