Files
telemetry/pdata/pprofile/aggregation_temporality_test.go
Alex BotenandGitHub 49ad34fba3 [chore] update tests to use Empty (#12750)
This change was caught by the linter in the update of golangci-lint to
v2 (see
https://github.com/open-telemetry/opentelemetry-collector/pull/12731)

Signed-off-by: Alex Boten <[email protected]>
2025-03-27 20:52:18 +00:00

18 lines
495 B
Go

// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
package pprofile
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestAggregationTemporalityString(t *testing.T) {
assert.Equal(t, "Unspecified", AggregationTemporalityUnspecified.String())
assert.Equal(t, "Delta", AggregationTemporalityDelta.String())
assert.Equal(t, "Cumulative", AggregationTemporalityCumulative.String())
assert.Empty(t, (AggregationTemporalityCumulative + 1).String())
}