add new basic00 implementation#1040
Conversation
mattias-p
left a comment
There was a problem hiding this comment.
In general this looks good to me but I have a bunch of comments.
b577b68 to
cb40bd8
Compare
matsduf
left a comment
There was a problem hiding this comment.
Please add POD documentation of all methods that explains what they do (what they are supposed to do), what the expected input is and what the output will be.
|
I have added the NFC conversion tests and updated the documentation. |
matsduf
left a comment
There was a problem hiding this comment.
This looks fine. I have not run any tests on it though.
There was a problem hiding this comment.
LGTM, tested and it works as expected.
One thing though, overall I think the code could benefit from an editorial pass on the spacing in every conditional blocks (e.g. if ( ... ) everywhere) to improve readability but I won't be blocking the PR if it is not done.
|
|
||
| =item string | ||
|
|
||
| Returns a string representation of the error object, equivalent to message. |
There was a problem hiding this comment.
error object, equivalent to message. -> error object. Equivalent to message().
|
|
||
| =item tag | ||
|
|
||
| Returns the message tag asscociated to the error. |
| use Readonly; | ||
| use Try::Tiny; | ||
| use Zonemaster::LDNS; | ||
| use Data::Dumper; |
tgreenx
left a comment
There was a problem hiding this comment.
One typo else ready to approve
| =item string | ||
|
|
||
| Returns a string representation of the error object, equivalent to message. | ||
| Returns a string representation of the error object. Euivalent to message(). |
|
Updated by #1157 |
Purpose
Implement new Basic00. I implemented the updated "test case" as sanitization methods, it is not used anywhere yet, I am waiting for design validation before using it.
Context
zonemaster/zonemaster#942
Changes
Zonemaster::Engine::Normalization::normalize_namethat follow the procedure described in RequirementsAndNormalizationOfDomainNames.Zonemaster::Engine::Normalization::Errors. Those have a tag and a localized error message (translated when called to allow changes of the locale between calls)How to test this PR