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

Added content_test.go to increase test coverage. #1823

Closed
wants to merge 1 commit into from
Closed

Added content_test.go to increase test coverage. #1823

wants to merge 1 commit into from

Conversation

Skarlso
Copy link
Contributor

@Skarlso Skarlso commented Feb 5, 2016

Proper pull request. For all the conversation please see pull request #1812.

@@ -35,10 +35,10 @@ import (
"sync"
)

// Length of the summary that Hugo extracts from a content.
// SummaryLength of the summary that Hugo extracts from a content.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/of/is the length of/

@bep
Copy link
Member

bep commented Feb 6, 2016

Started to increase coverage in Helper package. In the process, aslo
a few minor changes have been applied to content.go.

* Content.go has undergone a formatting refactor regarding comments
* Unused function TruncateWords has been removed
* RenderingContext's "mmark" has been changed to use MmarkRender
* Content_test.go added to cover content.go's functionality
@Skarlso
Copy link
Contributor Author

Skarlso commented Feb 6, 2016

Commit fixed. I didn't fix the commits as a whole. Now I got it. Thanks!

@bep
Copy link
Member

bep commented Feb 6, 2016

Yes, now it looks good (I modified your commit message slightly). Thanks for your contribution. Tests are very, very important.

Merged in e95f3af

@bep bep closed this Feb 6, 2016
@Skarlso
Copy link
Contributor Author

Skarlso commented Feb 6, 2016

Ahh thanks, I learned a lot from this. I'm working on the next batch already. I love writing tests actually.

Cheers @bep!

@Skarlso Skarlso deleted the helpertests branch February 6, 2016 20:19
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants