gqltest

package
v0.0.0-...-9d3c4bc Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package gqltest provides helper functions for unittests

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Eval

func Eval(t testing.TB, str string, sess *gql.Session) gql.Value

Eval parses and evaluates a given expression or statement.

func NewSession

func NewSession() *gql.Session

NewSession creates a new gql.Session with good defaults.113

func ReadTable

func ReadTable(t gql.Value) []string

ReadTable reads the table contents as a list of strings.

REQUIRES: t.Type()==TableType

func ReadTableSorted

func ReadTableSorted(t gql.Value) []string

ReadTableSorted reads the table contents as a list of strings, then sort them in lexicographic ascending order.

REQUIRES: t.Type()==TableType

Types

This section is empty.

Jump to

Keyboard shortcuts

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