Bitcoin Core  27.99.0
P2P Digital Currency
Public Member Functions | List of all members
pyminisketch.TestMinisketch Class Reference
Inheritance diagram for pyminisketch.TestMinisketch:
[legend]
Collaboration diagram for pyminisketch.TestMinisketch:
[legend]

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)
 

Detailed Description

Test class for Minisketch.

Definition at line 457 of file pyminisketch.py.

Member Function Documentation

◆ construct_data()

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.

Here is the caller graph for this function:

◆ field_size_capacity_test()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test()

def pyminisketch.TestMinisketch.test (   self)
Run tests.

Definition at line 500 of file pyminisketch.py.

Here is the call graph for this function:

The documentation for this class was generated from the following file: