MCPcopy Index your code
hub / github.com/bytebase/bytebase / provisionSQLiteInstance

Method provisionSQLiteInstance

backend/tests/tests.go:360–367  ·  view source on GitHub ↗

provisionSQLiteInstance provisions a SQLite instance (a directory).

(rootDir, name string)

Source from the content-addressed store, hash-verified

358
359// provisionSQLiteInstance provisions a SQLite instance (a directory).
360func (*controller) provisionSQLiteInstance(rootDir, name string) (string, error) {
361 p := path.Join(rootDir, name)
362 if err := os.MkdirAll(p, os.ModePerm); err != nil {
363 return "", errors.Wrapf(err, "failed to make directory %q", p)
364 }
365
366 return p, nil
367}
368
369// signupAndLogin will signup and login as user demo@example.com.
370// addMemberToWorkspaceIAM adds a member as workspace role to the current workspace.

Callers 15

TestDataSourceFunction · 0.95
setupPlanUpdateFixtureFunction · 0.95
TestWebhookIntegrationFunction · 0.95
TestCreateDatabaseGroupFunction · 0.95
TestGitOpsCheckFunction · 0.95
TestGitOpsRolloutFunction · 0.95
TestSchemaAndDataUpdateFunction · 0.95
TestMarkTaskAsDoneFunction · 0.95

Calls 1

JoinMethod · 0.80

Tested by 15

TestDataSourceFunction · 0.76
setupPlanUpdateFixtureFunction · 0.76
TestWebhookIntegrationFunction · 0.76
TestCreateDatabaseGroupFunction · 0.76
TestGitOpsCheckFunction · 0.76
TestGitOpsRolloutFunction · 0.76
TestSchemaAndDataUpdateFunction · 0.76
TestMarkTaskAsDoneFunction · 0.76