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]>
20 lines
348 B
Go
20 lines
348 B
Go
// Copyright The OpenTelemetry Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
//go:build linux
|
|
|
|
package iruntime
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestTotalMemory(t *testing.T) {
|
|
totalMemory, err := TotalMemory()
|
|
require.NoError(t, err)
|
|
assert.Positive(t, totalMemory)
|
|
}
|