Skip to content

Commit

Permalink
No lint unused field for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias committed Apr 7, 2022
1 parent 9b5f798 commit cff9da6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion internal/global/state_test.go
Expand Up @@ -18,14 +18,15 @@ import (
"testing"

"github.com/stretchr/testify/assert"

"go.opentelemetry.io/otel/propagation"
"go.opentelemetry.io/otel/trace"
)

type nonComparableTracerProvider struct {
trace.TracerProvider

nonComparable func()
nonComparable func() //nolint:structcheck,unused // This is not called.
}

func TestSetTracerProvider(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion metric/internal/global/state_test.go
Expand Up @@ -19,6 +19,7 @@ import (
"testing"

"github.com/stretchr/testify/assert"

"go.opentelemetry.io/otel/metric"
"go.opentelemetry.io/otel/metric/nonrecording"
)
Expand All @@ -31,7 +32,7 @@ func resetGlobalMeterProvider() {
type nonComparableMeterProvider struct {
metric.MeterProvider

nonComparable func()
nonComparable func() //nolint:structcheck,unused // This is not called.
}

func TestSetMeterProvider(t *testing.T) {
Expand Down

0 comments on commit cff9da6

Please sign in to comment.