1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-01-07 23:02:15 +02:00
opentelemetry-go/sdk/resource/host_id_windows_test.go
2024-02-29 07:05:28 +01:00

22 lines
401 B
Go

// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
//go:build windows
// +build windows
package resource // import "go.opentelemetry.io/otel/sdk/resource"
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestReader(t *testing.T) {
reader := &hostIDReaderWindows{}
result, err := reader.read()
require.NoError(t, err)
require.NotEmpty(t, result)
}