MCPcopy
hub / github.com/opencontainers/runc / TestNotifyMemoryPressure

Function TestNotifyMemoryPressure

libcontainer/notify_linux_test.go:103–117  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

101}
102
103func TestNotifyMemoryPressure(t *testing.T) {
104 tests := map[PressureLevel]string{
105 LowPressure: "low",
106 MediumPressure: "medium",
107 CriticalPressure: "critical",
108 }
109
110 for level, arg := range tests {
111 f := func(path string) (<-chan struct{}, error) {
112 return notifyMemoryPressure(path, level)
113 }
114
115 testMemoryNotification(t, "memory.pressure_level", f, arg)
116 }
117}

Callers

nothing calls this directly

Calls 2

notifyMemoryPressureFunction · 0.85
testMemoryNotificationFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…