socket

package
v1.51.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package socket provides test helpers for AF_UNIX socket paths. It is intentionally dependency-free (no import of the session package tree) so it can be imported from test files anywhere, including packages that session itself depends on, without creating an import cycle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShortTempSocketDir

func ShortTempSocketDir(t *testing.T) string

ShortTempSocketDir returns a short-lived temp directory suitable for unix-domain-socket paths, which are limited to 104 bytes on macOS (sockaddr_un.sun_path). Unlike t.TempDir(), which embeds the full test function name in the path, this uses a short fixed prefix so basePath + a socket filename stays well under that limit.

Types

This section is empty.

Jump to

Keyboard shortcuts

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