-
Notifications
You must be signed in to change notification settings - Fork 39
Keep only important integration tests: deserialized api tests #855
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
Changes from 14 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
07b0cf1
migrate owning dataset to C++ wrapper
mgovers ae78da5
reduce complexity
mgovers 7cb2e5d
Merge branch 'feature/resolve-sonar-cloud-issues' into feature/deseri…
mgovers 635e926
migrate API model - all updates test to JSON input
mgovers df9878c
migrate update of update with alternating compute mode
mgovers c585b25
migrate incomplete update tests to JSON input
mgovers e15d5fd
migrate incomplete followed by complete update tests to JSON input
mgovers 4ad1c3f
more migrations
mgovers 0ccb71f
cleanup
mgovers 9d53b55
migrate input + update data of test API model
mgovers 5ab2320
migrate some more test api model functions
mgovers 35eff17
remove unused code
mgovers 0c47772
reorder
mgovers c75a715
Merge remote-tracking branch 'origin/main' into feature/deserialized-…
mgovers 3190f3e
fix linux build
mgovers f210727
clang-tidy
mgovers df49310
only mutable owning dataset
mgovers a960b1b
use explicit constructor
mgovers 0b7466a
Merge remote-tracking branch 'origin/main' into feature/deserialized-…
mgovers 981d866
resolve comment
mgovers 55b779c
fix sonar cloud
mgovers b918f38
more sonar cloud
mgovers 16ea1e3
minor
mgovers 1d6d133
throw when component type not found in dataset
mgovers 336e1af
remove unnecessary header guards protected by pragma once
mgovers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// SPDX-FileCopyrightText: Contributors to the Power Grid Model project <powergridmodel@lfenergy.org> | ||
// | ||
// SPDX-License-Identifier: MPL-2.0 | ||
|
||
#pragma once | ||
#ifndef POWER_GRID_MODEL_TESTS_NATIVE_API_TESTS_LOAD_DATASET_HPP | ||
#define POWER_GRID_MODEL_TESTS_NATIVE_API_TESTS_LOAD_DATASET_HPP | ||
|
||
#include <power_grid_model_cpp/serialization.hpp> | ||
|
||
namespace power_grid_model_cpp_test { | ||
figueroa1395 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
inline power_grid_model_cpp::OwningDatasetConst load_dataset(std::string const& json_string) { | ||
power_grid_model_cpp::Deserializer deserializer{json_string, PGM_json}; | ||
auto& writable_dataset = deserializer.get_dataset(); | ||
auto owning_dataset = power_grid_model_cpp::create_owning_dataset(writable_dataset); | ||
deserializer.parse_to_buffer(); | ||
return owning_dataset; | ||
} | ||
} // namespace power_grid_model_cpp_test | ||
|
||
#endif // POWER_GRID_MODEL_TESTS_NATIVE_API_TESTS_LOAD_DATASET_HPP |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.