listinputs

package
v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

func Queries

func Queries() []string

Queries covers every built-in apoc.coll function and the adjacent public list consumers. %s occurs only where a runtime list is consumed, including the second operand and lists nested inside other list/map arguments.

func Query

func Query(template, input string) string

Types

type FromPairsOutcome

type FromPairsOutcome struct {
	JSON string
	Code string
}

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

type Input struct {
	Name    string
	Value   interface{}
	Literal string
}

func Inputs

func Inputs() []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

func (input Input) CypherWritableProperty() bool

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

type UnsignedInput struct {
	Name    string
	Value   interface{}
	Integer int64
	Valid   bool
}

UnsignedInput pins the signed conversion contract independently of its reader.

func UnsignedInputs

func UnsignedInputs() []UnsignedInput

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL