// DB provides a mock function with given fields: name
DB provides a mock function with given fields: name
// DB provides a mock function with given fields : name
func (_m *MgoSession) DB(name string) *mgo.Database {
	ret := _m.Called(name)
	var r0 *mgo.Database
	if rf, ok := ret.Get(0).(func(string) *mgo.Database); ok {
		r0 = rf(name)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*mgo.Database)
		}
	}
	return r0
}
func ( _m * MgoSession ) DB ( name string ) * mgo . Database { ret := _m . Called ( name ) var r0 * mgo . Database if rf , ok := ret . Get ( 0 ) . ( func ( string ) * mgo . Database ) ; ok { r0 = rf ( name ) } else { if ret . Get ( 0 ) != nil { r0 = ret . Get ( 0 ) . ( * mgo . Database ) } } return r0 }
DB provides a mock function with given fields: name
DB provides a mock function with given fields : name