feat: improve test coverage for pulse-sensor-proxy

This commit is contained in:
rcourtman 2026-01-03 21:42:19 +00:00
parent fd7e80ae17
commit 5d4e911298
7 changed files with 1349 additions and 142 deletions

View file

@ -9,8 +9,8 @@ import (
"github.com/rs/zerolog/log"
)
// extractPeerCredentials is a stub for non-Linux systems
func extractPeerCredentials(conn net.Conn) (*peerCredentials, error) {
// defaultExtractPeerCredentials is a stub for non-Linux systems
func defaultExtractPeerCredentials(conn net.Conn) (*peerCredentials, error) {
// On non-Linux systems (like macOS dev), we can't easily get the peer credentials
// from the socket. For development purposes, we'll assume the connection
// comes from the current user.