cidtest

package
v0.0.0-...-5e759bf Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package cidtest provides functions for convenient testing of cid 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 cidtest "github.com/TrueCloudLab/frostfs-sdk-go/container/id/test"

cid := cidtest.ID()
// test the value

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ID

func ID() cid.ID

ID returns random cid.ID.

func IDWithChecksum

func IDWithChecksum(cs [sha256.Size]byte) cid.ID

IDWithChecksum returns cid.ID initialized with specified checksum.

Types

This section is empty.

Jump to

Keyboard shortcuts

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