add tests for TCP and lneto along with TCB control logic

This commit is contained in:
soypat
2024-12-27 17:27:28 -03:00
parent 7f03c1c0a6
commit ba81dfac58
13 changed files with 2177 additions and 22 deletions
+19
View File
@@ -0,0 +1,19 @@
//go:build !debugheaplog
package internal
import (
"context"
"log/slog"
)
const HeapAllocDebugging = false
// LogAttrs is a helper function that is used by all package loggers and that
// can be switched out with the `debugheaplog` build tag for a non-allocating
// logger that prints out when heap allocations occur.
func LogAttrs(l *slog.Logger, level slog.Level, msg string, attrs ...slog.Attr) {
if l != nil {
l.LogAttrs(context.Background(), level, msg, attrs...)
}
}