X Tutup
Skip to content

Update hard coded macro defines to constexpr variables in .cpp files.#2064

Draft
Dimi1010 wants to merge 4 commits intoseladb:devfrom
Dimi1010:refactor/macro-to-constexpr
Draft

Update hard coded macro defines to constexpr variables in .cpp files.#2064
Dimi1010 wants to merge 4 commits intoseladb:devfrom
Dimi1010:refactor/macro-to-constexpr

Conversation

@Dimi1010
Copy link
Collaborator

@Dimi1010 Dimi1010 commented Feb 4, 2026

This PR updates some of the hardcoded macro constants to constexpr variables.

@Dimi1010 Dimi1010 requested a review from seladb as a code owner February 4, 2026 09:03
@Dimi1010 Dimi1010 marked this pull request as draft February 4, 2026 09:14
@codecov
Copy link

codecov bot commented Feb 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.81%. Comparing base (bcc9ffd) to head (dae669e).

Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #2064   +/-   ##
=======================================
  Coverage   83.81%   83.81%           
=======================================
  Files         313      313           
  Lines       55676    55669    -7     
  Branches    11606    11570   -36     
=======================================
- Hits        46665    46660    -5     
+ Misses       7810     7807    -3     
- Partials     1201     1202    +1     
Flag Coverage Δ
alpine320 76.39% <ø> (-0.01%) ⬇️
fedora42 76.14% <ø> (-0.01%) ⬇️
macos-14 81.97% <ø> (ø)
macos-15 81.95% <ø> (-0.01%) ⬇️
mingw32 70.35% <ø> (-0.02%) ⬇️
mingw64 70.34% <ø> (+0.06%) ⬆️
npcap ?
rhel94 75.75% <ø> (-0.01%) ⬇️
ubuntu2004 59.59% <ø> (-0.01%) ⬇️
ubuntu2004-zstd 59.69% <ø> (-0.04%) ⬇️
ubuntu2204 75.68% <ø> (-0.01%) ⬇️
ubuntu2204-icpx 59.07% <ø> (ø)
ubuntu2404 76.05% <ø> (-0.02%) ⬇️
ubuntu2404-arm64 76.06% <ø> (+0.02%) ⬆️
unittest 83.81% <ø> (+<0.01%) ⬆️
windows-2022 85.62% <ø> (+0.12%) ⬆️
windows-2025 85.74% <ø> (+0.21%) ⬆️
winpcap 85.65% <ø> (-0.09%) ⬇️
xdp 51.94% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

X Tutup