Bitcoin Core 28.99.0
P2P Digital Currency
|
Public Member Functions | |
def | construct_data (cls, field_size, num_a_only, num_b_only, num_both) |
def | field_size_capacity_test (self, field_size, capacity) |
def | test (self) |
Test class for Minisketch.
Definition at line 457 of file pyminisketch.py.
def pyminisketch.TestMinisketch.construct_data | ( | cls, | |
field_size, | |||
num_a_only, | |||
num_b_only, | |||
num_both | |||
) |
Construct two random lists of elements in [1..2**field_size-1]. Each list will have unique elements that don't appear in the other (num_a_only in the first and num_b_only in the second), and num_both elements will appear in both.
Definition at line 461 of file pyminisketch.py.
def pyminisketch.TestMinisketch.field_size_capacity_test | ( | self, | |
field_size, | |||
capacity | |||
) |
Test Minisketch methods for a specific field and capacity.
Definition at line 480 of file pyminisketch.py.
def pyminisketch.TestMinisketch.test | ( | self | ) |
Run tests.
Definition at line 500 of file pyminisketch.py.