dbtest

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

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

Go to latest
Published: Feb 14, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Test_Item

func Test_Item(t *testing.T)

func Test_PlayerCharacter

func Test_PlayerCharacter(t *testing.T)

func Test_Room

func Test_Room(t *testing.T)

func Test_ThreadSafety

func Test_ThreadSafety(t *testing.T)

func Test_User

func Test_User(t *testing.T)

func Test_Zone

func Test_Zone(t *testing.T)

Types

type TestCollection

type TestCollection struct {
}

func (TestCollection) DropCollection

func (mc TestCollection) DropCollection() error

func (TestCollection) Find

func (mc TestCollection) Find(selector interface{}) database.Query

func (TestCollection) FindId

func (mc TestCollection) FindId(selector interface{}) database.Query

func (TestCollection) Remove

func (mc TestCollection) Remove(selector interface{}) error

func (TestCollection) RemoveId

func (mc TestCollection) RemoveId(id interface{}) error

func (TestCollection) UpdateId

func (mc TestCollection) UpdateId(id interface{}, change interface{}) error

func (TestCollection) UpsertId

func (mc TestCollection) UpsertId(id interface{}, change interface{}) error

type TestDatabase

type TestDatabase struct {
}

func (TestDatabase) C

func (md TestDatabase) C(collectionName string) database.Collection

type TestIterator

type TestIterator struct {
}

func (TestIterator) All

func (mi TestIterator) All(result interface{}) error

type TestQuery

type TestQuery struct {
}

func (TestQuery) Count

func (mq TestQuery) Count() (int, error)

func (TestQuery) Iter

func (mq TestQuery) Iter() database.Iterator

func (TestQuery) One

func (mq TestQuery) One(result interface{}) error

type TestSession

type TestSession struct {
}

func (TestSession) DB

func (ms TestSession) DB(dbName string) database.Database

Jump to

Keyboard shortcuts

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