Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Include line number information #31

Open
AlekSi opened this issue Jan 24, 2013 · 2 comments
Open

Include line number information #31

AlekSi opened this issue Jan 24, 2013 · 2 comments

Comments

@AlekSi
Copy link
Contributor

AlekSi commented Jan 24, 2013

This code is copied there and will be copied in gocov-xml, unless gocov test output will include line number information. It will also allow you to make text report by lines.

@axw
Copy link
Owner

axw commented Jan 25, 2013

I don't want to go adding redundant information to the gocov structures, but I have been considering introducing a utilities package, and something like this might fit in there.

(FWIW, I actually think it should be done differently in gocov-html, using a span to colour part of a line. i.e. just colour the statement itself, like in gocovgui).

@AlekSi
Copy link
Contributor Author

AlekSi commented Jan 25, 2013

Well, go/token is obscure, so pos-to-line converter would be very useful.

Also, this code has a bug: a.files is intended to by used as a cache, but never updated.

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

No branches or pull requests

2 participants