Skip to content

Fix empty error, This closes #19#23

Open
SebastianCzoch wants to merge 1 commit into
keighl:masterfrom
SebastianCzoch:master
Open

Fix empty error, This closes #19#23
SebastianCzoch wants to merge 1 commit into
keighl:masterfrom
SebastianCzoch:master

Conversation

@SebastianCzoch
Copy link
Copy Markdown

No description provided.

Comment thread mandrill_test.go

expect(t, len(responses), 0)

correctResponse := json.Unmarshal([]byte(` `), struct{}{})
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

json.SyntaxError has only Offset field exported, so this is the easiest way to test this case in current testing flow.

@coveralls
Copy link
Copy Markdown

coveralls commented May 23, 2018

Coverage Status

Coverage increased (+0.02%) to 96.992% when pulling 9685096 on SebastianCzoch:master into 1775dd4 on keighl:master.

@widmogrod
Copy link
Copy Markdown

@keighl could you take a look at this PR, this improvement solves also my issues. It would be fantastic to have it merged.

@kevinburke1
Copy link
Copy Markdown

FYI this fails for me when I run go vet ./... with this error:

./mandrill_test.go:93:35: call of Unmarshal passes non-pointer as second argument

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants