query

package
v0.0.0-...-044f632 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssertModel

type AssertModel struct {
	Actual   string
	Expected interface{}
}

type AssertionModel

type AssertionModel struct {
	Method  string
	Asserts []AssertModel
}

func (AssertionModel) IsZero

func (a AssertionModel) IsZero() bool

type FlowModel

type FlowModel struct {
	StartedAt    time.Time
	OverallState string
	Statuses     []StatusModel
}

type HTTPModel

type HTTPModel struct {
	Request  HTTPRequestModel
	Response HTTPResponseModel
}

func (HTTPModel) IsZero

func (h HTTPModel) IsZero() bool

type HTTPRequestModel

type HTTPRequestModel struct {
	Method      string
	URL         string
	ContentType string
	Body        map[string]interface{}
}

func (HTTPRequestModel) IsZero

func (r HTTPRequestModel) IsZero() bool

type HTTPResponseModel

type HTTPResponseModel struct {
	AllowedCodes       []int
	AllowedContentType string
}

func (HTTPResponseModel) IsZero

func (r HTTPResponseModel) IsZero() bool

type Pipeline

type Pipeline struct {
	PipelineID string
	UserID     string
}

type PipelineHandler

type PipelineHandler interface {
	Handle(ctx context.Context, qry Pipeline) (PipelineModel, error)
}

func NewPipelineHandler

func NewPipelineHandler(readModel PipelineReadModel) PipelineHandler

type PipelineModel

type PipelineModel struct {
	ID              string
	SpecificationID string
	StartedAt       time.Time
	Flows           []FlowModel
}

type PipelineReadModel

type PipelineReadModel interface {
	FindPipeline(ctx context.Context, qry Pipeline) (PipelineModel, error)
}

type ScenarioModel

type ScenarioModel struct {
	Slug        string
	Description string
	Theses      []ThesisModel
}

type ScenarioSlugModel

type ScenarioSlugModel struct {
	Story    string
	Scenario string
}

type Specification

type Specification struct {
	SpecificationID string
	UserID          string
}

type SpecificationHandler

type SpecificationHandler interface {
	Handle(ctx context.Context, qry Specification) (SpecificationModel, error)
}

func NewSpecificationHandler

func NewSpecificationHandler(readModel SpecificationReadModel) SpecificationHandler

type SpecificationModel

type SpecificationModel struct {
	ID             string
	TestCampaignID string
	LoadedAt       time.Time
	Author         string
	Title          string
	Description    string
	Stories        []StoryModel
}

type SpecificationReadModel

type SpecificationReadModel interface {
	FindSpecification(ctx context.Context, qry Specification) (SpecificationModel, error)
}

type StatementModel

type StatementModel struct {
	Stage    string
	Behavior string
}

type StatusModel

type StatusModel struct {
	Slug           ScenarioSlugModel
	State          string
	ThesisStatuses []ThesisStatusModel
}

type StoryModel

type StoryModel struct {
	Slug        string
	Description string
	AsA         string
	InOrderTo   string
	WantTo      string
	Scenarios   []ScenarioModel
}

type TestCampaign

type TestCampaign struct {
	TestCampaignID string
	UserID         string
}

type TestCampaignHandler

type TestCampaignHandler interface {
	Handle(ctx context.Context, qry TestCampaign) (TestCampaignModel, error)
}

func NewTestCampaignHandler

func NewTestCampaignHandler(readModel TestCampaignReadModel) TestCampaignHandler

type TestCampaignModel

type TestCampaignModel struct {
	ID        string
	ViewName  string
	Summary   string
	CreatedAt time.Time
}

type TestCampaignReadModel

type TestCampaignReadModel interface {
	FindTestCampaign(ctx context.Context, qry TestCampaign) (TestCampaignModel, error)
}

type ThesisModel

type ThesisModel struct {
	Slug      string
	After     []string
	Statement StatementModel
	HTTP      HTTPModel
	Assertion AssertionModel
}

type ThesisStatusModel

type ThesisStatusModel struct {
	ThesisSlug   string
	State        string
	OccurredErrs []string
}

Jump to

Keyboard shortcuts

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