• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarantool / tarantool / 8434483029
88%

Build:
DEFAULT BRANCH: master
Ran 26 Mar 2024 10:45AM UTC
Jobs 1
Files 513
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Mar 2024 10:30AM UTC coverage: 87.014% (+0.03%) from 86.987%
8434483029

push

github

locker
func_adapter: use ports for arguments and return values

Current func_adapter implementation has several drawbacks. Firstly, the
interface has 21 virtual method (except for virtual destructor) which
means you need to implement all these methods if you need a new
func_adapter. Secondly, if you need to pass arguments from Lua to
func_adapter, you need to iterate over Lua stack and push the value to
func_adapter with appropriate type.

We have internal interface for calling persistent functions - port.
Let's use it for triggers too. It will allow to easily implement new
func_adapter since it will have only call method and virtual destructor.
Also, it will allow to easily call any func_adapter from Lua using
port_lua - now module trigger relies on the fact that there are only Lua
triggers. This change reduces code complexity as well - since we are
using port_c for triggers, that allows to be dumped several times, we
can create helper `event_run_triggers` which incapsulates work with
`event_trigger_iterator` and simply calls all the triggers from the
event passing the same port with arguments.

Since func_adapter is used mostly for triggers, let's make both ports
arguments optional - many triggers have no arguments and almost all
triggers ignore returned values.

Along the way, fix a possible crash when iterator passed to
transactional trigger is saved and used after the trigger is over.

NO_CHANGELOG=internal
NO_DOC=internal

67055 of 119441 branches covered (56.14%)

155 of 156 new or added lines in 11 files covered. (99.36%)

411 existing lines in 30 files now uncovered.

99725 of 114608 relevant lines covered (87.01%)

2434061.09 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8434483029.1 26 Mar 2024 10:45AM UTC 0
87.01
GitHub Action Run
Source Files on build 8434483029
Detailed source file information is not available for this build.
  • Back to Repo
  • 69800071 on github
  • Prev Build on master (#8434029548)
  • Next Build on master (#8437432454)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc