Branch Coverage

blib/lib/Finance/YahooProfile.pm
Criterion Covered Total %
branch 0 60 0.0


line true false branch
16 0 0 if @_
24 0 0 unless defined $params{'dollar_symbol'}
34 0 0 if defined $$self{'timeout'}
37 0 0 unless (ref $params{'s'})
59 0 0 if ($content =~ /\nNo Such Data/)
70 0 0 if ($content =~ s/(.+?)As of //s)
75 0 0 if ($content =~ s/(.+?)Price and Volume//s)
80 0 0 if ($content =~ s/52-Week Lowon (.+?)\$(.+?) Recent Price(.+?) 52-Week Highon (.+?)\$(.+?)( )?Beta/Beta/s)
89 0 0 if ($content =~ s/Beta(.+?) Daily Volume \(3-month avg\)(.+?)Daily Volume \(10-day avg\)(.+?)Stock/Stock/s)
96 0 0 if ($content =~ s/.+?52-Week Change(.+?)52-Week Changerelative to S&P500(.+?)Share//s)
102 0 0 if ($content =~ s/.+?Market Capitalization(.+?)Shares Outstanding(.+?)Float(.+?)Dividends//s)
108 0 0 if ($content =~ s/.*?Annual Dividend( \(indicated\))?(.+?)( Dividend Yield(.+?))?Last Split(.+?)Per//s)
112 0 0 if ($5 ne 'none')
113 0 0 if ($5 =~ /factor (.+?) on (.+)/)
121 0 0 if ($content =~ s/.+?Book Value \(mrq\*\)(.+?) Earnings \(ttm\)(.+?) (Earnings \(mrq\)(.+?) )?Sales \(ttm\)(.+?) Cash( \(mrq\*\)?)?(.+?) Valuation//s)
130 0 0 if ($content =~ s[.+?Price/Book \(mrq\*\)(.+?) Price/Earnings( \(ttm\))?(.+?) Price/Sales \(ttm\)(.+?) Income][]s)
137 0 0 if ($content =~ s/.+?Sales \(ttm\)(.+?)EBITDA \(ttm\*\)(.+?)Income available to common \(ttm\)(.+?)Profitability//s)
144 0 0 if ($content =~ s/.*?Profit Margin \(ttm\)(.+?)Operating Margin \(ttm\)(.+?)Fiscal//s)
150 0 0 if ($content =~ s/.*?Fiscal Year Ends(.+?)Most recent quarter(\(fully\nupdated\))?(.+?)(Most recent quarter\(flash earnings\)(.+?))?Management//s)
159 0 0 if ($content =~ s/.*?Return on Assets \(ttm\)(.+?)Return on Equity \(ttm\)(.+?)Financial//s)
165 0 0 if ($content =~ s[.*?Current Ratio( \(mrq\*?\))?(.+?) Debt/Equity( \(mrq\*?\))?(.+?) Total Cash( \(mrq\*?\))?(.+?)Short][]s)
172 0 0 if ($content =~ s/.*?InterestAs\nof (.+?)Shares\nShort(.+?)Percent of Float(.+?)Shares Short\(Prior Month\)(.+?)Short Ratio(.+?) Daily Volume([\d\.KMB]+)//s)
181 0 0 if $$self{'expand_numbers'} or $$self{'expand_percent'} or $$self{'expand'}
187 0 0 wantarray ? :
227 0 0 if ($$self{'expand_numbers'} or $$self{'expand'})
229 0 0 $$res{$key} =~ s/^\$// ? :
231 0 0 if ($$res{$key} =~ s/(K|M|B|T)$//)
235 0 0 if ($$self{'dollar_symbol'})
241 0 0 if ($$self{'expand_percent'} or $$self{'expand'})
243 0 0 if ($$res{$key} =~ s/^([\+\-\d\.]+)%$/$1/)