Skip to content

Fix #273: add tests for Apply* methods in gate_appl.h - #1110

Open
mhucka wants to merge 2 commits into
quantumlib:mainfrom
mhucka:add-apply-method-coverage-tests
Open

Fix #273: add tests for Apply* methods in gate_appl.h#1110
mhucka wants to merge 2 commits into
quantumlib:mainfrom
mhucka:add-apply-method-coverage-tests

Conversation

@mhucka

@mhucka mhucka commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

This adds a new test file, gate_appl_test.cc, to increase the test coverage on Apply* methods in gate_appl.h.

This increases the test coverage on Apply* methods in `gate_appl.h`.
In Makefile:65, TESTFLAGS links -lgtest instead of -lgtest_main, which
means all test binaries built by tests/Makefile expect a main()
entrypoint.
@github-actions github-actions Bot added the size: L 250< lines changed <1000 label Sep 3, 2026
@mhucka mhucka added a: c++ Involves the C++ code portions of qsim a: tests Involves test cases, test frameworks, and similar and removed size: L 250< lines changed <1000 labels Sep 3, 2026
@mhucka
mhucka marked this pull request as ready for review September 3, 2026 05:22

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new test suite, 'gate_appl_test.cc', along with its corresponding Bazel build target in 'tests/BUILD'. The test suite thoroughly verifies the gate application functionality defined in 'gate_appl.h', covering direct gate applications, controlled gates, fused gates, dagger operations, and measurements. There are no review comments to address, so no additional feedback is provided.

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

Labels

a: c++ Involves the C++ code portions of qsim a: tests Involves test cases, test frameworks, and similar

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant