mirror of
https://github.com/hanzoai/telemetry.git
synced 2026-10-30 20:01:49 +00:00
#### Description Fixes testifylint rules which where disabled with golangci-lint v2 upgrade Signed-off-by: Matthieu MOREL <[email protected]>
18 lines
449 B
Go
18 lines
449 B
Go
// Copyright The OpenTelemetry Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package ptrace // import "go.opentelemetry.io/collector/pdata/ptrace"
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestStatusCodeString(t *testing.T) {
|
|
assert.Equal(t, "Unset", StatusCodeUnset.String())
|
|
assert.Equal(t, "Ok", StatusCodeOk.String())
|
|
assert.Equal(t, "Error", StatusCodeError.String())
|
|
assert.Empty(t, StatusCode(100).String())
|
|
}
|