storage

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: MIT Imports: 7 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS added in v0.13.0

type FS struct {
	FS fs.FS
}

FS is a wrapper that falls back to `os`.

func (FS) Open added in v0.13.0

func (f FS) Open(name string) (fs.File, error)

Open a file in the provided `fs.FS`. If none provided, open via `os.Open`

type Storage

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

Storage is a thread safe in-mem storage

func NewStorage

func NewStorage() *Storage

NewStorage will create an in-mem storage that is used across concurrent runners and formatters

func (*Storage) MustGetFeature

func (s *Storage) MustGetFeature(uri string) *models.Feature

MustGetFeature will retrieve a feature by URI and panic on error.

func (*Storage) MustGetFeatures

func (s *Storage) MustGetFeatures() (fs []*models.Feature)

MustGetFeatures will retrieve all features by and panic on error.

func (*Storage) MustGetPickle

func (s *Storage) MustGetPickle(id string) *messages.Pickle

MustGetPickle will retrieve a pickle by id and panic on error.

func (*Storage) MustGetPickleResult

func (s *Storage) MustGetPickleResult(id string) models.PickleResult

MustGetPickleResult will retrieve a pickle result by id and panic on error.

func (*Storage) MustGetPickleResults

func (s *Storage) MustGetPickleResults() (prs []models.PickleResult)

MustGetPickleResults will retrieve all pickle results and panic on error.

func (*Storage) MustGetPickleStep

func (s *Storage) MustGetPickleStep(id string) *messages.PickleStep

MustGetPickleStep will retrieve a pickle step and panic on error.

func (*Storage) MustGetPickleStepResult

func (s *Storage) MustGetPickleStepResult(id string) models.PickleStepResult

MustGetPickleStepResult will retrieve a pickle strep result by id and panic on error.

func (*Storage) MustGetPickleStepResultsByPickleID

func (s *Storage) MustGetPickleStepResultsByPickleID(pickleID string) (psrs []models.PickleStepResult)

MustGetPickleStepResultsByPickleID will retrieve pickle step results by pickle id and panic on error.

func (*Storage) MustGetPickleStepResultsByPickleIDUntilStep added in v0.15.1

func (s *Storage) MustGetPickleStepResultsByPickleIDUntilStep(pickleID string, untilStepID string) (psrs []models.PickleStepResult)

MustGetPickleStepResultsByPickleIDUntilStep will retrieve pickle step results by pickle id from 0..stepID for that pickle.

func (*Storage) MustGetPickleStepResultsByStatus

func (s *Storage) MustGetPickleStepResultsByStatus(status models.StepResultStatus) (psrs []models.PickleStepResult)

MustGetPickleStepResultsByStatus will retrieve pickle strep results by status and panic on error.

func (*Storage) MustGetPickles

func (s *Storage) MustGetPickles(uri string) (ps []*messages.Pickle)

MustGetPickles will retrieve pickles by URI and panic on error.

func (*Storage) MustGetStepDefintionMatch

func (s *Storage) MustGetStepDefintionMatch(stepID string) *models.StepDefinition

MustGetStepDefintionMatch will retrieve the matched StepDefintion for the step ID and panic on error.

func (*Storage) MustGetTestRunStarted

func (s *Storage) MustGetTestRunStarted() models.TestRunStarted

MustGetTestRunStarted will retrieve the test run started event and panic on error.

func (*Storage) MustInsertFeature

func (s *Storage) MustInsertFeature(f *models.Feature)

MustInsertFeature will insert a feature and panic on error.

func (*Storage) MustInsertPickle

func (s *Storage) MustInsertPickle(p *messages.Pickle)

MustInsertPickle will insert a pickle and it's steps, will panic on error.

func (*Storage) MustInsertPickleResult

func (s *Storage) MustInsertPickleResult(pr models.PickleResult)

MustInsertPickleResult will instert a pickle result and panic on error.

func (*Storage) MustInsertPickleStepResult

func (s *Storage) MustInsertPickleStepResult(psr models.PickleStepResult)

MustInsertPickleStepResult will insert a pickle step result and panic on error.

func (*Storage) MustInsertStepDefintionMatch

func (s *Storage) MustInsertStepDefintionMatch(stepID string, match *models.StepDefinition)

MustInsertStepDefintionMatch will insert the matched StepDefintion for the step ID and panic on error.

func (*Storage) MustInsertTestRunStarted

func (s *Storage) MustInsertTestRunStarted(trs models.TestRunStarted)

MustInsertTestRunStarted will set the test run started event and panic on error.

Jump to

Keyboard shortcuts

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