Documentation
¶
Overview ¶
Package tester provides an implementation-agnostic way to test a Blocker.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blocker ¶
type Blocker interface { ReadHeader(r io.Reader) (Header, error) ReadDenylist(r io.ReadSeekCloser) error IsPathBlocked(p path.Path) bool IsCidBlocked(c cid.Cid) bool }
Blocker defines the minimal interface that a blocker should support to be tested.
type Suite ¶
type Suite struct { TestHeader bool TestCID bool TestCIDPath bool TestIPNSPath bool TestDoubleHashLegacy bool TestDoubleHash bool // contains filtered or unexported fields }
Suite repesents the test suite and different test types can be enabled/disabled to match what the Blocker implementation supports.
Click to show internal directories.
Click to hide internal directories.