Skip to content

Commit

Permalink
Fixed various syntax issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nholbrook committed Jun 22, 2020
1 parent 97aee51 commit 5dce647
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions sdk/test/trace/always_off_sampler_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,17 @@ class MockSpanContext

TEST(AlwaysOffSampler, MockSpanContext)
{
Sampler sampler(new AlwaysOffSampler());
AlwaysOffSampler sampler();

ASSERT_EQ("AlwaysOffSampler", sampler.GetDescription());

// Placeholder
MockSpanContext context(new MockSpanContext());
MockSpanContext context();

constexpr uint8_t buf[] = {1, 2, 3, 4, 5, 6, 7, 8, 8, 7, 6, 5, 4, 3, 2, 1}
opentelemetry::trace::TraceId trace_id(buf);
opentelemetry::trace::TraceId trace_id();

auto sampling_result = sampler.ShouldSample(
context, trace_id, "Test", SpanKind.kInternal, nostd::span());

ASSERT_NE(nullptr, sampling_result);
context, trace_id, "Test", SpanKind::kInternal, nostd::span());

auto decision = sampling_result.GetDecision();

Expand Down

0 comments on commit 5dce647

Please sign in to comment.