diff options
| author | nicole mazzuca <mazzucan@outlook.com> | 2019-07-24 11:02:24 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-24 11:02:24 -0700 |
| commit | 36dea3d7a6aca229a5dde0903b9cede506d41b90 (patch) | |
| tree | a211bc6fd36e9f60d4e3383309a82f1ea7ce1baf /toolsrc/src/vcpkg-tests/util.cpp | |
| parent | 265921b4a307d71bfc408b8ab927501d79d77973 (diff) | |
| parent | 2c20a9d98186e029ff443932295d7cdcad96980e (diff) | |
| download | vcpkg-36dea3d7a6aca229a5dde0903b9cede506d41b90.tar.gz vcpkg-36dea3d7a6aca229a5dde0903b9cede506d41b90.zip | |
Merge pull request #7228 from ubsan/parallel-file-ops
Parallel file operations
Diffstat (limited to 'toolsrc/src/vcpkg-tests/util.cpp')
| -rw-r--r-- | toolsrc/src/vcpkg-tests/util.cpp | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/toolsrc/src/vcpkg-tests/util.cpp b/toolsrc/src/vcpkg-tests/util.cpp deleted file mode 100644 index 54102f1aa..000000000 --- a/toolsrc/src/vcpkg-tests/util.cpp +++ /dev/null @@ -1,47 +0,0 @@ -#include <vcpkg-tests/catch.h> -#include <vcpkg-tests/util.h> - -#include <vcpkg/statusparagraph.h> - -#include <memory> - -namespace vcpkg::Test -{ - std::unique_ptr<vcpkg::StatusParagraph> make_status_pgh(const char* name, - const char* depends, - const char* default_features, - const char* triplet) - { - using Pgh = std::unordered_map<std::string, std::string>; - return std::make_unique<StatusParagraph>(Pgh{{"Package", name}, - {"Version", "1"}, - {"Architecture", triplet}, - {"Multi-Arch", "same"}, - {"Depends", depends}, - {"Default-Features", default_features}, - {"Status", "install ok installed"}}); - } - - std::unique_ptr<StatusParagraph> make_status_feature_pgh(const char* name, - const char* feature, - const char* depends, - const char* triplet) - { - using Pgh = std::unordered_map<std::string, std::string>; - return std::make_unique<StatusParagraph>(Pgh{{"Package", name}, - {"Version", "1"}, - {"Feature", feature}, - {"Architecture", triplet}, - {"Multi-Arch", "same"}, - {"Depends", depends}, - {"Status", "install ok installed"}}); - } - - PackageSpec unsafe_pspec(std::string name, Triplet t) - { - auto m_ret = PackageSpec::from_name_and_triplet(name, t); - REQUIRE(m_ret.has_value()); - return m_ret.value_or_exit(VCPKG_LINE_INFO); - } - -} |
