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
Change mode attribute to array in Measurements #33
Conversation
- closes elixir-bench#32 Signed-off-by: Tallys Martins <tallysmartins@gmail.com>
4d45d08
to
b430af1
Compare
There was a problem hiding this 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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>
There was a problem hiding this 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 |
There was a problem hiding this comment.
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 :)
There was a problem hiding this comment.
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>
da300ec
to
3bacea2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💃
No description provided.