portalloctest

package
v1.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package portalloctest hands tests port allocators over disjoint, probed-free blocks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(tb testing.TB, span int) *portalloc.Allocator

New returns an allocator over span ports that no other caller in this process holds and nothing is currently listening on. It fails the test if no such block exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL