Documentation ¶
Index ¶
- func AddDB(t testing.TB, store kv.Storage, dbInfo *model.DBInfo)
- func AddResourceGroup(t *testing.T, store kv.Storage, group *model.ResourceGroupInfo)
- func AddTable(t testing.TB, store kv.Storage, dbInfo *model.DBInfo, tblInfo *model.TableInfo)
- func CreateAutoIDRequirement(t testing.TB, opts ...mockstore.MockTiKVStoreOption) autoid.Requirement
- func CreateAutoIDRequirementWithStore(t testing.TB, store kv.Storage) autoid.Requirement
- func CreatePolicy(t *testing.T, store kv.Storage, policy *model.PolicyInfo)
- func DropDB(t testing.TB, store kv.Storage, dbInfo *model.DBInfo)
- func DropPolicy(t *testing.T, store kv.Storage, policy *model.PolicyInfo)
- func DropResourceGroup(t *testing.T, store kv.Storage, group *model.ResourceGroupInfo)
- func DropTable(t testing.TB, store kv.Storage, dbInfo *model.DBInfo, tblID int64, ...)
- func GenGlobalID(store kv.Storage) (int64, error)
- func MockDBInfo(t testing.TB, store kv.Storage, DBName string) *model.DBInfo
- func MockPolicyInfo(t *testing.T, store kv.Storage, policyName string) *model.PolicyInfo
- func MockPolicyRefInfo(t *testing.T, store kv.Storage, policyName string) *model.PolicyRefInfo
- func MockResourceGroupInfo(t *testing.T, store kv.Storage, groupName string) *model.ResourceGroupInfo
- func MockTable(t *testing.T, store kv.Storage, tblInfo *model.TableInfo) table.Table
- func MockTableInfo(t testing.TB, store kv.Storage, tblName string) *model.TableInfo
- func PrepareSlowLogfile(t *testing.T, slowLogFileName string)
- func Sizeof(v any) int
- func UpdateDB(t testing.TB, store kv.Storage, dbInfo *model.DBInfo)
- func UpdatePolicy(t *testing.T, store kv.Storage, policy *model.PolicyInfo)
- func UpdateResourceGroup(t *testing.T, store kv.Storage, group *model.ResourceGroupInfo)
- func UpdateTable(t *testing.T, store kv.Storage, dbInfo *model.DBInfo, tblInfo *model.TableInfo)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddResourceGroup ¶
AddResourceGroup add mock resource group for testing.
func CreateAutoIDRequirement ¶
func CreateAutoIDRequirement(t testing.TB, opts ...mockstore.MockTiKVStoreOption) autoid.Requirement
CreateAutoIDRequirement create autoid requirement for testing.
func CreateAutoIDRequirementWithStore ¶
CreateAutoIDRequirementWithStore create autoid requirement with storage for testing.
func CreatePolicy ¶
CreatePolicy create mock policy for testing.
func DropPolicy ¶
DropPolicy drop mock policy for testing.
func DropResourceGroup ¶
DropResourceGroup drop mock resource group for testing.
func GenGlobalID ¶
GenGlobalID generates next id globally for testing.
func MockDBInfo ¶
MockDBInfo mock DBInfo for testing.
func MockPolicyInfo ¶
MockPolicyInfo mock policy for testing.
func MockPolicyRefInfo ¶
MockPolicyRefInfo mock policy ref info for testing.
func MockResourceGroupInfo ¶
func MockResourceGroupInfo(t *testing.T, store kv.Storage, groupName string) *model.ResourceGroupInfo
MockResourceGroupInfo mock resource group for testing.
func MockTableInfo ¶
MockTableInfo mock TableInfo for testing.
func PrepareSlowLogfile ¶
PrepareSlowLogfile prepares a slow log file for test.
func Sizeof ¶
Sizeof returns the size of 'v' in bytes. If there is an error during calculation, Of returns -1.
func UpdatePolicy ¶
UpdatePolicy update mock policy for testing.
func UpdateResourceGroup ¶
UpdateResourceGroup update mock resource group for testing.
Types ¶
This section is empty.