envtest

package
v0.3.17 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package envtest holds attestation envelopes for tests.

Index

Constants

This section is empty.

Variables

View Source
var ErrUnserializable = errors.New("envelope cannot be serialized")

ErrUnserializable is the error Unserializable fails with.

Functions

This section is empty.

Types

type Unserializable

type Unserializable struct{}

Unserializable is an attestation.Envelope that cannot be serialized to JSON. Storers serialize envelopes before storing them, so it exercises how they handle an envelope that fails on its own.

func (Unserializable) GetCertificate

func (Unserializable) GetCertificate() attestation.Certificate

func (Unserializable) GetPredicate

func (Unserializable) GetPredicate() attestation.Predicate

func (Unserializable) GetSignatures

func (Unserializable) GetSignatures() []attestation.Signature

func (Unserializable) GetStatement

func (Unserializable) GetStatement() attestation.Statement

func (Unserializable) GetVerification

func (Unserializable) GetVerification() attestation.Verification

func (Unserializable) MarshalJSON

func (Unserializable) MarshalJSON() ([]byte, error)

func (Unserializable) Verify

func (Unserializable) Verify(...any) error

Jump to

Keyboard shortcuts

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