mirror of
https://github.com/hanzoai/telemetry.git
synced 2026-10-30 20:01:49 +00:00
This PR only moves all the internal code used by internal/memorylimiter under the same directory, next PR will extract that in a different module to limit dependencies. Signed-off-by: Bogdan Drutu <[email protected]>
18 lines
320 B
Go
18 lines
320 B
Go
// Copyright The OpenTelemetry Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package iruntime
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestReadMemInfo(t *testing.T) {
|
|
vmStat, err := readMemInfo()
|
|
require.NoError(t, err)
|
|
assert.Positive(t, vmStat)
|
|
}
|