Skip to content

fix: trivial tests for more accurate coverage - #1213

Draft
SomePersonFromMars wants to merge 2 commits into
mainfrom
refactor/cpp-tests-improvement
Draft

fix: trivial tests for more accurate coverage#1213
SomePersonFromMars wants to merge 2 commits into
mainfrom
refactor/cpp-tests-improvement

Conversation

@SomePersonFromMars

@SomePersonFromMars SomePersonFromMars commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Closes #

⚠️ Breaking changes ⚠️

  • None

Introduced changes

  • Add trivial C++ gtests so previously unlinked modules appear in the llvm-cov report: AnalyserNode, RecorderAdapterNode, RotatingFileWriter, ParamControlQueue, HostNode, CircularOverflowableAudioArray, ThreadPool.
  • Only a few such coverage-visibility tests were added where feasible without JSI / HostObject dependencies (e.g. AudioEventHandlerRegistry, AudioRecorder, AudioFileWriter, AudioRecorderCallback, AudioFileProperties were left out).

Checklist

  • Linked relevant issue
  • Updated relevant documentation
  • Added/Conducted relevant tests
  • Performed self-review of the code
  • Updated Web Audio API coverage
  • Added support for web
  • Updated old arch android spec file

Stack created with GitHub Stacks CLIGive Feedback 💬

Base automatically changed from refactor/strip-audioeventhandlerregistry-dependency to main August 5, 2026 14:34
Some modules were unlinked in the tests, which made the tests coverage unrealistic
@closetcaiman
closetcaiman force-pushed the refactor/cpp-tests-improvement branch from 6f3e1a6 to 8032b7a Compare August 5, 2026 14:34
@SomePersonFromMars
SomePersonFromMars marked this pull request as ready for review August 6, 2026 17:23
@SomePersonFromMars
SomePersonFromMars removed the request for review from closetcaiman August 7, 2026 07:01
@SomePersonFromMars
SomePersonFromMars marked this pull request as draft August 7, 2026 08:36
#include <memory>

namespace audioapi::test {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd add here (and in other tests) some kind of codetag to signalise that this should/will be changed in the future. Like TODO/FIXME notation or equivalent.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants