uuidtest

package
v0.19.9 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package uuidtest provides utilities for working with UUIDs in tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sequence

type Sequence struct {
	// contains filtered or unexported fields
}

Sequence is a sequence of deterministic UUIDs.

func NewSequence

func NewSequence() *Sequence

NewSequence returns a new deterministic UUID sequence.

func (*Sequence) IsNth

func (s *Sequence) IsNth(x *uuidpb.UUID, n uint64) bool

IsNth returns true if x is the n'th UUID in the sequence.

func (*Sequence) Next

func (s *Sequence) Next() *uuidpb.UUID

Next returns the next UUID in the sequence.

func (*Sequence) Nth

func (s *Sequence) Nth(n uint64) *uuidpb.UUID

Nth returns the n'th UUID in the sequence.

Jump to

Keyboard shortcuts

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