testx

package
v0.0.0-...-caa70b2 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestDB

type TestDB struct {
	Ctx      context.Context
	BunDb    *bun.DB
	Shutdown func()
}

func SetUpDb

func SetUpDb() (*TestDB, error)

SetUpDb is a helper func that runs posgres DB in a docker using testcontainers.

type TestServer

type TestServer struct {
	TestDb TestDB
	App    *fiber.App
}

func SetUpServer

func SetUpServer() (*TestServer, error)

SetUpServer helps to set up test Server.

Jump to

Keyboard shortcuts

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