Test-More / Test-More/test-more

Introduce "maybe" for possibly missing fields

Open
#950 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Perl
Stars
149
Forks
98
PR merge metrics
No merged PRs in 30d

Description

Either use maybe for both the meanings:

maybe(field xxx => 1);  # field doesn't have to exist, but if it's there, it must be 1
field xxx => maybe(1);  # field must exist, the value might be undef or 1

Or use

maybe_field xxx => 1;
field xxx => maybe 1;

Similarly, item with maybe might either mean a value that's not present at all, or is present as undef or the value (makes a bit less sense than the hash case).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are mentioned. First clarify whether “maybe” applies to missing fields, undef values, or both, and whether the same semantics should apply to items; done means an agreed syntax and behavior with corresponding tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
perl
Domain
testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.