Documentation
¶
Index ¶
- func LogfilePath(filename string) string
- func NewTestLogger() (obs *observer.ObservedLogs, log *zap.SugaredLogger)
- func NewTestLoggerWithPath(path string) (obs *observer.ObservedLogs, log *zap.SugaredLogger)
- func RandString(n int) string
- func WaitForPort(host, port string, timeOut time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogfilePath ¶ added in v0.3.1
LogfilePath returns the path for the given filename in the testing tmp directory
func NewTestLogger ¶
func NewTestLogger() (obs *observer.ObservedLogs, log *zap.SugaredLogger)
NewTestLogger returns a ZAP logger for assertions, which also logs to <tmpdir>/cf-operator-tests.log
func NewTestLoggerWithPath ¶ added in v0.2.2
func NewTestLoggerWithPath(path string) (obs *observer.ObservedLogs, log *zap.SugaredLogger)
NewTestLoggerWithPath returns a logger which logs to path
Types ¶
This section is empty.
Source Files
¶
- logger.go
- randomstring.go
- wait_for_port.go
Click to show internal directories.
Click to hide internal directories.