Skip to content

feat: bindings standardization#78

Merged
raphasampaio merged 20 commits intomasterfrom
rs/phase6
Feb 10, 2026
Merged

feat: bindings standardization#78
raphasampaio merged 20 commits intomasterfrom
rs/phase6

Conversation

@raphasampaio
Copy link
Member

No description provided.

raphasampaio and others added 2 commits February 10, 2026 15:05
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Feb 10, 2026

Codecov Report

❌ Patch coverage is 62.85714% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.13%. Comparing base (589945b) to head (37b01e7).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
bindings/julia/src/database_read.jl 28.57% 5 Missing ⚠️
bindings/dart/lib/src/database_read.dart 0.00% 2 Missing ⚠️
bindings/dart/lib/src/element.dart 50.00% 2 Missing ⚠️
bindings/dart/lib/src/lua_runner.dart 60.00% 2 Missing ⚠️
bindings/julia/src/element.jl 50.00% 1 Missing ⚠️
bindings/julia/src/lua_runner.jl 75.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #78      +/-   ##
==========================================
+ Coverage   86.02%   86.13%   +0.10%     
==========================================
  Files          92       92              
  Lines       10291    10264      -27     
  Branches      537      537              
==========================================
- Hits         8853     8841      -12     
+ Misses       1413     1398      -15     
  Partials       25       25              
Flag Coverage Δ
cpp 89.12% <ø> (ø)
dart 77.00% <71.42%> (+0.01%) ⬆️
julia 71.39% <50.00%> (+0.76%) ⬆️

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

Files with missing lines Coverage Δ
bindings/dart/lib/src/database.dart 84.84% <100.00%> (-1.46%) ⬇️
bindings/dart/lib/src/database_delete.dart 100.00% <100.00%> (ø)
bindings/julia/src/database_delete.jl 100.00% <100.00%> (ø)
src/lua_runner.cpp 53.83% <ø> (ø)
tests/test_c_api_lua_runner.cpp 100.00% <ø> (ø)
tests/test_lua_runner.cpp 100.00% <ø> (ø)
bindings/julia/src/element.jl 78.87% <50.00%> (ø)
bindings/julia/src/lua_runner.jl 95.65% <75.00%> (+11.03%) ⬆️
bindings/dart/lib/src/database_read.dart 60.75% <0.00%> (ø)
bindings/dart/lib/src/element.dart 89.14% <50.00%> (+0.08%) ⬆️
... and 2 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

raphasampaio and others added 6 commits February 10, 2026 15:41
- Rename delete_element_by_id! to delete_element! (NAME-03)
- Replace DatabaseException with ArgumentError for type dispatch errors in element.jl
- Standardize LuaRunner constructor to use check() pattern
- Remove "Lua error:" prefix from run! error messages (ERRH-03)
- Update 5 test call sites and 1 test assertion

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ndling

- Replace 5 DatabaseException with ArgumentError for defensive type branches
- Replace manual vector group lookup with get_vector_metadata call
- Replace manual set group lookup with get_set_metadata call
- Eliminates 7 custom error sites from database_read.jl (ERRH-03)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@raphasampaio raphasampaio changed the title feat: julia bindings standardization feat: bindings standardization Feb 10, 2026
raphasampaio and others added 12 commits February 10, 2026 16:02
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Align Lua binding string with C++ method name (NAME-05)
- Update 5 references in test_lua_runner.cpp
- Update 1 reference in test_c_api_lua_runner.cpp
- Verified ERRH-05: sol2 safe_script preserves C++ exception messages

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Rename deleteElementById to deleteElement (NAME-04)
- Factory constructors use check() instead of manual error handling
- State guards (_ensureNotClosed, _ensureNotDisposed) throw StateError
- Type dispatch errors throw ArgumentError instead of DatabaseException
- LuaRunner constructor uses check(), run() removes 'Lua error: ' prefix
- Update test assertions to match new exception types

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…d.dart

- readVectorGroupById defensive branch uses ArgumentError
- readSetGroupById defensive branch uses ArgumentError
- Consistent with codebase type dispatch convention

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…tion

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@raphasampaio raphasampaio merged commit 3887f78 into master Feb 10, 2026
11 of 12 checks passed
@raphasampaio raphasampaio deleted the rs/phase6 branch February 10, 2026 19:55
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