internal

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2022 License: BSD-2-Clause, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TestTruth = []map[string]engine.Term{{}}
	TestOK    = []map[string]engine.Term{{"OK": engine.Atom("true")}}
	TestFail  = []map[string]engine.Term(nil)
)

predefined test results

Functions

func IsMap added in v0.0.6

func IsMap(t engine.Term, env *engine.Env) bool

Types

type TestProlog

type TestProlog struct {
	*prolog.Interpreter
}

func NewTestProlog

func NewTestProlog() *TestProlog

func (*TestProlog) Expect

func (p *TestProlog) Expect(want []map[string]engine.Term, query string, args ...interface{}) func(*testing.T)

func (*TestProlog) MustExec

func (p *TestProlog) MustExec(t *testing.T, prog string, args ...interface{})

Jump to

Keyboard shortcuts

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