aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/cran/cran_repository_TEST.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-02-27 22:08:29 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-02-28 15:31:18 +0000
commitbf9e33c1c76c2c2387ada7ae7294efa21a1c2f2f (patch)
treefe00ac0ca9434b268499b6380220140fc5e1a816 /paludis/repositories/cran/cran_repository_TEST.cc
parent761f72d25876dac3e239fad163123d35cacda4a0 (diff)
downloadpaludis-bf9e33c1c76c2c2387ada7ae7294efa21a1c2f2f.tar.gz
paludis-bf9e33c1c76c2c2387ada7ae7294efa21a1c2f2f.tar.xz
Allow repos to return partial results if faster
Diffstat (limited to 'paludis/repositories/cran/cran_repository_TEST.cc')
-rw-r--r--paludis/repositories/cran/cran_repository_TEST.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/paludis/repositories/cran/cran_repository_TEST.cc b/paludis/repositories/cran/cran_repository_TEST.cc
index 6f11f2cfb..144b9fba7 100644
--- a/paludis/repositories/cran/cran_repository_TEST.cc
+++ b/paludis/repositories/cran/cran_repository_TEST.cc
@@ -2,7 +2,7 @@
/*
* Copyright (c) 2006 Danny van Dyk
- * Copyright (c) 2007, 2008, 2010 Ciaran McCreesh
+ * Copyright (c) 2007, 2008, 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -62,9 +62,9 @@ namespace test_cases
keys->insert("builddir", "cran_repository_TEST_dir/tmp");
std::shared_ptr<Repository> repo(CRANRepository::repository_factory_create(&env,
std::bind(from_keys, keys, std::placeholders::_1)));
- TEST_CHECK(repo->has_category_named(CategoryNamePart("cran")));
- TEST_CHECK(repo->has_package_named(QualifiedPackageName("cran/testpackage1")));
- TEST_CHECK(repo->has_package_named(QualifiedPackageName("cran/testpackage2")));
+ TEST_CHECK(repo->has_category_named(CategoryNamePart("cran"), { }));
+ TEST_CHECK(repo->has_package_named(QualifiedPackageName("cran/testpackage1"), { }));
+ TEST_CHECK(repo->has_package_named(QualifiedPackageName("cran/testpackage2"), { }));
}
} test_cran_repository_packages;
@@ -82,9 +82,9 @@ namespace test_cases
keys->insert("builddir", "cran_repository_TEST_dir/tmp");
std::shared_ptr<Repository> repo(CRANRepository::repository_factory_create(&env,
std::bind(from_keys, keys, std::placeholders::_1)));
- TEST_CHECK(repo->has_package_named(QualifiedPackageName("cran/testbundle")));
- TEST_CHECK(repo->has_package_named(QualifiedPackageName("cran/bundlepkg1")));
- TEST_CHECK(repo->has_package_named(QualifiedPackageName("cran/bundlepkg2")));
+ TEST_CHECK(repo->has_package_named(QualifiedPackageName("cran/testbundle"), { }));
+ TEST_CHECK(repo->has_package_named(QualifiedPackageName("cran/bundlepkg1"), { }));
+ TEST_CHECK(repo->has_package_named(QualifiedPackageName("cran/bundlepkg2"), { }));
}
} test_cran_repository_bundle;
}