Condition Coverage

blib/lib/OpenTelemetry/Exporter/OTLP/Logs.pm
Criterion Covered Total %
condition 9 24 37.5


or 2 conditions

line l !l condition
17 0 1 config("EXPORTER_OTLP_ENDPOINT") // "http://localhost:4318"
31 0 1 config(glob("EXPORTER_OTLP_{LOGS_,}TIMEOUT")) // 10
32 0 1 config(glob("EXPORTER_OTLP_{LOGS_,}HEADERS")) // {}

or 3 conditions

line l !l&&r !l&&!r condition
16 0 1 0 config("EXPORTER_OTLP_LOGS_ENDPOINT") // do { my $base = config("EXPORTER_OTLP_ENDPOINT") // "http://localhost:4318"; $base =~ s[/+$][]r . '/v1/logs' }
0 1 0 $args{'endpoint'} //= config("EXPORTER_OTLP_LOGS_ENDPOINT") // do { my $base = config("EXPORTER_OTLP_ENDPOINT") // "http://localhost:4318"; $base =~ s[/+$][]r . '/v1/logs' }
28 0 1 0 config(glob("EXPORTER_OTLP_{LOGS_,}COMPRESSION")) // $COMPRESSION
0 1 0 $args{'compression'} //= config(glob("EXPORTER_OTLP_{LOGS_,}COMPRESSION")) // $COMPRESSION
31 0 1 0 $args{'timeout'} //= config(glob("EXPORTER_OTLP_{LOGS_,}TIMEOUT")) // 10
32 0 1 0 $args{'headers'} //= config(glob("EXPORTER_OTLP_{LOGS_,}HEADERS")) // {}