mocks

package
v0.0.0-...-ed06964 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RunRepository

type RunRepository struct {
	mock.Mock
	T mock.TestingT
}

func (*RunRepository) Count

func (m *RunRepository) Count(ctx context.Context, t test.Test) (int, error)

func (*RunRepository) CreateRun

func (m *RunRepository) CreateRun(ctx context.Context, t test.Test, r test.Run) (test.Run, error)

func (*RunRepository) DeleteRun

func (m *RunRepository) DeleteRun(ctx context.Context, r test.Run) error

func (*RunRepository) GetLatestRunByTestVersion

func (m *RunRepository) GetLatestRunByTestVersion(ctx context.Context, id id.ID, version int) (test.Run, error)

func (*RunRepository) GetRun

func (m *RunRepository) GetRun(ctx context.Context, testID id.ID, runID int) (test.Run, error)

func (*RunRepository) GetRunByTraceID

func (m *RunRepository) GetRunByTraceID(ctx context.Context, traceID trace.TraceID) (test.Run, error)

func (*RunRepository) GetTestRuns

func (m *RunRepository) GetTestRuns(ctx context.Context, t test.Test, take, skip int32) ([]test.Run, error)

func (*RunRepository) GetTestSuiteRunSteps

func (m *RunRepository) GetTestSuiteRunSteps(ctx context.Context, id id.ID, runID int) ([]test.Run, error)

func (*RunRepository) UpdateRun

func (m *RunRepository) UpdateRun(ctx context.Context, r test.Run) error

type TestRepository

type TestRepository struct {
	mock.Mock
	T mock.TestingT
}

func (*TestRepository) Count

func (m *TestRepository) Count(ctx context.Context, query string) (int, error)

func (*TestRepository) Create

func (m *TestRepository) Create(ctx context.Context, t test.Test) (test.Test, error)

func (*TestRepository) Delete

func (m *TestRepository) Delete(ctx context.Context, id id.ID) error

func (*TestRepository) Exists

func (m *TestRepository) Exists(ctx context.Context, id id.ID) (bool, error)

func (*TestRepository) Get

func (m *TestRepository) Get(ctx context.Context, id id.ID) (test.Test, error)

func (*TestRepository) GetAugmented

func (m *TestRepository) GetAugmented(ctx context.Context, id id.ID) (test.Test, error)

func (*TestRepository) GetVersion

func (m *TestRepository) GetVersion(ctx context.Context, id id.ID, version int) (test.Test, error)

func (*TestRepository) List

func (m *TestRepository) List(ctx context.Context, take, skip int, query, sortBy, sortDirection string) ([]test.Test, error)

func (*TestRepository) ListAugmented

func (m *TestRepository) ListAugmented(ctx context.Context, take, skip int, query, sortBy, sortDirection string) ([]test.Test, error)

func (*TestRepository) Provision

func (m *TestRepository) Provision(ctx context.Context, t test.Test) error

func (*TestRepository) SetID

func (m *TestRepository) SetID(t test.Test, id id.ID) test.Test

func (*TestRepository) SortingFields

func (m *TestRepository) SortingFields() []string

func (*TestRepository) Update

func (m *TestRepository) Update(ctx context.Context, t test.Test) (test.Test, error)

Jump to

Keyboard shortcuts

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