Skip to content

Commit

Permalink
Add catch-printer/conda_url.hpp back
Browse files Browse the repository at this point in the history
  • Loading branch information
mathbunnyru committed Nov 21, 2024
1 parent 1bf9ce0 commit f392b7a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
23 changes: 23 additions & 0 deletions libmamba/tests/src/catch-printer/conda_url.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Copyright (c) 2023, QuantStack and Mamba Contributors
//
// Distributed under the terms of the BSD 3-Clause License.
//
// The full license is in the file LICENSE, distributed with this software.

#include <string>

#include <catch2/catch_tostring.hpp>

#include "mamba/specs/conda_url.hpp"

namespace Catch
{
template <>
struct StringMaker<mamba::specs::CondaURL>
{
static std::string convert(const mamba::specs::CondaURL& value)
{
return value.str();
}
};
}
2 changes: 2 additions & 0 deletions libmamba/tests/src/core/test_channel_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#include "mamba/util/flat_set.hpp"
#include "mamba/util/url_manip.hpp"

#include "catch-printer/conda_url.hpp"

#include "mambatests.hpp"

namespace
Expand Down
2 changes: 2 additions & 0 deletions libmamba/tests/src/specs/test_channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
#include "mamba/util/path_manip.hpp"
#include "mamba/util/string.hpp"

#include "catch-printer/conda_url.hpp"

namespace
{
using namespace mamba;
Expand Down

0 comments on commit f392b7a

Please sign in to comment.