(t *testing.T, stat *info.MemoryStats)
| 67 | } |
| 68 | |
| 69 | func checkMemoryStats(t *testing.T, stat *info.MemoryStats) { |
| 70 | assert := assert.New(t) |
| 71 | |
| 72 | assert.NotEqual(0, stat.Usage, "Memory usage should not be zero") |
| 73 | assert.NotEqual(0, stat.WorkingSet, "Memory working set should not be zero") |
| 74 | assert.NotEqual(0, stat.TotalActiveFile, "Memory total active file should not be zero") |
| 75 | assert.NotEqual(0, stat.TotalInactiveFile, "Memory total inactive file should not be zero") |
| 76 | if stat.WorkingSet > stat.Usage { |
| 77 | t.Errorf("Memory working set (%d) should be at most equal to memory usage (%d)", stat.WorkingSet, stat.Usage) |
| 78 | } |
| 79 | // TODO(vmarmol): Add checks for ContainerData and HierarchicalData |
| 80 | } |
searching dependent graphs…