mirror of
https://github.com/hanzoai/telemetry.git
synced 2026-10-30 20:01:49 +00:00
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]>
18 lines
495 B
Go
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())
|
|
}
|