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

Small change for MooseX::Attribute::TypeConstraint::CustomizeFatal #101

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

upasana-me
Copy link
Member

I'm just passing one more argument to _inline_throw_exception. In MooseX::Attribute::TypeConstraint::CustomizeFatal, I'm overriding _inline_throw_exception & using this argument to initialize attribute's value to the default value.

@coveralls
Copy link

Coverage Status

Coverage decreased (-9.89%) to 86.56% when pulling 93d6828 on Sweet-kid:master into d5cad95 on moose:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.21%) to 96.24% when pulling 93d6828 on Sweet-kid:master into d5cad95 on moose:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.21%) to 96.24% when pulling 7d4c36b on Sweet-kid:master into d5cad95 on moose:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-3.62%) to 92.84% when pulling 7d4c36b on Sweet-kid:master into d5cad95 on moose:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.21%) to 96.24% when pulling 7d4c36b on Sweet-kid:master into d5cad95 on moose:master.

@karenetheridge
Copy link
Member

The change in coverage is alarming; it would be nice to see these changes covered by tests.

@Dahut
Copy link

Dahut commented Apr 26, 2015

The weird part is that there is no actual behavior change beyond a method that by default ignores the extra argument. So the coverage change is misleading.

On Sun, Apr 26, 2015 at 6:25 PM, Karen Etheridge [email protected]
wrote:

The change in coverage is alarming; it would be nice to see these changes covered by tests.

Reply to this email directly or view it on GitHub:
#101 (comment)

@upasana-me
Copy link
Member Author

I agree with Dahut!

@karenetheridge
Copy link
Member

This is apparently for avar/moosex-attribute-typeconstraint-customizefatal#1

@upasana-me
Copy link
Member Author

@karenetheridge Do you mean that this coveralls is telling about the decreased coverage for avar's module?

@karenetheridge
Copy link
Member

@Sweet-kid I was just adding a cross-reference to the other PR that this is meant to go with, since it was not clear.

@karenetheridge
Copy link
Member

I think it would be helpful to modify the argument list in the sub definition (https://github.com/Sweet-kid/Moose/blob/master/lib/Moose/Meta/Attribute.pm#L45), so it's clear what the extra argument is meant to be.

@karenetheridge
Copy link
Member

Also, shouldn't this extra argument be passed in all the places where _inline_throw_exception is called?

(Also, please add something to Changes.)

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

Successfully merging this pull request may close these issues.

4 participants