Documentation
¶
Index ¶
- Constants
- func AddRepo(ctx context.Context, t *testing.T, repoStore store.RepoStore, id int64, ...)
- func AddSpace(ctx context.Context, t *testing.T, spaceStore store.SpaceStore, ...)
- func AddUser(ctx context.Context, t *testing.T, principalStore store.PrincipalStore, ...)
- func EqualFieldValue(t *testing.T, expectedValue interface{}, obj interface{}, fieldName string, ...)
- func EqualStructFieldValue(t *testing.T, expect interface{}, actual interface{}, fieldName string, ...)
- func NotEqualStructFieldValue(t *testing.T, expect interface{}, actual interface{}, fieldName string, ...)
- type BaseSuite
- type Constructor
- type Teardown
- type TestStore
Constants ¶
View Source
const (
InvalidLoopMsgF = "\"invalid loop id: %d\""
)
Variables ¶
This section is empty.
Functions ¶
func EqualFieldValue ¶
func EqualStructFieldValue ¶
Types ¶
type BaseSuite ¶
type BaseSuite struct {
suite.Suite
Constructor Constructor
Teardown Teardown
Ctx context.Context
Name string
Store *TestStore
Sdb *sqlx.DB
Gdb *gorm.DB
}
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 TestStore ¶
type TestStore struct {
Principal store.PrincipalStore
PrincipalCache store.PrincipalInfoCache
Space store.SpaceStore
SpacePath store.SpacePathStore
Repo store.RepoStore
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.