-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Activate Tests for the Datastructure PowerGrid #53
Merged
franziska-wegner
merged 68 commits into
main
from
franziska-wegner/2023/december/tests/datastructures/PowerGrid-activate
Jan 2, 2024
Merged
Activate Tests for the Datastructure PowerGrid #53
franziska-wegner
merged 68 commits into
main
from
franziska-wegner/2023/december/tests/datastructures/PowerGrid-activate
Jan 2, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…uctures/PowerGrid-activate
…uctures/PowerGrid-activate
…uctures/PowerGrid-activate
Changes to be committed: modified: tests/DataStructures/Graphs/TestPowerGrid.cpp
Changes to be committed: modified: tests/DataStructures/Graphs/TestPowerGrid.cpp
Changes to be committed: modified: tests/DataStructures/Graphs/TestPowerGrid.cpp
…isting VertexId with Exception Changes to be committed: modified: tests/DataStructures/Graphs/TestPowerGrid.cpp
…d with Exception Changes to be committed: modified: tests/DataStructures/Graphs/TestPowerGrid.cpp
…with Exception Changes to be committed: modified: tests/DataStructures/Graphs/TestPowerGrid.cpp
…with Exception Changes to be committed: modified: tests/DataStructures/Graphs/TestPowerGrid.cpp
…ing `VertexId` with exception Changes to be committed: modified: tests/DataStructures/Graphs/TestPowerGrid.cpp
…ator` with exception Changes to be committed: modified: tests/DataStructures/Graphs/TestPowerGrid.cpp
Changes to be committed: modified: tests/DataStructures/Graphs/TestPowerGrid.cpp
Changes to be committed: modified: tests/DataStructures/Graphs/TestPowerGrid.cpp
…xception Changes to be committed: modified: tests/DataStructures/Graphs/TestPowerGrid.cpp
Changes to be committed: modified: tests/DataStructures/Graphs/TestPowerGrid.cpp
Changes to be committed: modified: tests/DataStructures/Graphs/TestPowerGrid.cpp
Changes to be committed: modified: tests/DataStructures/Graphs/TestPowerGrid.cpp
…eption Changes to be committed: modified: tests/DataStructures/Graphs/TestPowerGrid.cpp
Changes to be committed: modified: tests/DataStructures/Graphs/TestPowerGrid.cpp
Changes to be committed: modified: tests/DataStructures/Graphs/TestPowerGrid.cpp
…rtex` with exception Changes to be committed: modified: tests/DataStructures/Graphs/TestPowerGrid.cpp
for more information, see https://pre-commit.ci
…rtex` with exception Changes to be committed: modified: tests/DataStructures/Graphs/TestPowerGrid.cpp
…ception Changes to be committed: modified: tests/DataStructures/Graphs/TestPowerGrid.cpp
Changes to be committed: modified: tests/DataStructures/Graphs/TestPowerGrid.cpp
f46f46a
to
3f04229
Compare
Changes to be committed: modified: tests/DataStructures/Graphs/TestPowerGrid.cpp
…orId` & `Timestamp` with exception Changes to be committed: modified: tests/DataStructures/Graphs/TestPowerGrid.cpp
Changes to be committed: modified: tests/DataStructures/Graphs/TestPowerGrid.cpp
…uctures/PowerGrid-activate
What? * warning: escaped string literal can be written as a raw string literal [modernize-raw-string-literal]
ea7def8
to
a425337
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #53 +/- ##
==========================================
+ Coverage 93.26% 94.53% +1.26%
==========================================
Files 29 42 +13
Lines 2823 4556 +1733
==========================================
+ Hits 2633 4307 +1674
- Misses 190 249 +59 ☔ View full report in Codecov by Sentry. |
Why? * Cause coverage process to fail due to unknown problem
d4573dc
to
346a27a
Compare
github-actions bot
added a commit
that referenced
this pull request
Jan 2, 2024
* Activate Test for the Datastructure PowerGrid * DeathTest Condition for AddGeneratorAt with Exception * DeathTest Condition for RemoveGeneratorAt with Exception * DeathTest Condition for HasGeneratorAt with Exception * DeathTest Condition for RemoveGeneratorAt using generator Id & non-existing VertexId with Exception * DeathTest Condition for RemoveGeneratorAt using VertexId & GeneratorId with Exception * DeathTest Condition for RemoveGeneratorAt using VertexId & Generator with Exception * DeathTest Condition for RemoveGeneratorAt using VertexId & Generator with Exception * DeathTest condition for `RemoveGeneratorAt` using generator non-existing `VertexId` with exception * DeathTest condition for `RemoveGeneratorAt` using `VertexId` & `Generator` with exception * DeathTest condition for `HasGeneratorAt` using `VertexId` with exception * DeathTest condition for `HasGeneratorAt` using `VertexId` with exception * DeathTest condition for `HasGeneratorAt` using `Vertex` object with exception * DeathTest condition for `GeneratorId`s with exception * DeathTest condition for `GeneratorAt` with exception * DeathTest condition for `GeneratorsAt` using `VertexId` with exception * DeathTest condition for `GeneratorsAt` using `Vertex` object with exception * DeathTest condition for `TotalRealPowerGenerationBoundAt` with exception * DeathTest condition for `TotalRealPowerGenerationAt` with exception * DeathTest condition for `TotalRealPowerGenerationAt` non-existing `Vertex` with exception * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * DeathTest condition for `TotalRealPowerGenerationAt` non-existing `Vertex` with exception * DeathTest condition for `TotalReactivePowerGenerationBoundAt` with exception * DeathTest condition for `TotalReactivePowerGenerationAt` with exception * DeathTest condition for `TotalReactivePowerGenerationAt` non-existing `Vertex` with exception * DeathTest condition for `TotalReactivePowerGenerationAt` non-existing `Vertex` with exception * DeathTest condition for `AddLoadAt` using `VertexId` with exception * DeathTest condition for `AddLoadAt` using `VertexId` with exception * DeathTest condition for `AddLoadAt` using `Vertex` object with exception * DeathTest condition for `RemoveLoadAt` using `VertexId` & `LoadId` with exception * DeathTest condition for `RemoveLoadAt` using `VertexId` where `LoadId` does not exists with exception * DeathTest condition for `HasLoadAt` with exception * DeathTest condition for `LoadIds` with exception * DeathTest condition for `LoadAt` with exception * DeathTest condition for `LoadAt` with exception * DeathTest condition for `LoadAt` with exception * DeathTest condition for `LoadAt` using `VertexId` with exception * DeathTest condition for `LoadAt` using `Vertex` with exception * DeathTest condition for `RealPowerLoadAt` with exception * DeathTest condition for `RealPowerLoadAt` using `Vertex` with exception * DeathTest condition for `TotalRealPowerLoadBoundAt` with exception * DeathTest condition for `AddGeneratorRealPowerSnapshotAt` with exception * DeathTest condition for `AddLoadSnapshotAt` with exception * DeathTest condition for `AddSnapshotTimestamp` with exception * DeathTest condition for `GeneratorRealPowerSnapshotsAt` with exception * DeathTest condition for `GeneratorRealPowerSnapshotsAt` with exception * DeathTest condition for `LoadSnapshotOfLoadsSize` with exception * DeathTest condition for `LoadSnapshotOfConstNoneDeath` with exception * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add missing namespace * Repair path to test cases * Update to Psa to PSA * DeathTest condition for `AddSnapshotWeighting` with exception * DeathTest condition for `GeneratorRealPowerSnapshotAt` using `GeneratorId` & `Timestamp` with exception * Remove assertion from exception handling part/release mode path * Comment out some tests that need further investigation * DeathTest condition for `TimestampAt` with exception * Comment out some tests that need further investigation * Add missing header for "Helper/TestHelper.hpp" * Remove clang linter warning What? * warning: escaped string literal can be written as a raw string literal [modernize-raw-string-literal] * Comment out TestPowerGridPyPsaExample test Why? * Cause coverage process to fail due to unknown problem * Remove and add some `ctest` flags 8d8b6c9
github-actions bot
added a commit
that referenced
this pull request
Jan 2, 2024
* Activate Test for the Datastructure PowerGrid * DeathTest Condition for AddGeneratorAt with Exception * DeathTest Condition for RemoveGeneratorAt with Exception * DeathTest Condition for HasGeneratorAt with Exception * DeathTest Condition for RemoveGeneratorAt using generator Id & non-existing VertexId with Exception * DeathTest Condition for RemoveGeneratorAt using VertexId & GeneratorId with Exception * DeathTest Condition for RemoveGeneratorAt using VertexId & Generator with Exception * DeathTest Condition for RemoveGeneratorAt using VertexId & Generator with Exception * DeathTest condition for `RemoveGeneratorAt` using generator non-existing `VertexId` with exception * DeathTest condition for `RemoveGeneratorAt` using `VertexId` & `Generator` with exception * DeathTest condition for `HasGeneratorAt` using `VertexId` with exception * DeathTest condition for `HasGeneratorAt` using `VertexId` with exception * DeathTest condition for `HasGeneratorAt` using `Vertex` object with exception * DeathTest condition for `GeneratorId`s with exception * DeathTest condition for `GeneratorAt` with exception * DeathTest condition for `GeneratorsAt` using `VertexId` with exception * DeathTest condition for `GeneratorsAt` using `Vertex` object with exception * DeathTest condition for `TotalRealPowerGenerationBoundAt` with exception * DeathTest condition for `TotalRealPowerGenerationAt` with exception * DeathTest condition for `TotalRealPowerGenerationAt` non-existing `Vertex` with exception * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * DeathTest condition for `TotalRealPowerGenerationAt` non-existing `Vertex` with exception * DeathTest condition for `TotalReactivePowerGenerationBoundAt` with exception * DeathTest condition for `TotalReactivePowerGenerationAt` with exception * DeathTest condition for `TotalReactivePowerGenerationAt` non-existing `Vertex` with exception * DeathTest condition for `TotalReactivePowerGenerationAt` non-existing `Vertex` with exception * DeathTest condition for `AddLoadAt` using `VertexId` with exception * DeathTest condition for `AddLoadAt` using `VertexId` with exception * DeathTest condition for `AddLoadAt` using `Vertex` object with exception * DeathTest condition for `RemoveLoadAt` using `VertexId` & `LoadId` with exception * DeathTest condition for `RemoveLoadAt` using `VertexId` where `LoadId` does not exists with exception * DeathTest condition for `HasLoadAt` with exception * DeathTest condition for `LoadIds` with exception * DeathTest condition for `LoadAt` with exception * DeathTest condition for `LoadAt` with exception * DeathTest condition for `LoadAt` with exception * DeathTest condition for `LoadAt` using `VertexId` with exception * DeathTest condition for `LoadAt` using `Vertex` with exception * DeathTest condition for `RealPowerLoadAt` with exception * DeathTest condition for `RealPowerLoadAt` using `Vertex` with exception * DeathTest condition for `TotalRealPowerLoadBoundAt` with exception * DeathTest condition for `AddGeneratorRealPowerSnapshotAt` with exception * DeathTest condition for `AddLoadSnapshotAt` with exception * DeathTest condition for `AddSnapshotTimestamp` with exception * DeathTest condition for `GeneratorRealPowerSnapshotsAt` with exception * DeathTest condition for `GeneratorRealPowerSnapshotsAt` with exception * DeathTest condition for `LoadSnapshotOfLoadsSize` with exception * DeathTest condition for `LoadSnapshotOfConstNoneDeath` with exception * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add missing namespace * Repair path to test cases * Update to Psa to PSA * DeathTest condition for `AddSnapshotWeighting` with exception * DeathTest condition for `GeneratorRealPowerSnapshotAt` using `GeneratorId` & `Timestamp` with exception * Remove assertion from exception handling part/release mode path * Comment out some tests that need further investigation * DeathTest condition for `TimestampAt` with exception * Comment out some tests that need further investigation * Add missing header for "Helper/TestHelper.hpp" * Remove clang linter warning What? * warning: escaped string literal can be written as a raw string literal [modernize-raw-string-literal] * Comment out TestPowerGridPyPsaExample test Why? * Cause coverage process to fail due to unknown problem * Remove and add some `ctest` flags 8d8b6c9
github-actions bot
added a commit
that referenced
this pull request
Jan 2, 2024
* Activate Test for the Datastructure PowerGrid * DeathTest Condition for AddGeneratorAt with Exception * DeathTest Condition for RemoveGeneratorAt with Exception * DeathTest Condition for HasGeneratorAt with Exception * DeathTest Condition for RemoveGeneratorAt using generator Id & non-existing VertexId with Exception * DeathTest Condition for RemoveGeneratorAt using VertexId & GeneratorId with Exception * DeathTest Condition for RemoveGeneratorAt using VertexId & Generator with Exception * DeathTest Condition for RemoveGeneratorAt using VertexId & Generator with Exception * DeathTest condition for `RemoveGeneratorAt` using generator non-existing `VertexId` with exception * DeathTest condition for `RemoveGeneratorAt` using `VertexId` & `Generator` with exception * DeathTest condition for `HasGeneratorAt` using `VertexId` with exception * DeathTest condition for `HasGeneratorAt` using `VertexId` with exception * DeathTest condition for `HasGeneratorAt` using `Vertex` object with exception * DeathTest condition for `GeneratorId`s with exception * DeathTest condition for `GeneratorAt` with exception * DeathTest condition for `GeneratorsAt` using `VertexId` with exception * DeathTest condition for `GeneratorsAt` using `Vertex` object with exception * DeathTest condition for `TotalRealPowerGenerationBoundAt` with exception * DeathTest condition for `TotalRealPowerGenerationAt` with exception * DeathTest condition for `TotalRealPowerGenerationAt` non-existing `Vertex` with exception * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * DeathTest condition for `TotalRealPowerGenerationAt` non-existing `Vertex` with exception * DeathTest condition for `TotalReactivePowerGenerationBoundAt` with exception * DeathTest condition for `TotalReactivePowerGenerationAt` with exception * DeathTest condition for `TotalReactivePowerGenerationAt` non-existing `Vertex` with exception * DeathTest condition for `TotalReactivePowerGenerationAt` non-existing `Vertex` with exception * DeathTest condition for `AddLoadAt` using `VertexId` with exception * DeathTest condition for `AddLoadAt` using `VertexId` with exception * DeathTest condition for `AddLoadAt` using `Vertex` object with exception * DeathTest condition for `RemoveLoadAt` using `VertexId` & `LoadId` with exception * DeathTest condition for `RemoveLoadAt` using `VertexId` where `LoadId` does not exists with exception * DeathTest condition for `HasLoadAt` with exception * DeathTest condition for `LoadIds` with exception * DeathTest condition for `LoadAt` with exception * DeathTest condition for `LoadAt` with exception * DeathTest condition for `LoadAt` with exception * DeathTest condition for `LoadAt` using `VertexId` with exception * DeathTest condition for `LoadAt` using `Vertex` with exception * DeathTest condition for `RealPowerLoadAt` with exception * DeathTest condition for `RealPowerLoadAt` using `Vertex` with exception * DeathTest condition for `TotalRealPowerLoadBoundAt` with exception * DeathTest condition for `AddGeneratorRealPowerSnapshotAt` with exception * DeathTest condition for `AddLoadSnapshotAt` with exception * DeathTest condition for `AddSnapshotTimestamp` with exception * DeathTest condition for `GeneratorRealPowerSnapshotsAt` with exception * DeathTest condition for `GeneratorRealPowerSnapshotsAt` with exception * DeathTest condition for `LoadSnapshotOfLoadsSize` with exception * DeathTest condition for `LoadSnapshotOfConstNoneDeath` with exception * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add missing namespace * Repair path to test cases * Update to Psa to PSA * DeathTest condition for `AddSnapshotWeighting` with exception * DeathTest condition for `GeneratorRealPowerSnapshotAt` using `GeneratorId` & `Timestamp` with exception * Remove assertion from exception handling part/release mode path * Comment out some tests that need further investigation * DeathTest condition for `TimestampAt` with exception * Comment out some tests that need further investigation * Add missing header for "Helper/TestHelper.hpp" * Remove clang linter warning What? * warning: escaped string literal can be written as a raw string literal [modernize-raw-string-literal] * Comment out TestPowerGridPyPsaExample test Why? * Cause coverage process to fail due to unknown problem * Remove and add some `ctest` flags 8d8b6c9
github-actions bot
added a commit
that referenced
this pull request
Jan 2, 2024
* Activate Test for the Datastructure PowerGrid * DeathTest Condition for AddGeneratorAt with Exception * DeathTest Condition for RemoveGeneratorAt with Exception * DeathTest Condition for HasGeneratorAt with Exception * DeathTest Condition for RemoveGeneratorAt using generator Id & non-existing VertexId with Exception * DeathTest Condition for RemoveGeneratorAt using VertexId & GeneratorId with Exception * DeathTest Condition for RemoveGeneratorAt using VertexId & Generator with Exception * DeathTest Condition for RemoveGeneratorAt using VertexId & Generator with Exception * DeathTest condition for `RemoveGeneratorAt` using generator non-existing `VertexId` with exception * DeathTest condition for `RemoveGeneratorAt` using `VertexId` & `Generator` with exception * DeathTest condition for `HasGeneratorAt` using `VertexId` with exception * DeathTest condition for `HasGeneratorAt` using `VertexId` with exception * DeathTest condition for `HasGeneratorAt` using `Vertex` object with exception * DeathTest condition for `GeneratorId`s with exception * DeathTest condition for `GeneratorAt` with exception * DeathTest condition for `GeneratorsAt` using `VertexId` with exception * DeathTest condition for `GeneratorsAt` using `Vertex` object with exception * DeathTest condition for `TotalRealPowerGenerationBoundAt` with exception * DeathTest condition for `TotalRealPowerGenerationAt` with exception * DeathTest condition for `TotalRealPowerGenerationAt` non-existing `Vertex` with exception * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * DeathTest condition for `TotalRealPowerGenerationAt` non-existing `Vertex` with exception * DeathTest condition for `TotalReactivePowerGenerationBoundAt` with exception * DeathTest condition for `TotalReactivePowerGenerationAt` with exception * DeathTest condition for `TotalReactivePowerGenerationAt` non-existing `Vertex` with exception * DeathTest condition for `TotalReactivePowerGenerationAt` non-existing `Vertex` with exception * DeathTest condition for `AddLoadAt` using `VertexId` with exception * DeathTest condition for `AddLoadAt` using `VertexId` with exception * DeathTest condition for `AddLoadAt` using `Vertex` object with exception * DeathTest condition for `RemoveLoadAt` using `VertexId` & `LoadId` with exception * DeathTest condition for `RemoveLoadAt` using `VertexId` where `LoadId` does not exists with exception * DeathTest condition for `HasLoadAt` with exception * DeathTest condition for `LoadIds` with exception * DeathTest condition for `LoadAt` with exception * DeathTest condition for `LoadAt` with exception * DeathTest condition for `LoadAt` with exception * DeathTest condition for `LoadAt` using `VertexId` with exception * DeathTest condition for `LoadAt` using `Vertex` with exception * DeathTest condition for `RealPowerLoadAt` with exception * DeathTest condition for `RealPowerLoadAt` using `Vertex` with exception * DeathTest condition for `TotalRealPowerLoadBoundAt` with exception * DeathTest condition for `AddGeneratorRealPowerSnapshotAt` with exception * DeathTest condition for `AddLoadSnapshotAt` with exception * DeathTest condition for `AddSnapshotTimestamp` with exception * DeathTest condition for `GeneratorRealPowerSnapshotsAt` with exception * DeathTest condition for `GeneratorRealPowerSnapshotsAt` with exception * DeathTest condition for `LoadSnapshotOfLoadsSize` with exception * DeathTest condition for `LoadSnapshotOfConstNoneDeath` with exception * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add missing namespace * Repair path to test cases * Update to Psa to PSA * DeathTest condition for `AddSnapshotWeighting` with exception * DeathTest condition for `GeneratorRealPowerSnapshotAt` using `GeneratorId` & `Timestamp` with exception * Remove assertion from exception handling part/release mode path * Comment out some tests that need further investigation * DeathTest condition for `TimestampAt` with exception * Comment out some tests that need further investigation * Add missing header for "Helper/TestHelper.hpp" * Remove clang linter warning What? * warning: escaped string literal can be written as a raw string literal [modernize-raw-string-literal] * Comment out TestPowerGridPyPsaExample test Why? * Cause coverage process to fail due to unknown problem * Remove and add some `ctest` flags 8d8b6c9
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR enables the tests for the power grid data structure. Due to the fact that the coverage tests fail with
PyPSAExample
, we excluded these tests for now. Note that the tests itself do not fail, only the accumulation process of thegcov
execution. Further investigation is required and we merge the working tests in for now to have a solid base as the error is not obvious to the author at the moment. It might be due to the file destination that differs from theMatlab
examples.