Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureLogsForTest ¶
func CaptureLogsForTest() func() []string
CaptureLogsForTest adds a logging listener which captures messages to an internal channel. Returns a function that ends log capturing and returns any captured messages. It's safe to call endCapture() multiple times, so a simple call pattern is:
endCapture := CaptureLogsForTest() defer endCapture() // ensure cleanup in case of test assert failures /* some test code */ messages := endCapture() /* do inspection of log messages */
func EnableStdoutLogging ¶
func EnableStdoutLogging()
EnableStdoutLogging turns on logging to stdout for diagnostics.
func RandomString ¶ added in v0.1.1
RandomString generates a random string with prefix
Types ¶
type ConnectionParamsForTest ¶ added in v0.1.1
type ConnectionParamsForTest struct { ConnectionString string EventHubName string EventHubNamespace string StorageConnectionString string }
func GetConnectionParamsForTest ¶ added in v0.1.1
func GetConnectionParamsForTest(t *testing.T) ConnectionParamsForTest
Click to show internal directories.
Click to hide internal directories.