Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi line string is being showed as a code #59

Open
alexz77 opened this issue Aug 23, 2010 · 3 comments
Open

Multi line string is being showed as a code #59

alexz77 opened this issue Aug 23, 2010 · 3 comments

Comments

@alexz77
Copy link

alexz77 commented Aug 23, 2010

Consider this code:
result_set = UserTraffic.connection.select_all("select utmcsr as source,
utmcmd as medium,
utmctr as keyword,
utmcct as ad_content,
sum(label='register') as registrations,
sum(label='create-demo-account') as demo_accounts,
sum(label='create-contest-account') as contest_accounts,
sum(label='create-real-account') as real_accounts
from #{UserTraffic.table_name}
where utmccn = #{partner.id} and label is not null#{date_conditions}
group by utmcsr, utmcmd, utmctr, utmcct")

Last 3 lines here showed by RCov like lines of code and the last line is showed as uncovered

@sco11morgan
Copy link

I'm seeing a similar issue. My multi-line string shows up as uncovered. Well, the first line where the variable is declared is marked covered while the rest are uncovered. This is with rcov 0.9.10

@abedra
Copy link
Contributor

abedra commented Jan 18, 2012

Can you please submit this issue with the version and patchlevel of Ruby you are using, your operating system and version, and the version of gcc you are running?

@azimux
Copy link

azimux commented Dec 8, 2012

Experiencing this in 0.9.11

Here's the information @abedra requested if anybody's interested:

ruby 1.8.7 (2011-12-28 MBARI 8/0x6770 on patchlevel 357) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2011.12

gcc (Gentoo 4.5.3-r2 p1.5, pie-0.4.7) 4.5.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants