Skip to content

Commit

Permalink
CI: fix linting
Browse files Browse the repository at this point in the history
Signed-off-by: JuanJo Ciarlante <juanjosec@gmail.com>
  • Loading branch information
jjo committed Feb 6, 2024
1 parent d2ade1a commit 367f3a6
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions outputs/otlp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,10 @@ import (
"github.com/stretchr/testify/require"

"github.com/falcosecurity/falcosidekick/types"
"github.com/samber/lo"

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

func startOptIn(opt trace.SpanStartOption, opts []trace.SpanStartOption) bool {
res := lo.Filter(opts, func(o trace.SpanStartOption, index int) bool {
return o == opt
})
return len(res) == 1
}

func endOptIn(opt trace.SpanEndOption, opts []trace.SpanEndOption) bool {
res := lo.Filter(opts, func(o trace.SpanEndOption, index int) bool {
return o == opt
})
return len(res) == 1
}

func TestOtlpNewTrace(t *testing.T) {
// getTracerProvider = MockGetTracerProvider

Expand Down

0 comments on commit 367f3a6

Please sign in to comment.