8000 Added property checks for lollipop graph by Krishn1412 · Pull Request #1453 · Qiskit/rustworkx · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Added property checks for lollipop graph #1453

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 29, 2025

Conversation

Krishn1412
Copy link
Contributor

Added a test using QuickCheck to verify that the lollipop_graph generator produces graphs with the correct number of nodes and edges based on the input sizes of the mesh and path.

Updated the Cargo.toml to add dependecies and test target.

Added a test using QuickCheck to verify that the lollipop_graph generator produces graphs with the correct number of nodes and edges based on the input sizes of the mesh and path.

Updated the Cargo.toml to add dependecies and test target.
@Krishn1412
8000 Copy link
Contributor Author

Hey @IvanIsCoding, right now I have added quickcheck in the tests folder as it is similar to unit and integration tests with the same command. Should we keep it there or move it in a different folder like fuzzing?

@coveralls
Copy link
coveralls commented May 25, 2025

Pull Request Test Coverage Report for Build 15331993229

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 95.236%

Totals Coverage Status
Change from base Build 15322687036: 0.0%
Covered Lines: 18733
Relevant Lines: 19670

💛 - Coveralls

@IvanIsCoding
Copy link
Collaborator

Hey @IvanIsCoding, right now I have added quickcheck in the tests folder as it is similar to unit and integration tests with the same command. Should we keep it there or move it in a different folder like fuzzing?

I will take a look at this today or tomorrow. But for location, I think a quickcheck folder is fine.

@@ -25,3 +25,9 @@ rand_distr.workspace = true
rand_pcg.workspace = true
rayon.workspace = true
rayon-cond = "0.4"
quickcheck = "1.0"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please list it as a development dependency: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#development-dependencies.

This will prevent end-users from importing a test library.

quickcheck = "1.0"
quickcheck_macros = "1.0"

[[test]]
Copy link
Collaborator

Choose a reason for hiding this comment

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

I am now sure how necessary this is? https://doc.rust-lang.org/rust-by-example/testing/integration_testing.html#integration-testing

I hope cargo test just automatically finds this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Its not picking it up if I create the file inside the quickcheck folder.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@IvanIsCoding IvanIsCoding enabled auto-merge May 29, 2025 19:35
@IvanIsCoding IvanIsCoding added this pull request to the merge queue May 29, 2025
Merged via the queue into Qiskit:main with commit 7840a2c May 29, 2025
31 checks passed
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.

3 participants
0