Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CommonInjectors = nject.Sequence("common", nject.Provide("context", context.Background), nject.Required(nject.Provide("Report-results", func(inner func(), t T) { defer func() { if r := recover(); r != nil { t.Logf("RESULT: %s FAILED w/panic", t.Name()) panic(r) } if t.Failed() { t.Logf("RESULT: %s FAILED", t.Name()) } else { t.Logf("RESULT: %s PASSED", t.Name()) } }() inner() })), nject.Provide("cancel", AutoCancel), nject.Provide("brokers", KafkaBrokers), )
Functions ¶
func CatchPanic ¶
func GetTracerConfig ¶
func GetTracerConfig(t ntest.T) eventmodels.TracerConfig
func TracerContext ¶
TracerContext returns a context with a span inside. It is not part of the default context because we don't want to pass a context that already has a span to the library when starting consumers because then we wouldn't be able to test if logging inside consumers has a span.
func TracerProvider ¶
func TracerProvider(t ntest.T, prefix string) eventmodels.TracerProvider
Types ¶
Click to show internal directories.
Click to hide internal directories.