From 9d6cf8f2c9d60a1e0ca7b76bbb01cb0cf605cc36 Mon Sep 17 00:00:00 2001 From: Yuri Shkuro Date: Tue, 10 May 2022 12:02:41 -0400 Subject: [PATCH] add tests Signed-off-by: Yuri Shkuro --- cmd/collector/app/sanitizer/sanitizer_test.go | 4 ++++ cmd/collector/app/sanitizer/zipkin/span_sanitizer_test.go | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/cmd/collector/app/sanitizer/sanitizer_test.go b/cmd/collector/app/sanitizer/sanitizer_test.go index b651844993e..e370e7a7747 100644 --- a/cmd/collector/app/sanitizer/sanitizer_test.go +++ b/cmd/collector/app/sanitizer/sanitizer_test.go @@ -22,6 +22,10 @@ import ( "github.com/jaegertracing/jaeger/model" ) +func TestNewStandardSanitizers(t *testing.T) { + NewStandardSanitizers() +} + func TestChainedSanitizer(t *testing.T) { var s1 SanitizeSpan = func(span *model.Span) *model.Span { span.Process = &model.Process{ServiceName: "s1"} diff --git a/cmd/collector/app/sanitizer/zipkin/span_sanitizer_test.go b/cmd/collector/app/sanitizer/zipkin/span_sanitizer_test.go index 04e63997ec5..137d3478d5a 100644 --- a/cmd/collector/app/sanitizer/zipkin/span_sanitizer_test.go +++ b/cmd/collector/app/sanitizer/zipkin/span_sanitizer_test.go @@ -28,6 +28,10 @@ var ( positiveDuration = int64(1) ) +func TestNewStandardSanitizers(t *testing.T) { + NewStandardSanitizers() +} + func TestChainedSanitizer(t *testing.T) { sanitizer := NewChainedSanitizer(NewSpanDurationSanitizer())