Documentation
¶
Index ¶
- func Debug(format string, args ...interface{})
- func Error(format string, args ...interface{})
- func Info(format string, args ...interface{})
- func IsDebug() bool
- func SetLevel(level Level)
- func SetOutput(stdout, stderr io.Writer)
- func SetupComplete()
- func StopSpinner(handle *SpinnerHandle)
- func Summary(total, passed, failed int)
- func TestFailed(name string, err error)
- func TestPassed()
- func TestRunning(current, total int, name string)
- type Level
- type SpinnerHandle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(format string, args ...interface{})
Debug logs a debug message (only shown with --debug flag)
func Error ¶
func Error(format string, args ...interface{})
Error logs an error message (always shown)
func Info ¶
func Info(format string, args ...interface{})
Info logs an info message (shown in normal mode)
func StopSpinner ¶
func StopSpinner(handle *SpinnerHandle)
StopSpinner stops the spinner and waits for it to finish
func TestFailed ¶
TestFailed prints the test failure with details
func TestRunning ¶
TestRunning prints the test header without spinner
Types ¶
type SpinnerHandle ¶
type SpinnerHandle struct {
// contains filtered or unexported fields
}
SpinnerHandle represents a running spinner
func ShowSpinner ¶
func ShowSpinner(message string) *SpinnerHandle
ShowSpinner displays an animated spinner with a message Returns a handle that can be used to stop the spinner
func TestingMessage ¶
func TestingMessage() *SpinnerHandle
TestingMessage prints the "Testing..." message with spinner start
Click to show internal directories.
Click to hide internal directories.