You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
542 B
24 lines
542 B
// Copyright The OpenTelemetry Authors |
|
// SPDX-License-Identifier: Apache-2.0 |
|
|
|
#include "opentelemetry/trace/default_span.h" |
|
#include "opentelemetry/trace/span_context.h" |
|
|
|
#include <cstring> |
|
#include <string> |
|
|
|
#include <gtest/gtest.h> |
|
|
|
namespace |
|
{ |
|
|
|
using opentelemetry::trace::DefaultSpan; |
|
using opentelemetry::trace::SpanContext; |
|
|
|
TEST(DefaultSpanTest, GetContext) |
|
{ |
|
SpanContext span_context = SpanContext(false, false); |
|
DefaultSpan sp = DefaultSpan(span_context); |
|
EXPECT_EQ(span_context, sp.GetContext()); |
|
} |
|
} // namespace
|
|
|