chore: fix naming problem (#2500)
When I was looking for how to mock mongo client, I found some naming problems and wanted to fix them.
This commit is contained in:
@@ -204,7 +204,7 @@ func TestCollection_EstimatedDocumentCount(t *testing.T) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestCollectionFind(t *testing.T) {
|
func TestCollection_Find(t *testing.T) {
|
||||||
mt := mtest.New(t, mtest.NewOptions().ClientType(mtest.Mock))
|
mt := mtest.New(t, mtest.NewOptions().ClientType(mtest.Mock))
|
||||||
defer mt.Close()
|
defer mt.Close()
|
||||||
|
|
||||||
@@ -252,7 +252,7 @@ func TestCollectionFind(t *testing.T) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestCollectionFindOne(t *testing.T) {
|
func TestCollection_FindOne(t *testing.T) {
|
||||||
mt := mtest.New(t, mtest.NewOptions().ClientType(mtest.Mock))
|
mt := mtest.New(t, mtest.NewOptions().ClientType(mtest.Mock))
|
||||||
defer mt.Close()
|
defer mt.Close()
|
||||||
|
|
||||||
@@ -436,7 +436,7 @@ func TestCollection_InsertMany(t *testing.T) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestCollection_Remove(t *testing.T) {
|
func TestCollection_DeleteOne(t *testing.T) {
|
||||||
mt := mtest.New(t, mtest.NewOptions().ClientType(mtest.Mock))
|
mt := mtest.New(t, mtest.NewOptions().ClientType(mtest.Mock))
|
||||||
defer mt.Close()
|
defer mt.Close()
|
||||||
|
|
||||||
@@ -456,7 +456,7 @@ func TestCollection_Remove(t *testing.T) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestCollectionRemoveAll(t *testing.T) {
|
func TestCollection_DeleteMany(t *testing.T) {
|
||||||
mt := mtest.New(t, mtest.NewOptions().ClientType(mtest.Mock))
|
mt := mtest.New(t, mtest.NewOptions().ClientType(mtest.Mock))
|
||||||
defer mt.Close()
|
defer mt.Close()
|
||||||
|
|
||||||
@@ -565,7 +565,7 @@ func TestCollection_UpdateMany(t *testing.T) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func Test_DecoratedCollectionLogDuration(t *testing.T) {
|
func TestDecoratedCollection_LogDuration(t *testing.T) {
|
||||||
mt := mtest.New(t, mtest.NewOptions().ClientType(mtest.Mock))
|
mt := mtest.New(t, mtest.NewOptions().ClientType(mtest.Mock))
|
||||||
defer mt.Close()
|
defer mt.Close()
|
||||||
c := decoratedCollection{
|
c := decoratedCollection{
|
||||||
|
|||||||
Reference in New Issue
Block a user