testutil

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDB

func CreateDB() (*gorm.DB, func())

func CreateHttpRequest

func CreateHttpRequest() (echo.Context, *http.Request, *httptest.ResponseRecorder, string)

func CreateMC

func CreateMC() (*memcache.Client, func())

func CreateRDB

func CreateRDB() (*redis.Client, func())

func PrintJson

func PrintJson(v interface{})

func PrintSpans

func PrintSpans(spans tracetest.SpanStubs, traceID string)

func SetupMockTraceProvider

func SetupMockTraceProvider() *tracetest.InMemoryExporter

func SetupTraceCtx

func SetupTraceCtx() (context.Context, string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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