10000 GRAPH-775 annotation processing fix by antonsviridov-src · Pull Request #732 · sourcegraph/scip-java · GitHub
[go: up one dir, main page]

Skip to content

GRAPH-775 annotation processing fix #732

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Aug 6, 2024
Prev Previous commit
Next Next commit
Allow regenerating a subset of snapshots
  • Loading branch information
antonsviridov-src committed Aug 6, 2024
commit f8f12f658a31d0a9127de2af90217864d4a0af95
16 changes: 14 additions & 2 deletions tests/snapshots/src/main/scala/tests/SaveSnapshots.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,19 @@ package tests
object SaveSnapshots {
def main(args: Array[String]): Unit = {
val expectDirectory = tests.snapshots.BuildInfo.snapshotDirectory.toPath
SemanticdbJavacSnapshotGenerator
.run(SnapshotContext(expectDirectory), new SaveSnapshotHandler)
val mapping = Map(
"minimized" -> new MinimizedSnapshotScipGenerator(),
"library" -> new LibrarySnapshotGenerator()
)

val enabledGenerators =
if (args.isEmpty)
mapping.values.toList
else
args.flatMap(mapping.get).toList

val generator = new AggregateSnapshotGenerator(enabledGenerators)

generator.run(SnapshotContext(expectDirectory), new SaveSnapshotHandler)
}
}
Loading
0