initial commit

This commit is contained in:
Karol Broda
2025-12-16 22:42:49 +01:00
commit 371f4d13a6
61 changed files with 6872 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
package collector
import (
"testing"
)
func TestGetConnections(t *testing.T) {
// integration test to verify /proc parsing works
conns, err := GetConnections()
if err != nil {
t.Fatalf("GetConnections() returned an error: %v", err)
}
// connections are dynamic, so just verify function succeeded
t.Logf("Successfully got %d connections", len(conns))
}