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

Add tests for marathon.go and refactor #6

Merged
merged 1 commit into from
Dec 8, 2015
Merged

Add tests for marathon.go and refactor #6

merged 1 commit into from
Dec 8, 2015

Conversation

janisz
Copy link
Contributor

@janisz janisz commented Dec 8, 2015

No description provided.


app, err := ParseApp(appBlob)
assert.Nil(t, err)
assert.Equal(t, len(app.Tasks), 2)
Copy link
Contributor

Choose a reason for hiding this comment

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

assert.Len() ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed


apps, err := ParseApps(appBlob)
assert.Nil(t, err)
assert.Equal(t, len(apps), 1)
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe some app[field] check would be nice here or we should limit this json-string to necessary minimum (or maybe reading it from external file)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I deleted unused fields in structs and move JSON to file

@dankraw
Copy link
Contributor

dankraw commented Dec 8, 2015

great 👍

janisz added a commit that referenced this pull request Dec 8, 2015
Add tests for marathon.go and refactor
@janisz janisz merged commit 6c68a44 into master Dec 8, 2015
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.

None yet

2 participants