(t *testing.T)
| 101 | } |
| 102 | |
| 103 | func 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 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…