tests

package
v0.0.0-...-8cc6249 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(t *testing.T, cy *internal.CompiledCypher, err error, want internal.CompiledCypher)

Types

type ActedIn

type ActedIn struct {
	internal.Relationship `neo4j:"ACTED_IN"`

	Role string `json:"role"`
}

type BaseOrganism

type BaseOrganism struct {
	internal.Abstract `neo4j:"Organism"`
	internal.Node
	Alive bool `json:"alive"`
}

func (BaseOrganism) Implementers

func (b BaseOrganism) Implementers() []internal.IAbstract

type BasePet

type BasePet struct {
	internal.Abstract `neo4j:"Pet"`
	BaseOrganism

	Cute bool `json:"cute"`
}

func (BasePet) Implementers

func (b BasePet) Implementers() []internal.IAbstract

func (BasePet) IsCute

func (b BasePet) IsCute() bool

type BornIn

type BornIn struct {
	internal.Relationship `neo4j:"BORN_IN"`
}

type Company

type Company struct {
	internal.Node `neo4j:"Company"`

	Name string `json:"name"`
}

type Directed

type Directed struct {
	internal.Relationship `neo4j:"DIRECTED"`
}

type Dog

type Dog struct {
	BasePet `neo4j:"Dog"`
	Borfs   bool `json:"borfs"`
}

type Human

type Human struct {
	BaseOrganism `neo4j:"Human"`
	Name         string `json:"name"`
}

type Knows

type Knows struct {
	internal.Relationship `neo4j:"KNOWS"`

	Since int `json:"since"`
}

type Location

type Location struct {
	internal.Node `neo4j:"Location"`

	Name string `json:"name"`
}

type Movie

type Movie struct {
	internal.Node `neo4j:"Movie"`

	Title    string `json:"title"`
	Released int    `json:"released"`
	Tagline  string `json:"tagline"`
}

type Organism

type Organism interface {
	internal.IAbstract
}

type Person

type Person struct {
	internal.Node `neo4j:"Person"`

	Name          string  `json:"name"`
	Surname       string  `json:"surname"`
	Position      string  `json:"position"`
	Email         string  `json:"email"`
	Belt          *string `json:"belt"`
	Nationality   string  `json:"nationality"`
	Age           int     `json:"age"`
	BornIn        int     `json:"bornIn"`
	Created       int     `json:"created"`
	LastSeen      int     `json:"lastSeen"`
	Found         bool    `json:"found"`
	ChauffeurName string  `json:"chauffeurName"`
}

type Pet

type Pet interface {
	internal.IAbstract
	Organism
	IsCute() bool
}

type Produced

type Produced struct {
	internal.Relationship `neo4j:"PRODUCED"`
}

type Reviewed

type Reviewed struct {
	internal.Relationship `neo4j:"REVIEWED"`

	Rating float64 `json:"rating"`
}

type WorksAt

type WorksAt struct {
	internal.Relationship `neo4j:"WORKS_AT"`
}

type Wrote

type Wrote struct {
	internal.Relationship `neo4j:"WROTE"`
}

Jump to

Keyboard shortcuts

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