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 range rule implementation and tests #8

Merged
merged 3 commits into from
Aug 31, 2016

Conversation

sgleizes
Copy link
Contributor

The Range rule is used to validate that numeric values are within a given range.

This simple implementation supports int, uint and float types and indirects initial value to support for pointers, interfaces, ...

@coveralls
Copy link

coveralls commented Aug 30, 2016

Coverage Status

Coverage decreased (-1.5%) to 98.507% when pulling 8f7ce37 on sgleizes:feature/add-range-rule into c5ea90f on go-ozzo:master.

@coveralls
Copy link

coveralls commented Aug 30, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling a70fb00 on sgleizes:feature/add-range-rule into c5ea90f on go-ozzo:master.

@qiangxue
Copy link
Member

Everything looks great to me, except the license header in range_test.go. Could you please fix that? Thanks!

@sgleizes
Copy link
Contributor Author

Sorry about that. Bad habit.

@qiangxue qiangxue merged commit c33fb6f into go-ozzo:master Aug 31, 2016
@qiangxue
Copy link
Member

Thank you very much!

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.

3 participants