package helpers
import "go.mongodb.org/mongo-driver/internal/testutil/helpers"
Index ¶
- func FindJSONFilesInDir(t *testing.T, dir string) []string
- func RawToDocuments(doc bson.Raw) []bson.Raw
- func RawToInterfaces(docs ...bson.Raw) []interface{}
Functions ¶
func FindJSONFilesInDir ¶
FindJSONFilesInDir finds the JSON files in a directory.
func RawToDocuments ¶
RawToDocuments converts a bson.Raw that is internally an array of documents to []bson.Raw.
func RawToInterfaces ¶
RawToInterfaces takes one or many bson.Raw documents and returns them as a []interface{}.
Source Files ¶
helpers.go
- Version
- v1.11.9
- Published
- Aug 2, 2023
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 5 minutes ago –
Tools for package owners.