internal/memorylimiter/iruntime/mem_info_test.go
raw| 1 | // Copyright The OpenTelemetry Authors |
| 2 | // SPDX-License-Identifier: Apache-2.0 |
| 3 | |
| 4 | package iruntime |
| 5 | |
| 6 | import ( |
| 7 | "testing" |
| 8 | |
| 9 | "github.com/stretchr/testify/assert" |
| 10 | "github.com/stretchr/testify/require" |
| 11 | ) |
| 12 | |
| 13 | func TestReadMemInfo(t *testing.T) { |
| 14 | vmStat, err := readMemInfo() |
| 15 | require.NoError(t, err) |
| 16 | assert.Positive(t, vmStat) |
| 17 | } |