summaryrefslogtreecommitdiff
path: root/src/mongo/db/hasher.cpp
diff options
context:
space:
mode:
authorNathan Brown <nathan.brown@10gen.com>2019-05-31 18:03:18 -0400
committerNathan Brown <nathan.brown@10gen.com>2019-06-07 16:32:48 -0400
commitc69e513070d03c0ed7a3a32047b39885fa5464c6 (patch)
tree1987f7a8af7c9f9e1ec92cac2b8483cc4e4c0e94 /src/mongo/db/hasher.cpp
parent06bf03568dc44fd53485fcf3a955c7faa8252fe7 (diff)
downloadmongo-c69e513070d03c0ed7a3a32047b39885fa5464c6.tar.gz
SERVER-18463 Remove StartupTest infrastructure, place StartupTests into
unittests
Diffstat (limited to 'src/mongo/db/hasher.cpp')
-rw-r--r--src/mongo/db/hasher.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/mongo/db/hasher.cpp b/src/mongo/db/hasher.cpp
index 677d34d9b7f..e8da6919bf4 100644
--- a/src/mongo/db/hasher.cpp
+++ b/src/mongo/db/hasher.cpp
@@ -36,7 +36,6 @@
#include "mongo/db/jsobj.h"
#include "mongo/util/md5.hpp"
-#include "mongo/util/startup_test.h"
namespace mongo {
@@ -137,14 +136,6 @@ void recursiveHash(Hasher* h, const BSONElement& e, bool includeFieldName) {
}
}
-struct HasherUnitTest : public StartupTest {
- void run() {
- // Hard-coded check to ensure the hash function is consistent across platforms
- BSONObj o = BSON("check" << 42);
- verify(BSONElementHasher::hash64(o.firstElement(), 0) == -944302157085130861LL);
- }
-} hasherUnitTest;
-
} // namespace
long long int BSONElementHasher::hash64(const BSONElement& e, HashSeed seed) {