diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-05-17 19:43:56 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-05-17 19:43:56 +0100 |
commit | 2c78d5fc42192ade26900bbf96de9b428511eac6 (patch) | |
tree | a9fd37b1d163d86a70a5845df94690919acfb7a3 | |
parent | Tidy some of the low level repo/sql bits (diff) | |
download | gentoobrowse-api-2c78d5fc42192ade26900bbf96de9b428511eac6.tar.bz2 gentoobrowse-api-2c78d5fc42192ade26900bbf96de9b428511eac6.tar.xz gentoobrowse-api-2c78d5fc42192ade26900bbf96de9b428511eac6.zip |
Assert the record count of ebuild_masks
-rw-r--r-- | gentoobrowse-api/unittests/testMaintenance.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gentoobrowse-api/unittests/testMaintenance.cpp b/gentoobrowse-api/unittests/testMaintenance.cpp index d36c643..34edb45 100644 --- a/gentoobrowse-api/unittests/testMaintenance.cpp +++ b/gentoobrowse-api/unittests/testMaintenance.cpp @@ -21,7 +21,7 @@ void dumpDb(DB::ConnectionPtr db); void doRefreshPackageTree(DB::ConnectionPtr db, int64_t cats, int64_t devvcs, int64_t pkgs, int64_t ebs, int64_t ebus, int64_t ebas, int64_t pus, int64_t ug, int64_t ul, int64_t ugs, int64_t ugds, int64_t deps, int64_t rdeps, - int64_t news, int64_t masks) + int64_t news, int64_t masks, int64_t ebuildMasks) { dumpDb(db); @@ -40,6 +40,7 @@ doRefreshPackageTree(DB::ConnectionPtr db, int64_t cats, int64_t devvcs, int64_t SQL_REQUIRE_EQUAL("SELECT COUNT(*) FROM gentoobrowse.ebuild_rdeps", int64_t, rdeps); SQL_REQUIRE_EQUAL("SELECT COUNT(*) FROM gentoobrowse.news", int64_t, news); SQL_REQUIRE_EQUAL("SELECT COUNT(*) FROM gentoobrowse.masksets", int64_t, masks); + SQL_REQUIRE_EQUAL("SELECT COUNT(*) FROM gentoobrowse.ebuild_masks", int64_t, ebuildMasks); } void @@ -168,19 +169,19 @@ BOOST_AUTO_TEST_CASE( refreshPackageTree ) BOOST_TEST_CONTEXT("4156eb45cf3b0ce1d7125b84efd8688c2d6e831d") { m2.applyDiffOfFolders(binDir / "empty", rootDir / "fixtures" / "4156eb45cf3b0ce1d7125b84efd8688c2d6e831d"); doRefreshPackageTree(db, - 5, 1, 482, 981, 3626, 4593, 501, 393, 238, 50, 1573, 2008, 1543, 81, 152); + 5, 1, 482, 981, 3626, 4593, 501, 393, 238, 50, 1573, 2008, 1543, 81, 152, 7); } BOOST_TEST_CONTEXT("756569aa764177340726dd3d40b41d89b11b20c7") { m2.applyDiffOfFolders(rootDir / "fixtures" / "4156eb45cf3b0ce1d7125b84efd8688c2d6e831d", rootDir / "fixtures" / "756569aa764177340726dd3d40b41d89b11b20c7"); doRefreshPackageTree(db, - 5, 1, 483, 982, 3638, 4599, 502, 393, 238, 50, 1573, 2009, 1546, 79, 152); + 5, 1, 483, 982, 3638, 4599, 502, 393, 238, 50, 1573, 2009, 1546, 79, 152, 7); } BOOST_TEST_CONTEXT("empty") { m2.applyDiffOfFolders(rootDir / "fixtures" / "756569aa764177340726dd3d40b41d89b11b20c7", binDir / "empty"); doRefreshPackageTree(db, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); } } |