testutils

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateMongoURL

func GenerateMongoURL(tb testing.TB) (string, string)

func GetTestRouter added in v0.2.0

func GetTestRouter(t *testing.T) (*fiber.App, *swagger.Router[fiber.Handler, fiber.Router])

func MongoCollection

func MongoCollection(t *testing.T, mongoURL, collection, db string) *mongo.Collection

func RandomString

func RandomString(tb testing.TB, n int) string

func RemoveMongoID

func RemoveMongoID(docs []map[string]any) []map[string]any

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL