testutils_test

package
v1.4.0-beta Latest Latest
Warning

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

Go to latest
Published: May 20, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package test contains utility methods for unit tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CmdToMessage

func CmdToMessage(cmd tea.Cmd, messages *[]tea.Msg)

CmdToMessage - should only be used in unit tests.

func NewMockStorage

func NewMockStorage(shouldFail bool) *mockStorage

Types

type MockLogger

type MockLogger struct {
	Logs []string
}

func (*MockLogger) Close

func (l *MockLogger) Close()

func (*MockLogger) Debug

func (l *MockLogger) Debug(format string, args ...any)

func (*MockLogger) Error

func (l *MockLogger) Error(format string, args ...any)

func (*MockLogger) Info

func (l *MockLogger) Info(format string, args ...any)

Jump to

Keyboard shortcuts

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