gerasuretest

package
v0.0.0-...-63a5211 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package gerasuretest contains compliance tests for erasure coding encoders and reconstructors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestFixedRateErasureReconstructionCompliance

func TestFixedRateErasureReconstructionCompliance(t *testing.T, f FixedRateFactory)

TestFixedRateErasureReconstructionCompliance is the compliance test for the pairing of gerasure.Encoder and gerasure.Reconstructor, when using a fixed-rate erasure coding.

Types

type FixedRateFactory

type FixedRateFactory func(
	origData []byte,
	nDataShards, nParityShards int,
) (gerasure.Encoder, gerasure.Reconstructor)

FixedRateFactory is the factory function used for TestFixedRateErasureReconstructionCompliance.

Jump to

Keyboard shortcuts

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