mongotest

package
v0.0.0-...-de37f70 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoT

type MongoT struct {
	// contains filtered or unexported fields
}

func NewMongoT

func NewMongoT(dbName string) *MongoT

func (MongoT) Count

func (m MongoT) Count(t *testing.T, cName string) int

func (MongoT) DropDatabase

func (m MongoT) DropDatabase(t *testing.T)

func (MongoT) FindOne

func (m MongoT) FindOne(cName string, query interface{}, v interface{}) error

func (MongoT) FindOneT

func (m MongoT) FindOneT(t *testing.T, cName string, query interface{}, v interface{})

func (MongoT) GetSession

func (m MongoT) GetSession() *mgo.Session

func (MongoT) GetUrl

func (m MongoT) GetUrl() string

func (MongoT) Insert

func (m MongoT) Insert(t *testing.T, cName string, v interface{})

func (*MongoT) Start

func (m *MongoT) Start()

func (*MongoT) Teardown

func (m *MongoT) Teardown()

func (MongoT) UpsertId

func (m MongoT) UpsertId(t *testing.T, cName string, id, v interface{})

Jump to

Keyboard shortcuts

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