package helpers

import "go.mongodb.org/mongo-driver/internal/testutil/helpers"

Index

Functions

func FindJSONFilesInDir

func FindJSONFilesInDir(t *testing.T, dir string) []string

FindJSONFilesInDir finds the JSON files in a directory.

func RawToDocuments

func RawToDocuments(doc bson.Raw) []bson.Raw

RawToDocuments converts a bson.Raw that is internally an array of documents to []bson.Raw.

func RawToInterfaces

func RawToInterfaces(docs ...bson.Raw) []interface{}

RawToInterfaces takes one or many bson.Raw documents and returns them as a []interface{}.

Source Files

helpers.go

Version
v1.11.6
Published
May 3, 2023
Platform
windows/amd64
Imports
6 packages
Last checked
5 minutes ago

Tools for package owners.