TraceStateTest
extends TestCase
-
psalm-suppress
-
-
#[CoversClass]
-
\OpenTelemetry\API\Trace\TraceState::class
Table of Contents
Properties
-
$logger
: LoggerInterface
Methods
-
invalidKeyValueProvider()
: array<string|int, mixed>
-
parseProvider()
: array<string|int, mixed>
-
setUp()
: void
-
test_get_tracestate_value()
: void
-
test_get_tracestate_with_empty_string()
: void
-
test_invalid_key_value()
: void
-
test_max_tracestate_length()
: void
-
test_max_tracestate_list_members()
: void
-
test_parse()
: void
-
test_parse_validate_key()
: void
-
test_parse_validate_value()
: void
-
test_to_string()
: void
-
test_to_string_tracestate()
: void
-
test_valid_key_value()
: void
-
test_with_allows_only32_members()
: void
-
test_with_tracestate_value()
: void
-
test_without_tracestate_value()
: void
-
toStringProvider()
: array<string|int, mixed>
-
validKeyValueProvider()
: array<string|int, mixed>
$logger
private
LoggerInterface
$logger
invalidKeyValueProvider()
public
static invalidKeyValueProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>
parseProvider()
public
static parseProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>
setUp()
public
setUp() : void
test_get_tracestate_value()
public
test_get_tracestate_value() : void
test_get_tracestate_with_empty_string()
public
test_get_tracestate_with_empty_string() : void
test_invalid_key_value()
public
test_invalid_key_value(string $key, string $value) : void
Parameters
-
$key
: string
-
-
$value
: string
-
-
#[DataProvider]
-
'invalidKeyValueProvider'
test_max_tracestate_length()
public
test_max_tracestate_length() : void
test_max_tracestate_list_members()
public
test_max_tracestate_list_members() : void
test_parse()
public
test_parse(string $tracestate, string|null $expected) : void
Parameters
-
$tracestate
: string
-
-
$expected
: string|null
-
-
#[DataProvider]
-
'parseProvider'
test_parse_validate_key()
public
test_parse_validate_key() : void
test_parse_validate_value()
public
test_parse_validate_value() : void
test_to_string()
public
test_to_string(array<string|int, mixed> $entries, int|null $limit, string $expected) : void
Parameters
-
$entries
: array<string|int, mixed>
-
-
$limit
: int|null
-
-
$expected
: string
-
-
#[DataProvider]
-
'toStringProvider'
test_to_string_tracestate()
public
test_to_string_tracestate() : void
test_valid_key_value()
public
test_valid_key_value(string $key, string $value) : void
Parameters
-
$key
: string
-
-
$value
: string
-
-
#[DataProvider]
-
'validKeyValueProvider'
test_with_allows_only32_members()
public
test_with_allows_only32_members() : void
test_with_tracestate_value()
public
test_with_tracestate_value() : void
test_without_tracestate_value()
public
test_without_tracestate_value() : void
toStringProvider()
public
static toStringProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>
validKeyValueProvider()
public
static validKeyValueProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>