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 test for JSON marshalling for Reaction and Reactions - relates to (#55) #1324

Merged
merged 3 commits into from
Oct 29, 2019

Conversation

thomaslanghorst
Copy link
Contributor

This PR relates to (#55) and adds a test for the Reaction and Reactions resources.

@googlebot googlebot added the cla: yes Indication that the PR author has signed a Google Contributor License Agreement. label Oct 28, 2019
@codecov
Copy link

codecov bot commented Oct 28, 2019

Codecov Report

Merging #1324 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1324   +/-   ##
=======================================
  Coverage   73.45%   73.45%           
=======================================
  Files          86       86           
  Lines        6061     6061           
=======================================
  Hits         4452     4452           
  Misses        838      838           
  Partials      771      771

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2a36cb4...6bd1732. Read the comment docs.

Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

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

Thank you, @thomaslanghorst!
Please make a couple minor tweaks and then we can merge.

@@ -12,6 +12,53 @@ import (
"testing"
)

func TestReaction_marshall(t *testing.T) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's please name this: TestReaction_Marshal (one 'el', capital 'M').

testJSONMarshal(t, r, want)
}

func TestReactions_marshall(t *testing.T) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here, please.

@thomaslanghorst
Copy link
Contributor Author

@gmlewis Thanks for pointing these out. I made the requested changes.

Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

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

Thank you, @thomaslanghorst!
LGTM.
Merging.

@gmlewis gmlewis merged commit e9c3f88 into google:master Oct 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Indication that the PR author has signed a Google Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants