MCPcopy Create free account
hub / github.com/PostHog/duckgres / TestAutoMemoryLimitCached

Function TestAutoMemoryLimitCached

server/sysinfo/sysinfo_test.go:48–58  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

46}
47
48func TestAutoMemoryLimitCached(t *testing.T) {
49 // Reset and call twice — should return same value
50 autoMemoryLimitOnce = sync.Once{}
51 autoMemoryLimitValue = ""
52
53 first := AutoMemoryLimit()
54 second := AutoMemoryLimit()
55 if first != second {
56 t.Fatalf("AutoMemoryLimit not stable: %q vs %q", first, second)
57 }
58}
59
60func TestTotalSystemMemoryBytes(t *testing.T) {
61 if runtime.GOOS != "linux" {

Callers

nothing calls this directly

Calls 1

AutoMemoryLimitFunction · 0.85

Tested by

no test coverage detected