Fabcoin Core  0.16.2
P2P Digital Currency
Typedefs | Functions
bloomFilter.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <libdevcore/SHA3.h>
#include <libwhisper/BloomFilter.h>
#include <test/libtesteth/TestHelper.h>
Include dependency graph for bloomFilter.cpp:

Go to the source code of this file.

Typedefs

using TopicBloomFilterShort = TopicBloomFilterBase< 4 >
 
using TopicBloomFilterTest = TopicBloomFilterBase< TopicBloomFilterSize >
 

Functions

void testAddNonExisting (TopicBloomFilterShort &_f, AbridgedTopic const &_h)
 
void testRemoveExisting (TopicBloomFilterShort &_f, AbridgedTopic const &_h)
 
void testAddNonExistingBloom (TopicBloomFilterShort &_f, AbridgedTopic const &_h)
 
void testRemoveExistingBloom (TopicBloomFilterShort &_f, AbridgedTopic const &_h)
 
double calculateExpected (TopicBloomFilterTest const &f, int n)
 
double testFalsePositiveRate (TopicBloomFilterTest const &f, int inserted, Topic &x)
 
 BOOST_AUTO_TEST_CASE (dummyTest)
 

Typedef Documentation

Definition at line 32 of file bloomFilter.cpp.

using TopicBloomFilterTest = TopicBloomFilterBase<TopicBloomFilterSize>

Definition at line 33 of file bloomFilter.cpp.

Function Documentation

BOOST_AUTO_TEST_CASE ( dummyTest  )

Definition at line 113 of file bloomFilter.cpp.

double calculateExpected ( TopicBloomFilterTest const &  f,
int  n 
)

Definition at line 63 of file bloomFilter.cpp.

Here is the caller graph for this function:

void testAddNonExisting ( TopicBloomFilterShort _f,
AbridgedTopic const &  _h 
)

Definition at line 35 of file bloomFilter.cpp.

Here is the call graph for this function:

void testAddNonExistingBloom ( TopicBloomFilterShort _f,
AbridgedTopic const &  _h 
)

Definition at line 49 of file bloomFilter.cpp.

Here is the call graph for this function:

double testFalsePositiveRate ( TopicBloomFilterTest const &  f,
int  inserted,
Topic x 
)

Definition at line 84 of file bloomFilter.cpp.

Here is the call graph for this function:

void testRemoveExisting ( TopicBloomFilterShort _f,
AbridgedTopic const &  _h 
)

Definition at line 42 of file bloomFilter.cpp.

Here is the call graph for this function:

void testRemoveExistingBloom ( TopicBloomFilterShort _f,
AbridgedTopic const &  _h 
)

Definition at line 56 of file bloomFilter.cpp.

Here is the call graph for this function: