Versions in this module Expand all Collapse all v0 v0.6.0 Oct 23, 2025 Changes in this version + func AssertEqual(t *testing.T, expected, actual interface{}, msg string) + func AssertLenEqual(t *testing.T, expected int, slice interface{}, msg string) + func AssertNotEmpty(t *testing.T, value string, msg string) + func Cleanup(t *testing.T, name string, fn func() error) + func CompareJSON(t *testing.T, expected, actual []byte) + func ExpectedSessionsCount(t *testing.T) int + func ExpectedUsersCount(t *testing.T) int + func FixturesPath(t *testing.T) string + func GetFixtureString(t *testing.T, name string) string + func IsSystemdAvailable() bool + func LoadFixture(t *testing.T, name string) []byte + func LoadFixtureJSON(t *testing.T, name string) []byte + func NewTestContext(t *testing.T, timeout time.Duration) (context.Context, context.CancelFunc) + func NewTestLogger(t *testing.T) zerolog.Logger + func RequireError(t *testing.T, err error, msg string) + func RequireNoError(t *testing.T, err error, msg string) + func RetryWithTimeout(t *testing.T, timeout time.Duration, interval time.Duration, fn func() error) error + func SkipIfShort(t *testing.T, reason string) + func UnmarshalFixture(t *testing.T, name string, target interface{}) + func ValidateAllFixtures(t *testing.T) + func ValidateFixture(t *testing.T, name string) + type MockSocket struct + func NewMockSocket(t *testing.T, cfg MockSocketConfig) *MockSocket + func (m *MockSocket) Close() + func (m *MockSocket) SocketPath() string + func (m *MockSocket) WaitReady(t *testing.T) error + type MockSocketConfig struct + ComposeSocketVolume string + FixturesPath string + SocketPath string + StartTimeout time.Duration + UseCompose bool + type SystemdTestHelper struct + ServiceFile string + ServiceName string + UnitDir string + UserMode bool + func NewSystemdTestHelper(t *testing.T, serviceName string) *SystemdTestHelper + func (h *SystemdTestHelper) Cleanup(t *testing.T) + func (h *SystemdTestHelper) GetServiceName() string + func (h *SystemdTestHelper) RunSystemctl(ctx context.Context, args ...string) (string, string, error) + func (h *SystemdTestHelper) Setup(t *testing.T) error + func (h *SystemdTestHelper) WaitForState(ctx context.Context, expectedState string, maxWait time.Duration) error