Skip to content

Commit 6ae8ff0

Browse files
jjerphanHind-M
andcommitted
Address review comments
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz> Co-authored-by: Hind Montassif <hind.montassif@gmail.com>
1 parent 7b7a61d commit 6ae8ff0

1 file changed

Lines changed: 1 addition & 15 deletions

File tree

libmamba/tests/src/core/test_sharded_repodata_integration.cpp

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
namespace mamba
4545
{
4646
std::vector<std::string> extract_package_names_from_specs(const std::vector<std::string>& specs);
47-
std::vector<std::string> read_explicit_urls(const fs::u8path& path);
4847
void add_python_related_roots_if_python_requested(std::vector<std::string>& root_packages);
4948
std::pair<solver::libsolv::Database, MultiPackageCache> prepare_solver_context(
5049
Context& ctx,
@@ -449,19 +448,6 @@ namespace
449448
}
450449
}
451450

452-
auto read_explicit_urls(const fs::u8path& path) -> std::vector<std::string>
453-
{
454-
std::vector<std::string> urls;
455-
for (const auto& line : read_lines(path))
456-
{
457-
if (line.starts_with("http://") || line.starts_with("https://"))
458-
{
459-
urls.push_back(line);
460-
}
461-
}
462-
return urls;
463-
}
464-
465451
}
466452

467453
TEST_CASE("Sharded repodata - load_channels accepts root_packages", "[mamba::core][sharded][.integration]")
@@ -1002,7 +988,7 @@ TEST_CASE("Sharded repodata - minrk gist downgrade non-regression", "[mamba::cor
1002988
auto channel_context = ChannelContext::make_conda_compatible(ctx);
1003989
init_channels(ctx, channel_context);
1004990

1005-
const auto explicit_urls = read_explicit_urls(
991+
const auto explicit_urls = mambatests::read_explicit_urls(
1006992
mambatests::test_data_dir / "env_file/minrk_environment.py-3.9-linux-64.lock"
1007993
);
1008994
REQUIRE(explicit_urls.size() >= 150);

0 commit comments

Comments
 (0)