Debian Codegraph @

internal/memorylimiter/iruntime/total_memory_other_test.go

raw
1 // Copyright The OpenTelemetry Authors
2 // SPDX-License-Identifier: Apache-2.0
3
4 //go:build !linux
5
6 package iruntime
7
8 import (
9 "testing"
10
11 "github.com/stretchr/testify/assert"
12 "github.com/stretchr/testify/require"
13 )
14
15 func TestTotalMemory(t *testing.T) {
16 totalMemory, err := TotalMemory()
17 require.NoError(t, err)
18 assert.Positive(t, totalMemory)
19 }