Example #1
0
def test_get_local_span_timestamp_and_duration_server():
    timestamp, duration = logging_helper.get_local_span_timestamp_and_duration(
        {
            'sr': 12,
            'ss': 30
        }, )
    assert timestamp == 12
    assert duration == 18
Example #2
0
def test_get_local_span_timestamp_and_duration_none():
    timestamp, duration = logging_helper.get_local_span_timestamp_and_duration(
        {
            'cs': 16,
            'other': 5
        })
    assert timestamp is None
    assert duration is None
Example #3
0
def test_get_local_span_timestamp_and_duration_client():
    timestamp, duration = logging_helper.get_local_span_timestamp_and_duration(
        {
            'cs': 16,
            'cr': 30
        }, )
    assert timestamp == 16
    assert duration == 14