| 1 |
// Copyright The OpenTelemetry Authors |
| 2 |
// SPDX-License-Identifier: Apache-2.0 |
| 3 |
|
| 4 |
package pprofile |
| 5 |
|
| 6 |
import ( |
| 7 |
"testing" |
| 8 |
|
| 9 |
"github.com/stretchr/testify/assert" |
| 10 |
) |
| 11 |
|
| 12 |
func TestAggregationTemporalityString(t *testing.T) { |
| 13 |
assert.Equal(t, "Unspecified", AggregationTemporalityUnspecified.String()) |
| 14 |
assert.Equal(t, "Delta", AggregationTemporalityDelta.String()) |
| 15 |
assert.Equal(t, "Cumulative", AggregationTemporalityCumulative.String()) |
| 16 |
assert.Empty(t, (AggregationTemporalityCumulative + 1).String()) |
| 17 |
} |