-
Notifications
You must be signed in to change notification settings - Fork 78
Fix gcov formatter #338
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
Fix gcov formatter #338
Conversation
* Adds getSourFileName. Formatter will parse from coverage file the source file name, use it to create the SourceFile and then, add it to the Report. * Updates specs and fixtures so we ensure that we're returning actual source file names and not coverage file names. Addresses #328
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after fixing typo.
formatters/gcov/gcov.go
Outdated
@@ -116,3 +123,27 @@ func parseSourceFile(fileName string, gitHead *object.Commit) (formatters.Source | |||
|
|||
return sf, nil | |||
} | |||
|
|||
func getSourFileName(coverageFileName string) (string, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a small typo here: getSourFileName
-> getSourceFileName
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch thanks!
Adds getSourFileName. Formatter will parse from coverage file
the source file name, use it to create the SourceFile and
then, add it to the Report.
Updates specs and fixtures so we ensure that we're returning
actual source file names and not coverage file names.
Addresses #328
Successful report uploaded here using
make test-gcov
.