diff --git a/test/src/test/kotlin/graphql/nadel/tests/next/UpdateTestSnapshots.kt b/test/src/test/kotlin/graphql/nadel/tests/next/UpdateTestSnapshots.kt index fdc1d0319..c3ad1d579 100644 --- a/test/src/test/kotlin/graphql/nadel/tests/next/UpdateTestSnapshots.kt +++ b/test/src/test/kotlin/graphql/nadel/tests/next/UpdateTestSnapshots.kt @@ -5,6 +5,7 @@ import com.squareup.kotlinpoet.AnnotationSpec import com.squareup.kotlinpoet.ClassName import com.squareup.kotlinpoet.CodeBlock import com.squareup.kotlinpoet.FileSpec +import com.squareup.kotlinpoet.FunSpec import com.squareup.kotlinpoet.KModifier import com.squareup.kotlinpoet.MemberName import com.squareup.kotlinpoet.ParameterizedTypeName.Companion.parameterizedBy @@ -25,7 +26,15 @@ import kotlin.reflect.KClass // For navigation so you can search up UpdateTestSnapshots private typealias UpdateTestSnapshots = Unit -suspend fun main() { +suspend inline fun update() { + return update(T::class) +} + +suspend fun update(klass: KClass) { + main(klass.qualifiedName!!) +} + +private suspend fun main(vararg args: String) { val sourceRoot = File("test/src/test/kotlin/") require(sourceRoot.exists() && sourceRoot.isDirectory) @@ -33,6 +42,9 @@ suspend fun main() { .onEach { klass -> println("Loading ${klass.qualifiedName}") } + .filter { + args.isEmpty() || args.contains(it.qualifiedName) + } .map { it to it.newInstanceNoArgConstructor() } @@ -45,6 +57,7 @@ suspend fun main() { val outputFile = FileSpec.builder(ClassName.bestGuess(klass.qualifiedName!! + "Snapshot")) .indent(' '.toString().repeat(4)) .addFileComment("@formatter:off") + .addFunction(makeUpdateSnapshotFunction(klass)) .addType(makeTestSnapshotClass(klass, captured)) .build() .writeTo(sourceRoot) @@ -65,6 +78,13 @@ suspend fun main() { } } +fun makeUpdateSnapshotFunction(klass: KClass): FunSpec { + return FunSpec.builder("main") + .addModifiers(KModifier.PRIVATE, KModifier.SUSPEND) + .addCode("graphql.nadel.tests.next.update<%T>()", klass) + .build() +} + private fun getTestClassSequence(): Sequence> { return ClassPath.from(ClassLoader.getSystemClassLoader()) .getTopLevelClassesRecursive("graphql.nadel.tests") diff --git a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/basic/BasicObjectSchemaTestSnapshot.kt b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/basic/BasicObjectSchemaTestSnapshot.kt index 688443ff2..43fa7c402 100644 --- a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/basic/BasicObjectSchemaTestSnapshot.kt +++ b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/basic/BasicObjectSchemaTestSnapshot.kt @@ -9,6 +9,10 @@ import kotlin.Suppress import kotlin.collections.List import kotlin.collections.listOf +private suspend fun main() { + graphql.nadel.tests.next.update() +} + /** * This class is generated. Do NOT modify. * diff --git a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/basic/EchoTestSnapshot.kt b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/basic/EchoTestSnapshot.kt index 584bc5522..c53104b8e 100644 --- a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/basic/EchoTestSnapshot.kt +++ b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/basic/EchoTestSnapshot.kt @@ -9,6 +9,10 @@ import kotlin.Suppress import kotlin.collections.List import kotlin.collections.listOf +private suspend fun main() { + graphql.nadel.tests.next.update() +} + /** * This class is generated. Do NOT modify. * diff --git a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/ComprehensiveDeferQueryWithDifferentServiceCallsSnapshot.kt b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/ComprehensiveDeferQueryWithDifferentServiceCallsSnapshot.kt index 6389bf028..2c0a05453 100644 --- a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/ComprehensiveDeferQueryWithDifferentServiceCallsSnapshot.kt +++ b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/ComprehensiveDeferQueryWithDifferentServiceCallsSnapshot.kt @@ -9,6 +9,10 @@ import kotlin.Suppress import kotlin.collections.List import kotlin.collections.listOf +private suspend fun main() { + graphql.nadel.tests.next.update() +} + /** * This class is generated. Do NOT modify. * diff --git a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/DeferOnListItemsTestSnapshot.kt b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/DeferOnListItemsTestSnapshot.kt index ce1b5ce10..1cdb6a537 100644 --- a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/DeferOnListItemsTestSnapshot.kt +++ b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/DeferOnListItemsTestSnapshot.kt @@ -9,6 +9,10 @@ import kotlin.Suppress import kotlin.collections.List import kotlin.collections.listOf +private suspend fun main() { + graphql.nadel.tests.next.update() +} + /** * This class is generated. Do NOT modify. * diff --git a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/DeferThrowsErrorTestSnapshot.kt b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/DeferThrowsErrorTestSnapshot.kt index 5b8e08b62..9bfa7ab30 100644 --- a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/DeferThrowsErrorTestSnapshot.kt +++ b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/DeferThrowsErrorTestSnapshot.kt @@ -9,6 +9,10 @@ import kotlin.Suppress import kotlin.collections.List import kotlin.collections.listOf +private suspend fun main() { + graphql.nadel.tests.next.update() +} + /** * This class is generated. Do NOT modify. * diff --git a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/DeferWithIfFalseTestSnapshot.kt b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/DeferWithIfFalseTestSnapshot.kt index 8bd741911..863def571 100644 --- a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/DeferWithIfFalseTestSnapshot.kt +++ b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/DeferWithIfFalseTestSnapshot.kt @@ -9,6 +9,10 @@ import kotlin.Suppress import kotlin.collections.List import kotlin.collections.listOf +private suspend fun main() { + graphql.nadel.tests.next.update() +} + /** * This class is generated. Do NOT modify. * diff --git a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/DeferWithLabelTestSnapshot.kt b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/DeferWithLabelTestSnapshot.kt index 04055650e..0b1c9cb58 100644 --- a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/DeferWithLabelTestSnapshot.kt +++ b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/DeferWithLabelTestSnapshot.kt @@ -9,6 +9,10 @@ import kotlin.Suppress import kotlin.collections.List import kotlin.collections.listOf +private suspend fun main() { + graphql.nadel.tests.next.update() +} + /** * This class is generated. Do NOT modify. * diff --git a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/DeferWithoutLabelTestSnapshot.kt b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/DeferWithoutLabelTestSnapshot.kt index 6a148fd81..100b7de1c 100644 --- a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/DeferWithoutLabelTestSnapshot.kt +++ b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/DeferWithoutLabelTestSnapshot.kt @@ -9,6 +9,10 @@ import kotlin.Suppress import kotlin.collections.List import kotlin.collections.listOf +private suspend fun main() { + graphql.nadel.tests.next.update() +} + /** * This class is generated. Do NOT modify. * diff --git a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/MultipleDeferDirectivesTestSnapshot.kt b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/MultipleDeferDirectivesTestSnapshot.kt index b9d5affa2..d2be14f54 100644 --- a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/MultipleDeferDirectivesTestSnapshot.kt +++ b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/MultipleDeferDirectivesTestSnapshot.kt @@ -9,6 +9,10 @@ import kotlin.Suppress import kotlin.collections.List import kotlin.collections.listOf +private suspend fun main() { + graphql.nadel.tests.next.update() +} + /** * This class is generated. Do NOT modify. * diff --git a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/MultipleDeferWithDifferentServiceCallsSnapshot.kt b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/MultipleDeferWithDifferentServiceCallsSnapshot.kt index f8f5f3dcc..8b8aba2fd 100644 --- a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/MultipleDeferWithDifferentServiceCallsSnapshot.kt +++ b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/MultipleDeferWithDifferentServiceCallsSnapshot.kt @@ -9,6 +9,10 @@ import kotlin.Suppress import kotlin.collections.List import kotlin.collections.listOf +private suspend fun main() { + graphql.nadel.tests.next.update() +} + /** * This class is generated. Do NOT modify. * diff --git a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/MultipleFieldsinMultipleDeferDirectivesTestSnapshot.kt b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/MultipleFieldsinMultipleDeferDirectivesTestSnapshot.kt index b3d0df19e..88001acff 100644 --- a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/MultipleFieldsinMultipleDeferDirectivesTestSnapshot.kt +++ b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/MultipleFieldsinMultipleDeferDirectivesTestSnapshot.kt @@ -9,6 +9,10 @@ import kotlin.Suppress import kotlin.collections.List import kotlin.collections.listOf +private suspend fun main() { + graphql.nadel.tests.next.update() +} + /** * This class is generated. Do NOT modify. * diff --git a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/MultipleFieldsinSingleDeferDirectiveTestSnapshot.kt b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/MultipleFieldsinSingleDeferDirectiveTestSnapshot.kt index 8a7c0c191..7f18c5bbe 100644 --- a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/MultipleFieldsinSingleDeferDirectiveTestSnapshot.kt +++ b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/MultipleFieldsinSingleDeferDirectiveTestSnapshot.kt @@ -9,6 +9,10 @@ import kotlin.Suppress import kotlin.collections.List import kotlin.collections.listOf +private suspend fun main() { + graphql.nadel.tests.next.update() +} + /** * This class is generated. Do NOT modify. * diff --git a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/NestedDefersTestSnapshot.kt b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/NestedDefersTestSnapshot.kt index e9b8bc83f..c7a979750 100644 --- a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/NestedDefersTestSnapshot.kt +++ b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/defer/NestedDefersTestSnapshot.kt @@ -9,6 +9,10 @@ import kotlin.Suppress import kotlin.collections.List import kotlin.collections.listOf +private suspend fun main() { + graphql.nadel.tests.next.update() +} + /** * This class is generated. Do NOT modify. * diff --git a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/HydrationTestSnapshot.kt b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/HydrationTestSnapshot.kt index 04575dfd0..dc83d324d 100644 --- a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/HydrationTestSnapshot.kt +++ b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/HydrationTestSnapshot.kt @@ -9,6 +9,10 @@ import kotlin.Suppress import kotlin.collections.List import kotlin.collections.listOf +private suspend fun main() { + graphql.nadel.tests.next.update() +} + /** * This class is generated. Do NOT modify. * diff --git a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferFlagOffTestSnapshot.kt b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferFlagOffTestSnapshot.kt index b307671d0..afc9d8810 100644 --- a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferFlagOffTestSnapshot.kt +++ b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferFlagOffTestSnapshot.kt @@ -9,6 +9,10 @@ import kotlin.Suppress import kotlin.collections.List import kotlin.collections.listOf +private suspend fun main() { + graphql.nadel.tests.next.update() +} + /** * This class is generated. Do NOT modify. * diff --git a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferInRenamedFieldAndNestedHydrationsTestSnapshot.kt b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferInRenamedFieldAndNestedHydrationsTestSnapshot.kt index b12632cd7..ec934a0a7 100644 --- a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferInRenamedFieldAndNestedHydrationsTestSnapshot.kt +++ b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferInRenamedFieldAndNestedHydrationsTestSnapshot.kt @@ -9,6 +9,10 @@ import kotlin.Suppress import kotlin.collections.List import kotlin.collections.listOf +private suspend fun main() { + graphql.nadel.tests.next.update() +} + /** * This class is generated. Do NOT modify. * diff --git a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferInRenamedFieldTestSnapshot.kt b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferInRenamedFieldTestSnapshot.kt index be6e76620..7c9e86d50 100644 --- a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferInRenamedFieldTestSnapshot.kt +++ b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferInRenamedFieldTestSnapshot.kt @@ -9,6 +9,10 @@ import kotlin.Suppress import kotlin.collections.List import kotlin.collections.listOf +private suspend fun main() { + graphql.nadel.tests.next.update() +} + /** * This class is generated. Do NOT modify. * diff --git a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferInRenamedFieldUsingRenamedFieldTestSnapshot.kt b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferInRenamedFieldUsingRenamedFieldTestSnapshot.kt index 8cba6b521..5c3bb1005 100644 --- a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferInRenamedFieldUsingRenamedFieldTestSnapshot.kt +++ b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferInRenamedFieldUsingRenamedFieldTestSnapshot.kt @@ -9,6 +9,10 @@ import kotlin.Suppress import kotlin.collections.List import kotlin.collections.listOf +private suspend fun main() { + graphql.nadel.tests.next.update() +} + /** * This class is generated. Do NOT modify. * diff --git a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferIsDisabledForNestedHydrationsTestSnapshot.kt b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferIsDisabledForNestedHydrationsTestSnapshot.kt index e950786bb..b6f4cff4e 100644 --- a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferIsDisabledForNestedHydrationsTestSnapshot.kt +++ b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferIsDisabledForNestedHydrationsTestSnapshot.kt @@ -9,6 +9,10 @@ import kotlin.Suppress import kotlin.collections.List import kotlin.collections.listOf +private suspend fun main() { + graphql.nadel.tests.next.update() +} + /** * This class is generated. Do NOT modify. * diff --git a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferIsDisabledForRelatedIssuesTestSnapshot.kt b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferIsDisabledForRelatedIssuesTestSnapshot.kt index 6b67ce5ec..530bdd4d7 100644 --- a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferIsDisabledForRelatedIssuesTestSnapshot.kt +++ b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferIsDisabledForRelatedIssuesTestSnapshot.kt @@ -9,6 +9,10 @@ import kotlin.Suppress import kotlin.collections.List import kotlin.collections.listOf +private suspend fun main() { + graphql.nadel.tests.next.update() +} + /** * This class is generated. Do NOT modify. * diff --git a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferIsDisabledInListOfRelatedIssuesForParentIssueTestSnapshot.kt b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferIsDisabledInListOfRelatedIssuesForParentIssueTestSnapshot.kt index 15e6703f3..bec6840db 100644 --- a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferIsDisabledInListOfRelatedIssuesForParentIssueTestSnapshot.kt +++ b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferIsDisabledInListOfRelatedIssuesForParentIssueTestSnapshot.kt @@ -9,6 +9,10 @@ import kotlin.Suppress import kotlin.collections.List import kotlin.collections.listOf +private suspend fun main() { + graphql.nadel.tests.next.update() +} + /** * This class is generated. Do NOT modify. * diff --git a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferIsDisabledTestSnapshot.kt b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferIsDisabledTestSnapshot.kt index cdedc3b0d..f8ba4a777 100644 --- a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferIsDisabledTestSnapshot.kt +++ b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferIsDisabledTestSnapshot.kt @@ -9,6 +9,10 @@ import kotlin.Suppress import kotlin.collections.List import kotlin.collections.listOf +private suspend fun main() { + graphql.nadel.tests.next.update() +} + /** * This class is generated. Do NOT modify. * diff --git a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferTestSnapshot.kt b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferTestSnapshot.kt index bc7193527..64c05d162 100644 --- a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferTestSnapshot.kt +++ b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/hydration/defer/HydrationDeferTestSnapshot.kt @@ -9,6 +9,10 @@ import kotlin.Suppress import kotlin.collections.List import kotlin.collections.listOf +private suspend fun main() { + graphql.nadel.tests.next.update() +} + /** * This class is generated. Do NOT modify. * diff --git a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/instrumentation/InstrumentationBeginExecuteOnCompleteOnFailureTestSnapshot.kt b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/instrumentation/InstrumentationBeginExecuteOnCompleteOnFailureTestSnapshot.kt index 626929a82..43ef28783 100644 --- a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/instrumentation/InstrumentationBeginExecuteOnCompleteOnFailureTestSnapshot.kt +++ b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/instrumentation/InstrumentationBeginExecuteOnCompleteOnFailureTestSnapshot.kt @@ -9,6 +9,10 @@ import kotlin.Suppress import kotlin.collections.List import kotlin.collections.listOf +private suspend fun main() { + graphql.nadel.tests.next.update() +} + /** * This class is generated. Do NOT modify. * diff --git a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/instrumentation/InstrumentationBeginExecuteOnCompleteOnSuccessTestSnapshot.kt b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/instrumentation/InstrumentationBeginExecuteOnCompleteOnSuccessTestSnapshot.kt index 127be8583..0c41794e2 100644 --- a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/instrumentation/InstrumentationBeginExecuteOnCompleteOnSuccessTestSnapshot.kt +++ b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/instrumentation/InstrumentationBeginExecuteOnCompleteOnSuccessTestSnapshot.kt @@ -9,6 +9,10 @@ import kotlin.Suppress import kotlin.collections.List import kotlin.collections.listOf +private suspend fun main() { + graphql.nadel.tests.next.update() +} + /** * This class is generated. Do NOT modify. * diff --git a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/instrumentation/InstrumentationBeginQueryExecutionOnCompleteOnFailureTestSnapshot.kt b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/instrumentation/InstrumentationBeginQueryExecutionOnCompleteOnFailureTestSnapshot.kt index 52bac40f9..55204e525 100644 --- a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/instrumentation/InstrumentationBeginQueryExecutionOnCompleteOnFailureTestSnapshot.kt +++ b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/instrumentation/InstrumentationBeginQueryExecutionOnCompleteOnFailureTestSnapshot.kt @@ -9,6 +9,10 @@ import kotlin.Suppress import kotlin.collections.List import kotlin.collections.listOf +private suspend fun main() { + graphql.nadel.tests.next.update() +} + /** * This class is generated. Do NOT modify. * diff --git a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/instrumentation/InstrumentationBeginQueryExecutionOnCompleteOnSuccessTestSnapshot.kt b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/instrumentation/InstrumentationBeginQueryExecutionOnCompleteOnSuccessTestSnapshot.kt index b532645ea..aed6732a6 100644 --- a/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/instrumentation/InstrumentationBeginQueryExecutionOnCompleteOnSuccessTestSnapshot.kt +++ b/test/src/test/kotlin/graphql/nadel/tests/next/fixtures/instrumentation/InstrumentationBeginQueryExecutionOnCompleteOnSuccessTestSnapshot.kt @@ -9,6 +9,10 @@ import kotlin.Suppress import kotlin.collections.List import kotlin.collections.listOf +private suspend fun main() { + graphql.nadel.tests.next.update() +} + /** * This class is generated. Do NOT modify. *