Skip to content

[CDTOOL-1497] Add Nullable Helper for Int#824

Merged
rcaril merged 2 commits into
mainfrom
rcaril/CDTOOL-1497-support-for-nullable-int
Jun 9, 2026
Merged

[CDTOOL-1497] Add Nullable Helper for Int#824
rcaril merged 2 commits into
mainfrom
rcaril/CDTOOL-1497-support-for-nullable-int

Conversation

@rcaril

@rcaril rcaril commented Jun 9, 2026

Copy link
Copy Markdown
Member

Change summary

This PR adds the NullInt func helper to provide the ability to return nil when a int is zero.

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  • Does your submission pass tests?
=== RUN   TestNullInt
=== PAUSE TestNullInt
=== CONT  TestNullString
=== RUN   TestNullString/non-empty_string_returns_pointer
=== RUN   TestNullString/empty_string_returns_nil
--- PASS: TestNullString (0.00s)
    --- PASS: TestNullString/non-empty_string_returns_pointer (0.00s)
    --- PASS: TestNullString/empty_string_returns_nil (0.00s)
=== CONT  TestNullInt
=== RUN   TestNullInt/non-zero_int_returns_pointer
=== RUN   TestNullInt/zero_returns_nil
--- PASS: TestNullInt (0.00s)
    --- PASS: TestNullInt/non-zero_int_returns_pointer (0.00s)
    --- PASS: TestNullInt/zero_returns_nil (0.00s)
PASS

@rcaril rcaril marked this pull request as ready for review June 9, 2026 13:56
@rcaril rcaril requested a review from a team as a code owner June 9, 2026 13:56
@rcaril rcaril requested a review from kpfleming June 9, 2026 13:56
Comment thread CHANGELOG.md
Comment thread CHANGELOG.md
@rcaril rcaril merged commit 536202c into main Jun 9, 2026
9 checks passed
@rcaril rcaril deleted the rcaril/CDTOOL-1497-support-for-nullable-int branch June 9, 2026 14:43
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.

2 participants