Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
pyminisketch.TestMinisketch Class Reference
Inheritance diagram for pyminisketch.TestMinisketch:
[legend]
Collaboration diagram for pyminisketch.TestMinisketch:
[legend]

Public Member Functions

 construct_data (cls, field_size, num_a_only, num_b_only, num_both)
 field_size_capacity_test (self, field_size, capacity)
 test (self)

Detailed Description

Test class for Minisketch.

Definition at line 457 of file pyminisketch.py.

Member Function Documentation

◆ construct_data()

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()

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()

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: