Documentation
¶
Overview ¶
Package mongosh provides converts to mongosh's JavaScript syntax.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertFixtures ¶
ConvertFixtures converts fixtures to a mongosh's JavaScript `insertMany` commands.
func ConvertRequest ¶
ConvertRequest converts wirebson's request Document to a mongosh's JavaScript `runCommand`. It removes "$db" field in provided document.
func ConvertResponse ¶
ConvertResponse converts wirebson's response Document to a mongosh's JavaScript `response` variable.
func ConvertTestSuites ¶
func ConvertTestSuites(testSuites data.TestSuites, outDir string) error
ConvertTestSuites converts request and response from each testsuite to a mongosh's JavaScript format, and writes them to files in specified directory.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.