<commit_before>/*
 * Copyright (c) 2007-2008 Digital Bazaar, Inc.  All rights reserved.
 */
#include <iostream>
#include <sstream>

#include "db/test/Test.h"
#include "db/test/Tester.h"
#include "db/test/TestRunner.h"
#include "db/rt/Object.h"
#include "db/rt/Runnable.h"
#include "db/rt/Thread.h"
#include "db/logging/Logging.h"
#include "db/logging/Logger.h"
#include "db/logging/OutputStreamLogger.h"
#include "db/logging/FileLogger.h"

using namespace std;
using namespace db::test;
using namespace db::io;
using namespace db::rt;
using namespace db::util;
using namespace db::logging;

#define DB_TEST_NO_MAIN
#include "test-compress.cpp"
#include "test-config.cpp"
#include "test-crypto.cpp"
#include "test-data.cpp"
#include "test-event.cpp"
#include "test-io.cpp"
#include "test-logging.cpp"
#include "test-mail.cpp"
#include "test-modest.cpp"
#include "test-net.cpp"
#include "test-rt.cpp"
#include "test-sql.cpp"
#include "test-util.cpp"
#undef DB_TEST_NO_MAIN

class DbAllTester : public db::test::Tester
{
public:
   DbAllTester()
   {
      addTester(new DbCompressTester());
      addTester(new DbConfigTester());
      addTester(new DbCryptoTester());
      addTester(new DbDataTester());
      addTester(new DbEventTester());
      addTester(new DbIoTester());
      addTester(new DbLoggingTester());
      addTester(new DbMailTester());
      addTester(new DbModestTester());
      addTester(new DbNetTester());
      addTester(new DbRtTester());
      addTester(new DbSqlTester());
      addTester(new DbUtilTester());
   }

   ~DbAllTester() {}
};

DB_TEST_MAIN(DbAllTester)<commit_msg>Reordered tests according to hierarchy instead of alphabetical order.<commit_after>/*
 * Copyright (c) 2007-2008 Digital Bazaar, Inc.  All rights reserved.
 */
#include <iostream>
#include <sstream>

#include "db/test/Test.h"
#include "db/test/Tester.h"
#include "db/test/TestRunner.h"
#include "db/rt/Object.h"
#include "db/rt/Runnable.h"
#include "db/rt/Thread.h"
#include "db/logging/Logging.h"
#include "db/logging/Logger.h"
#include "db/logging/OutputStreamLogger.h"
#include "db/logging/FileLogger.h"

using namespace std;
using namespace db::test;
using namespace db::io;
using namespace db::rt;
using namespace db::util;
using namespace db::logging;

#define DB_TEST_NO_MAIN
#include "test-rt.cpp"
#include "test-modest.cpp"
#include "test-util.cpp"
#include "test-io.cpp"
#include "test-crypto.cpp"
#include "test-net.cpp"
#include "test-event.cpp"
#include "test-mail.cpp"
#include "test-sql.cpp"
#include "test-data.cpp"
#include "test-compress.cpp"
#include "test-config.cpp"
#include "test-logging.cpp"
#undef DB_TEST_NO_MAIN

class DbAllTester : public db::test::Tester
{
public:
   DbAllTester()
   {
      addTester(new DbRtTester());
      addTester(new DbModestTester());
      addTester(new DbUtilTester());
      addTester(new DbIoTester());
      addTester(new DbCryptoTester());
      addTester(new DbNetTester());
      addTester(new DbEventTester());
      addTester(new DbMailTester());
      addTester(new DbSqlTester());
      addTester(new DbDataTester());
      addTester(new DbCompressTester());
      addTester(new DbConfigTester());
      addTester(new DbLoggingTester());
   }

   ~DbAllTester() {}
};

DB_TEST_MAIN(DbAllTester)
{'fraction_non_alphanumeric': 0.15217391304347827, 'fraction_numerical': 0.004898958971218616, 'mean_word_length': 4.671875, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3716005', 'n_tokens_mistral': 1228, 'n_tokens_neox': 1177, 'n_words': 239}