testsuite

package
v0.0.0-...-4c964c4 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMultiPartForm

func CreateMultiPartForm(m *MultiPartForm) (io.Reader, string, error)

Types

type BaseSuite

type BaseSuite struct {
	suite.Suite

	Constructor Constructor
	Teardown    Teardown

	Ctx  context.Context
	Name string

	Store *TestStore
	Gdb   *gorm.DB

	ArtifactStore storage.ContentStorage

	DefaultView *adapter.ViewDescriptor
	// contains filtered or unexported fields
}

func (*BaseSuite) SetupSuite

func (suite *BaseSuite) SetupSuite()

SetupSuite implements suite.SetupAllSuite interface.

func (*BaseSuite) TearDownSuite

func (suite *BaseSuite) TearDownSuite()

TearDownSuite implements suite.TearDownAllSuite.

type Constructor

type Constructor func(ts *TestStore)

type MultiPartForm

type MultiPartForm struct {
	Fields       map[string]string
	Files        map[string]string
	TrimFileName bool
}

type Teardown

type Teardown func() error

type TestStore

type TestStore struct {
	Principal      store.PrincipalStore
	PrincipalCache store.PrincipalInfoCache
	Space          store.SpaceStore
	SpacePath      store.SpacePathStore
	Repo           store.RepoStore

	Artifacts store.ArtifactStore
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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