Skip to content

Unit test not observable network passed through no perturbation#1322

Open
Jerry-Jinfeng-Guo wants to merge 10 commits intomainfrom
feature/unit-test-not-observable-network-passed-through-no-perturbation
Open

Unit test not observable network passed through no perturbation#1322
Jerry-Jinfeng-Guo wants to merge 10 commits intomainfrom
feature/unit-test-not-observable-network-passed-through-no-perturbation

Conversation

@Jerry-Jinfeng-Guo
Copy link
Member

@Jerry-Jinfeng-Guo Jerry-Jinfeng-Guo commented Mar 6, 2026

Added unit tests for checking the possibility to use perturbation due to observability check render .is_observable state without exception thrown.

PR comes from #1317

Signed-off-by: Jerry Jinfeng Guo <jerry.jinfeng.guo@alliander.com>
Signed-off-by: Jerry Jinfeng Guo <jerry.jinfeng.guo@alliander.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds C++ unit tests around math_solver::observability::ObservabilityResult::use_perturbation() to ensure non-observable networks don’t trigger perturbation, and to exercise the use_perturbation boolean logic.

Changes:

  • Added a new TEST_CASE covering use_perturbation() for a non-observable meshed network with multiple voltage phasor sensors.
  • Added additional subcases attempting to cover an observable case and direct ObservabilityResult logic combinations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Jerry-Jinfeng-Guo and others added 5 commits March 6, 2026 20:15
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Jerry Guo <6221579+Jerry-Jinfeng-Guo@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Jerry Guo <6221579+Jerry-Jinfeng-Guo@users.noreply.github.com>
Signed-off-by: Jerry Jinfeng Guo <jerry.jinfeng.guo@alliander.com>
Signed-off-by: Jerry Jinfeng Guo <jerry.jinfeng.guo@alliander.com>
Signed-off-by: Jerry Jinfeng Guo <jerry.jinfeng.guo@alliander.com>
Jerry-Jinfeng-Guo and others added 3 commits March 18, 2026 11:43
…sed-through-no-perturbation

Signed-off-by: Jerry Guo <6221579+Jerry-Jinfeng-Guo@users.noreply.github.com>
Signed-off-by: Santiago Figueroa Manrique <figueroa1395@gmail.com>
@sonarqubecloud
Copy link

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

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants