| 1234567891011121314151617181920 |
- package node
- import (
- "github.com/stretchr/testify/assert"
- "testing"
- )
- func TestNode_memory(t *testing.T) {
- m, err := memoryInfo("fixtures/proc")
- assert.Nil(t, err)
- assert.Equal(t,
- MemoryStat{
- TotalBytes: 65871236 * 1000,
- FreeBytes: 7540732 * 1000,
- AvailableBytes: 23826720 * 1000,
- CachedBytes: 15878036 * 1000,
- },
- m,
- )
- }
|