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

Change mode attribute to array in Measurements #33

Merged
merged 3 commits into from Jul 13, 2018

Conversation

tallysmartins
Copy link
Member

No description provided.

@coveralls
Copy link

coveralls commented Jun 28, 2018

Coverage Status

Coverage increased (+0.6%) to 78.351% when pulling 3bacea2 on tallysmartins:changes_in_measurements into 87507a3 on elixir-bench:master.

- closes elixir-bench#32

Signed-off-by: Tallys Martins <tallysmartins@gmail.com>
Copy link
Member

@PragTob PragTob left a comment

Choose a reason for hiding this comment

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

Looking good, I'm just thinking we're missing a test asserting that the mode setting code in the changeset works

change(changeset, mode: [mode])
else
changeset
end
Copy link
Member

Choose a reason for hiding this comment

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

we're not testing this functionality anywhere, are we?

Copy link
Member Author

Choose a reason for hiding this comment

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

tests added

Signed-off-by: Tallys Martins <tallysmartins@gmail.com>
Copy link
Member

@PragTob PragTob left a comment

Choose a reason for hiding this comment

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

Small comment looking good otherwise

:std_dev_ips,
:std_dev_ratio
] = Map.keys(changeset.changes)
end
Copy link
Member

Choose a reason for hiding this comment

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

not sure we need this test, we more or less just repeat the list of fields. We should be fine without it I think :)

Copy link
Member Author

Choose a reason for hiding this comment

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

it doesn't cast the :mode attribute, the only field that is not required. But I agree that this is kind of a weak test, this case is someway covered in the next test cases where I do mode = nil. Will remove this.

Signed-off-by: Tallys Martins <tallysmartins@gmail.com>
Copy link
Member

@PragTob PragTob left a comment

Choose a reason for hiding this comment

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

💃

@PragTob PragTob merged commit 978fb0a into elixir-bench:master Jul 13, 2018
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

3 participants