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 ¶
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.
Click to show internal directories.
Click to hide internal directories.