oidtest

package
v1.0.0-rc.21 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package oidtest provides functions for convenient testing of oid package API.

Note that importing the package into source files is highly discouraged.

Random instance generation functions can be useful when testing expects any value, e.g.:

import oidtest "github.com/nspcc-dev/neofs-sdk-go/object/id/test"

value := oidtest.ID()
// test the value

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Address

func Address() oid.Address

Address returns random oid.Address.

func Addresses

func Addresses(n int) []oid.Address

Addresses returns n random oid.Address instances.

func ID

func ID() oid.ID

ID returns random oid.ID.

func IDs

func IDs(n int) []oid.ID

IDs returns n random oid.ID instances.

func OtherAddress

func OtherAddress(vs ...oid.Address) oid.Address

OtherAddress returns random oid.Address other than any given one.

func OtherID

func OtherID(vs ...oid.ID) oid.ID

OtherID returns random oid.ID other than any given one.

Types

This section is empty.

Jump to

Keyboard shortcuts

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