domtest

package
v0.0.0-...-86a089b Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2019 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package domtest has default schemas and helpers for testing.

Index

Constants

View Source
const PersonFixRaw = `` /* 313-byte string literal not displayed */
View Source
const PersonRaw = `` /* 283-byte string literal not displayed */
View Source
const ProdFixRaw = `` /* 256-byte string literal not displayed */
View Source
const ProdRaw = `` /* 170-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type Cat

type Cat struct {
	ID   int
	Name string
}

type Fixture

type Fixture struct {
	dom.Project
	mig.Manifest
	Fix *lit.Dict
}

func Must

func Must(pro *Fixture, err error) *Fixture

func New

func New(raw, fix string) (*Fixture, error)

func PersonFixture

func PersonFixture() (*Fixture, error)

func ProdFixture

func ProdFixture() (*Fixture, error)

func (*Fixture) Close

func (f *Fixture) Close() error

func (*Fixture) Iter

func (f *Fixture) Iter(key string) (mig.Iter, error)

func (*Fixture) Keys

func (f *Fixture) Keys() []string

func (*Fixture) Version

func (f *Fixture) Version() mig.Version

type Group

type Group struct {
	ID   int
	Name string
}

type Label

type Label struct {
	ID   int
	Name string
	Tmpl []byte
}

type Member

type Member struct {
	ID     int
	Person int
	Group  int
	Joined time.Time
}

type Person

type Person struct {
	ID     int
	Name   string
	Family int
}

type Prod

type Prod struct {
	ID   int
	Name string
	Cat  int
}

Jump to

Keyboard shortcuts

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