loginterceptor

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InterceptKlogOutput

func InterceptKlogOutput() (logBuff *bytes.Buffer, cancel func())

func PublishKlogOutputIfFailed

func PublishKlogOutputIfFailed(t *testing.T) func()

klog output interceptor, MUST be called as `defer loginterceptor.PublishKlogOutputIfFailed(t)()`

func PublishObjDumpIfFailed

func PublishObjDumpIfFailed(memo string, t *testing.T, obj any) func()

func PublishOutputIfFailed

func PublishOutputIfFailed(t *testing.T) func()

stderr/stdout interceptor, MUST be called as `defer loginterceptor.PublishOutputIfFailed(t)()`

func StringNoDuplicateLines

func StringNoDuplicateLines(buff *bytes.Buffer) (rv []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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