lib/Test/Docker/Image/Boot/Boot2docker.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 15 | 15 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 20 | 21 | 95.2 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Test::Docker::Image::Boot::Boot2docker; | ||||||
2 | |||||||
3 | 3 | 3 | 37753 | use strict; | |||
3 | 8 | ||||||
3 | 132 | ||||||
4 | 3 | 3 | 17 | use warnings; | |||
3 | 6 | ||||||
3 | 92 | ||||||
5 | 3 | 3 | 1672 | use parent 'Test::Docker::Image::Boot'; | |||
3 | 387 | ||||||
3 | 20 | ||||||
6 | 3 | 3 | 2712 | use URI::Split 'uri_split'; | |||
3 | 11718 | ||||||
3 | 425 | ||||||
7 | |||||||
8 | sub host { | ||||||
9 | 1 | 1 | 0 | 895 | my (undef, $auth) = uri_split $ENV{DOCKER_HOST}; | ||
10 | 1 | 22 | my ($host, $port) = split ':', $auth; | ||||
11 | 1 | 4 | return $host; | ||||
12 | } | ||||||
13 | |||||||
14 | 1; |