test_support

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2013 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package test_support contains various types and functions that are used to simplify test and benchmark execution. Not intended for external use.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetUp

func SetUp()

func TearDown

func TearDown()

Types

type AllTypes

type AllTypes struct {
	Uint    uint
	Uint8   uint8
	Uint16  uint16
	Uint32  uint32
	Uint64  uint64
	Int     int
	Int8    int8
	Int16   int16
	Int32   int32
	Int64   int64
	Float32 float32
	Float64 float64
	Byte    byte
	Rune    rune
	String  string
	zoom.DefaultData
}

The AllTypes struct A struct containing all supported types

type Artist

type Artist struct {
	Name          string
	FavoriteColor *Color
	zoom.DefaultData
}

func CreateArtists

func CreateArtists(num int) ([]*Artist, error)

func NewArtists

func NewArtists(num int) ([]*Artist, error)

type Color

type Color struct {
	R int
	G int
	B int
	zoom.DefaultData
}

func CreateColors

func CreateColors(num int) ([]*Color, error)

func NewColors

func NewColors(num int) ([]*Color, error)

type Friend

type Friend struct {
	Name    string
	Friends []*Friend
	zoom.DefaultData
}

func CreateConnectedFriends

func CreateConnectedFriends(num int) ([]*Friend, error)

func CreateFriends

func CreateFriends(num int) ([]*Friend, error)

func NewConnectedFriends

func NewConnectedFriends(num int) ([]*Friend, error)

func NewFriends

func NewFriends(num int) ([]*Friend, error)

type ModelWithList

type ModelWithList struct {
	List []string `redisType:"list"`
	zoom.DefaultData
}

type ModelWithSet

type ModelWithSet struct {
	Set []string `redisType:"set"`
	zoom.DefaultData
}

type Person

type Person struct {
	Name string
	Age  int
	zoom.DefaultData
}

The Person struct

func CreatePersons

func CreatePersons(num int) ([]*Person, error)

creates and saves num persons

func NewPersons

func NewPersons(num int) ([]*Person, error)

creates num persons but does not save them

type Pet

type Pet struct {
	Name string
	zoom.DefaultData
}

func CreatePets

func CreatePets(num int) ([]*Pet, error)

func NewPets

func NewPets(num int) ([]*Pet, error)

type PetOwner

type PetOwner struct {
	Name string
	Pets []*Pet
	zoom.DefaultData
}

func CreatePetOwners

func CreatePetOwners(num int) ([]*PetOwner, error)

func NewPetOwners

func NewPetOwners(num int) ([]*PetOwner, error)

Jump to

Keyboard shortcuts

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