<commit_before>#include "DissentTest.hpp"
#include "RoundTest.hpp"
#include "TolerantTreeRoundHelpers.hpp"
#include "ShuffleRoundHelpers.hpp"

namespace Dissent {
namespace Tests {

  typedef Dissent::Anonymity::Tolerant::TolerantTreeRound TolerantTreeRound;

  TEST(TolerantTreeRound, BasicFixed)
  {
    RoundTest_Basic(&TCreateSession<TolerantTreeRound>,
        Group::FixedSubgroup);
  }

  TEST(TolerantTreeRound, MultiRoundFixed)
  {
    RoundTest_MultiRound(&TCreateSession<TolerantTreeRound>,
        Group::FixedSubgroup);
  }

  
  TEST(TolerantTreeRound, AddOne)
  {
    RoundTest_AddOne(&TCreateSession<TolerantTreeRound>,
        Group::FixedSubgroup);
  }
  
  
  TEST(TolerantTreeRound, PeerDisconnectMiddleFixed)
  {
    RoundTest_PeerDisconnectMiddle(&TCreateSession<TolerantTreeRound>,
        Group::FixedSubgroup);
  }

  TEST(TolerantTreeRound, MessageDuplicatorFixed)
  {
    typedef TolerantTreeRoundBadKeyShuffler<TolerantTreeRound,
            ShuffleRoundMessageSwitcher, 1> badbulk;

    RoundTest_BadGuy(&TCreateSession<TolerantTreeRound>,
        &TCreateSession<badbulk>, Group::FixedSubgroup, TBadGuyCB<badbulk>);
  }
  
  
  TEST(TolerantTreeRound, MessageSwitcherFixed)
  {
    typedef TolerantTreeRoundBadKeyShuffler<TolerantTreeRound,
            ShuffleRoundMessageSwitcher, 1> badbulk;

    RoundTest_BadGuy(&TCreateSession<TolerantTreeRound>,
        &TCreateSession<badbulk>, Group::FixedSubgroup, TBadGuyCB<badbulk>);
  }

  TEST(TolerantTreeRound, FalseNoGoFixed)
  {
    typedef TolerantTreeRoundBadKeyShuffler<TolerantTreeRound,
            ShuffleRoundFalseNoGo, 1> badbulk;

    RoundTest_BadGuy(&TCreateSession<TolerantTreeRound>,
        &TCreateSession<badbulk>, Group::FixedSubgroup, TBadGuyCB<badbulk>);
  }

  TEST(TolerantTreeRound, InvalidOuterEncryptionFixed)
  {
    typedef TolerantTreeRoundBadKeyShuffler<TolerantTreeRound,
            ShuffleRoundInvalidOuterEncryption, 1> badbulk;

    RoundTest_BadGuy(&TCreateSession<TolerantTreeRound>,
        &TCreateSession<badbulk>, Group::FixedSubgroup, TBadGuyCB<badbulk>);
  }

}
}
<commit_msg>[Tests] Explicitly tests TolerantTree*CS<commit_after>#include "DissentTest.hpp"
#include "RoundTest.hpp"
#include "TolerantTreeRoundHelpers.hpp"
#include "ShuffleRoundHelpers.hpp"

namespace Dissent {
namespace Tests {

  typedef Dissent::Anonymity::Tolerant::TolerantTreeRound TolerantTreeRound;

  TEST(TolerantTreeRound, BasicFixed)
  {
    RoundTest_Basic(&TCreateSession<TolerantTreeRound>,
        Group::FixedSubgroup);
  }

  TEST(TolerantTreeRound, BasicCS)
  {
    RoundTest_Basic(&TCreateSession<TolerantTreeRound>,
        Group::ManagedSubgroup);
  }

  TEST(TolerantTreeRound, MultiRoundFixed)
  {
    RoundTest_MultiRound(&TCreateSession<TolerantTreeRound>,
        Group::FixedSubgroup);
  }

  
  TEST(TolerantTreeRound, AddOne)
  {
    RoundTest_AddOne(&TCreateSession<TolerantTreeRound>,
        Group::FixedSubgroup);
  }
  
  
  TEST(TolerantTreeRound, PeerDisconnectMiddleFixed)
  {
    RoundTest_PeerDisconnectMiddle(&TCreateSession<TolerantTreeRound>,
        Group::FixedSubgroup);
  }

  TEST(TolerantTreeRound, MessageDuplicatorFixed)
  {
    typedef TolerantTreeRoundBadKeyShuffler<TolerantTreeRound,
            ShuffleRoundMessageSwitcher, 1> badbulk;

    RoundTest_BadGuy(&TCreateSession<TolerantTreeRound>,
        &TCreateSession<badbulk>, Group::FixedSubgroup, TBadGuyCB<badbulk>);
  }
  
  
  TEST(TolerantTreeRound, MessageSwitcherFixed)
  {
    typedef TolerantTreeRoundBadKeyShuffler<TolerantTreeRound,
            ShuffleRoundMessageSwitcher, 1> badbulk;

    RoundTest_BadGuy(&TCreateSession<TolerantTreeRound>,
        &TCreateSession<badbulk>, Group::FixedSubgroup, TBadGuyCB<badbulk>);
  }

  TEST(TolerantTreeRound, FalseNoGoFixed)
  {
    typedef TolerantTreeRoundBadKeyShuffler<TolerantTreeRound,
            ShuffleRoundFalseNoGo, 1> badbulk;

    RoundTest_BadGuy(&TCreateSession<TolerantTreeRound>,
        &TCreateSession<badbulk>, Group::FixedSubgroup, TBadGuyCB<badbulk>);
  }

  TEST(TolerantTreeRound, InvalidOuterEncryptionFixed)
  {
    typedef TolerantTreeRoundBadKeyShuffler<TolerantTreeRound,
            ShuffleRoundInvalidOuterEncryption, 1> badbulk;

    RoundTest_BadGuy(&TCreateSession<TolerantTreeRound>,
        &TCreateSession<badbulk>, Group::FixedSubgroup, TBadGuyCB<badbulk>);
  }

}
}

{'fraction_non_alphanumeric': 0.0911386593204775, 'fraction_numerical': 0.0018365472910927456, 'mean_word_length': 5.197724039829303, 'pattern_counts': {'":': 0, '<': 44, '<?xml version=': 0, '>': 44, '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': '1063160', 'n_tokens_mistral': 1500, 'n_tokens_neox': 1457, 'n_words': 157}