Skip to content

testutil: better function implementation - #23422

Closed
bagder wants to merge 2 commits into
masterfrom
bagder/runtest-funcs
Closed

bagder wants to merge 2 commits into
masterfrom
bagder/runtest-funcs

Conversation

@bagder

@bagder bagder commented Oct 15, 2026

Copy link
Copy Markdown
Member

Improves the hex[], repeat[], b64[] and days[] functions so that the can be used correctly multiple times on the same line etc.

Improves the hex[], repeat[], b64[] and days[] functions so that the can
be used correctly multiple times on the same line etc.
@bagder bagder added the tests label Oct 15, 2026
@bagder
bagder marked this pull request as ready for review October 15, 2026 17:42
@bagder
bagder requested a balanced review from Copilot October 15, 2026 17:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Dropping case-insensitive matching leaves previously supported directives unexpanded.

1 open finding
What changed in this PR

Refactors test-data preprocessing to improve handling of multiple function directives on the same line.

Changes:

  • Replaces placeholder loops with helper functions and global substitutions.
  • Renames subbase64 to subfuncs and updates the runner.
  • Removes repeated preprocessing during upload verification.
File Description
tests/​testutil.pm Adds directive helpers and global substitutions.
tests/​runtests.pl Removes upload-verification preprocessing calls.
tests/​runner.pm Imports and calls subfuncs.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread tests/testutil.pm Resolved
@bagder bagder closed this in cb87ba8 Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants