Documentation
¶
Overview ¶
Package listinputs supplies public-query representation tests shared by the executor, Bolt and HTTP tests. Expectations come from equivalent literal queries, never from the list-conversion implementation under test.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NumericWireChecks ¶
func NumericWireChecks(input NumericInput) []struct { Expression string Want interface{} }
NumericWireChecks has explicit boundary expectations. String parity checks are added by each harness using the ordinary head reader as an independent path control; no production numeric converter supplies these expectations.
func NumericWireParameter ¶
func NumericWireParameter(input NumericInput, json bool) bool
NumericWireParameter retains the driver list carriers exercised by these protocol tests. Other runtime widths are read from their API-stored property fixtures; embedded tests separately cover their native parameter carriers. JSON cannot encode IEEE nonfinite numbers; Bolt can carry those floats.
Types ¶
type FromPairsOutcome ¶
FromPairsOutcome is pinned to Neo4j 5.26.30 + APOC 5.26.30, reference i20261021234616-53352-a3aa (52 Bolt cases, both transaction modes). Go-only scalar aliases have the same value contract as their wire forms. Stored forms use the reference's static property type, independently of the more permissive storage API used to install typed test fixtures.
func FromPairsExpectation ¶
func FromPairsExpectation(input Input, form string) FromPairsOutcome
type Input ¶
func TransportInputs ¶
func TransportInputs() []Input
Byte slices are binary in Bolt and base64 strings in JSON, so they are covered as runtime lists only in the executor matrix. The transport matrix exercises the ordinary driver list shapes and stored scalar property arrays.
func (Input) CypherWritableProperty ¶
Cypher property writes accept scalar arrays. Nested list/map property shapes are exercised through supported storage API fixtures and public query reads.
func (Input) PropertyValue ¶
func (input Input) PropertyValue() interface{}
PropertyValue keeps every storage-supported typed list unchanged. Other Go representations are valid runtime parameters but cannot be stored directly; those fixtures use the equivalent literal's supported property shape. This deliberately does not call the conversion implementation being tested.
type NumericInput ¶
type NumericInput struct {
Name string
Scalar, List, Property interface{}
Core interface{}
Integer int64
Valid bool
APOC, Sum int64
}
NumericInput is an independent boundary oracle. Core follows Cypher's numeric saturation/string-null policy; APOC and Sum retain zero/skip policy.
func NumericHTTPInputs ¶
func NumericHTTPInputs() []NumericInput
HTTP's persistent fixture uses a JSON WAL, which cannot store IEEE nonfinite properties. The HTTP test constructs those runtime values with Cypher instead; finite native property carriers and numeric strings retain their full matrix.
func NumericInputs ¶
func NumericInputs() []NumericInput
NumericInputs covers every runtime width, both signs, exact endpoints and adjacent floating/unsigned overflow values. No production reader is used.
type UnsignedInput ¶
UnsignedInput pins the signed conversion contract independently of its reader.
func UnsignedInputs ¶
func UnsignedInputs() []UnsignedInput