Documentation ¶
Index ¶
- type FS
- type Storage
- func (s *Storage) MustGetFeature(uri string) *models.Feature
- func (s *Storage) MustGetFeatures() (fs []*models.Feature)
- func (s *Storage) MustGetPickle(id string) *messages.Pickle
- func (s *Storage) MustGetPickleResult(id string) models.PickleResult
- func (s *Storage) MustGetPickleResults() (prs []models.PickleResult)
- func (s *Storage) MustGetPickleStep(id string) *messages.PickleStep
- func (s *Storage) MustGetPickleStepResult(id string) models.PickleStepResult
- func (s *Storage) MustGetPickleStepResultsByPickleID(pickleID string) (psrs []models.PickleStepResult)
- func (s *Storage) MustGetPickleStepResultsByStatus(status models.StepResultStatus) (psrs []models.PickleStepResult)
- func (s *Storage) MustGetPickles(uri string) (ps []*messages.Pickle)
- func (s *Storage) MustGetStepDefintionMatch(stepID string) *models.StepDefinition
- func (s *Storage) MustGetTestRunStarted() models.TestRunStarted
- func (s *Storage) MustInsertFeature(f *models.Feature)
- func (s *Storage) MustInsertPickle(p *messages.Pickle)
- func (s *Storage) MustInsertPickleResult(pr models.PickleResult)
- func (s *Storage) MustInsertPickleStepResult(psr models.PickleStepResult)
- func (s *Storage) MustInsertStepDefintionMatch(stepID string, match *models.StepDefinition)
- func (s *Storage) MustInsertTestRunStarted(trs models.TestRunStarted)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 ¶
MustGetFeature will retrieve a feature by URI and panic on error.
func (*Storage) MustGetFeatures ¶
MustGetFeatures will retrieve all features by and panic on error.
func (*Storage) MustGetPickle ¶
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 strep results by pickle id and panic on error.
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 ¶
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 ¶
MustInsertFeature will insert a feature and panic on error.
func (*Storage) MustInsertPickle ¶
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.