https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43126

--- Comment #1 from Matt Blenkinsop <[email protected]> ---
Created attachment 204003
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=204003&action=edit
Bug 43126: Add a QueryCounter test utility

Adds t::lib::QueryCounter, which counts the SQL statements a block of code
issues and measures how long it takes. It swaps in a private DBIx::Class
statistics object rather than setting a filehandle on the shared one, and
restores the previous settings on the way out, including after an exception.

Two tests already inlined this pattern. Both now call the helper.

Assisted-by: Sonnet 5 (Anthropic)

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to