Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <github@ysh.us>
  • Loading branch information
yurishkuro committed May 10, 2022
1 parent 2778f23 commit 9d6cf8f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/collector/app/sanitizer/sanitizer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down
4 changes: 4 additions & 0 deletions cmd/collector/app/sanitizer/zipkin/span_sanitizer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ var (
positiveDuration = int64(1)
)

func TestNewStandardSanitizers(t *testing.T) {
NewStandardSanitizers()
}

func TestChainedSanitizer(t *testing.T) {
sanitizer := NewChainedSanitizer(NewSpanDurationSanitizer())

Expand Down

0 comments on commit 9d6cf8f

Please sign in to comment.