ipnstest

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: Apache-2.0, MIT Imports: 11 Imported by: 0

Documentation

Overview

Package ipnstest builds IPNS records at the wire level for tests, bypassing ipns.NewRecord so callers can construct records that record creation would sanitize or that verification would reject (for example a negative TTL).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RawRecordWithTTL

func RawRecordWithTTL(value path.Path, eol time.Time, ttl time.Duration) (*ipns.Record, error)

RawRecordWithTTL builds an unsigned EOL IPNS record whose DAG-CBOR data carries exactly the given TTL, without going through ipns.NewRecord. This lets a test produce a record that NewRecord would floor or that ipns.Validate would reject (such as a negative TTL). The record is unsigned and must only be fed to code paths that do not verify signatures.

Types

This section is empty.

Jump to

Keyboard shortcuts

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