Parti QLTest Case
Each PartiQLTestProvider shall hold one or more PartiQLTestCase's. Each PartiQLTestCase's session will be used to create PartiQL's evaluator. This may hold other variables for the purpose of testing assertions (among other things).
See the below Kotlin example:
public class SimpleTestCase(val x: Int, val expected: Boolean) : PartiQLTestCase {
override val session: EvaluationSession = EvaluationSession.build {
globals(
Bindings.ofMap(
mapOf("x" to this.x)
)
)
}
}Content copied to clipboard
Properties
Link copied to clipboard
Holds information such as globals and parameters to provide inputs to a PartiQLTestCase.