Skip to content

Updates for the usage of Zonemaster::Engine::Translator#1221

Merged
tgreenx merged 1 commit intozonemaster:developfrom
tgreenx:update-translator-testing
May 15, 2023
Merged

Updates for the usage of Zonemaster::Engine::Translator#1221
tgreenx merged 1 commit intozonemaster:developfrom
tgreenx:update-translator-testing

Conversation

@tgreenx
Copy link
Contributor

@tgreenx tgreenx commented May 11, 2023

Purpose

This PR proposes updates to the usage of Zonemaster::Engine::Translator. It updates its documentation, adds unitary tests, and harmonizes message tags in each Test Case modules.

Context

#1144 mentions missing unitary tests and unneeded parameters.

Changes

lib/Zonemaster/Engine/Translator.pm

  • Update documentation

t/translator.t

  • Update unitary tests to check that a message tag exists for each implemented Test Case

lib/Zonemaster/Engine/Test/[ Address ... Zone ].pm

  • Remove useless parameter in Test Case ID message tags in each Test Case module

How to test this PR

Tests should pass.

@tgreenx tgreenx added A-Translation Area: Documentation of, implementation of or actual translation of text V-Patch Versioning: The change gives an update of patch in version. labels May 11, 2023
@tgreenx tgreenx added this to the v2023.1 milestone May 11, 2023
@tgreenx tgreenx requested review from a user, hannaeko, marc-vanderwal, matsduf and mattias-p May 11, 2023 12:59
matsduf
matsduf previously approved these changes May 12, 2023
Copy link
Contributor

@marc-vanderwal marc-vanderwal left a comment

Choose a reason for hiding this comment

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

I saw just one teeny tiny typo.

- Update documentation in Zonemaster::Engine::Translator
- Update unitary tests in t/translator.t to check that a message tag exists for each implemented Test Case
- Remove useless parameter in Test Case ID message tags in each Test Case module
@tgreenx
Copy link
Contributor Author

tgreenx commented May 15, 2023

@matsduf @marc-vanderwal please re-approve

@tgreenx tgreenx merged commit d2a5f12 into zonemaster:develop May 15, 2023
@tgreenx tgreenx deleted the update-translator-testing branch May 15, 2023 08:38
@hannaeko hannaeko self-assigned this Jun 1, 2023
@hannaeko
Copy link
Contributor

hannaeko commented Jun 1, 2023

Unit tests are passing, translation of test case is working.

@hannaeko hannaeko added the S-ReleaseTested Status: The PR has been successfully tested in release testing label Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Translation Area: Documentation of, implementation of or actual translation of text S-ReleaseTested Status: The PR has been successfully tested in release testing V-Patch Versioning: The change gives an update of patch in version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants