Documentation
¶
Index ¶
Constants ¶
View Source
const ( // PositiveTestCases contains accepted parser/analyzer fixtures and their expected fitness. PositiveTestCases = "cases/positive_tests.json" // NegativeTestCases contains rejected queries and their expected diagnostics. NegativeTestCases = "cases/negative_tests.json" // FilteringTestCases contains query filtering and formatter fixture expectations. FilteringTestCases = "cases/filtering_tests.json" // MutationTestCases contains mutation-query parser and analyzer fixture expectations. MutationTestCases = "cases/mutation_tests.json" )
Variables ¶
This section is empty.
Functions ¶
func UpdatePositiveTestCasesFitness ¶
func UpdatePositiveTestCasesFitness() error
UpdatePositiveTestCasesFitness writes parser/analyzer fixtures with refreshed ExpectedFitness values into updated_cases.
Types ¶
type Case ¶
type Case struct {
Name string `json:"name"`
Type Type `json:"type"`
Targeted bool `json:"targeted,omitempty"`
Ignore bool `json:"ignore,omitempty"`
Details json.RawMessage `json:"details"`
}
func (Case) MarshalDetails ¶
type Cases ¶
type Cases struct {
TestCases []Case `json:"test_cases"`
}
func (Cases) RunnableCases ¶
type Emitter ¶
type Emitter interface {
Write(query *cypher.RegularQuery, writer io.Writer) error
WriteExpression(output io.Writer, expression cypher.Expression) error
}
type NegativeTest ¶
type StringMatchTest ¶
Click to show internal directories.
Click to hide internal directories.