Multi line string is being showed as a code #59

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

Comments

Projects
None yet
4 participants
@alexz77

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

This comment has been minimized.

Show comment Hide comment
@sco11morgan

sco11morgan Oct 11, 2011

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

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

This comment has been minimized.

Show comment Hide comment
@abedra

abedra Jan 18, 2012

Contributor

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?

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

This comment has been minimized.

Show comment Hide comment
@azimux

azimux 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

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