Skip to content

test: cover PTN_BIND 1/4/5 arity and PTN_WHERE 3/4 arg variants - #42

Merged
sentomk merged 1 commit into
mainfrom
test/bind-where-arity
Jul 31, 2026
Merged

sentomk merged 1 commit into
mainfrom
test/bind-where-arity

Conversation

@sentomk

@sentomk sentomk commented Jul 31, 2026

Copy link
Copy Markdown
Owner

Summary

PTN_BIND and PTN_WHERE macros support 1-5 member arity, but only
some variants had test coverage. PTN_BIND_1 (single member),
PTN_BIND_4, and PTN_BIND_5 were never exercised, and PTN_WHERE
with 3 or 4 parameters was also missing.

Changes

  • Add Single (1 member), Quad (4 members), Penta (5 members)
    test structs with PTN_BIND declarations
  • Type-correctness static_asserts for each new arity (arg_t index)
  • Hit/miss guard expressions for each struct
  • PTN_WHERE 3-arg and 4-arg guard tests on Triple and Quad
  • Completes the full 1-5 arity matrix for both PTN_BIND and
    PTN_WHERE

Testing

All 28 NamedPlaceholder tests pass locally (13 new + 15 existing).
Full test suite also passes.

@codecov

codecov Bot commented Jul 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sentomk
sentomk force-pushed the test/bind-where-arity branch from 1e5c3ac to d518316 Compare July 31, 2026 05:30
Add Single (1 member), Quad (4 members), and Penta (5 members)
test structs with PTN_BIND declarations for the previously
untested arity overloads. Each gets type-correctness static_asserts
and hit/miss guard expressions.

Also add PTN_WHERE 3-arg and 4-arg guard tests, completing the
full 1-5 arity matrix (1, 2, and 5 were already tested in
tests_guard.cpp).
@sentomk
sentomk force-pushed the test/bind-where-arity branch from d518316 to 884d5bc Compare July 31, 2026 05:32
@sentomk
sentomk merged commit ecf3c9d into main Jul 31, 2026
22 checks passed
@sentomk
sentomk deleted the test/bind-where-arity branch July 31, 2026 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant