MCPcopy Create free account
hub / github.com/cloudbase/garm / SetupTest

Method SetupTest

database/sql/github_test.go:58–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56}
57
58func (s *GithubTestSuite) SetupTest() {
59 ctx := context.Background()
60 watcher.InitWatcher(ctx)
61 db, err := NewSQLDatabase(ctx, garmTesting.GetTestSqliteDBConfig(s.T()))
62 if err != nil {
63 s.FailNow(fmt.Sprintf("failed to create db connection: %s", err))
64 }
65 s.db = db
66}
67
68func (s *GithubTestSuite) TestDefaultEndpointGetsCreatedAutomaticallyIfNoOtherEndpointExists() {
69 ctx := garmTesting.ImpersonateAdminContext(context.Background(), s.db, s.T())

Callers

nothing calls this directly

Calls 2

InitWatcherFunction · 0.92
NewSQLDatabaseFunction · 0.85

Tested by

no test coverage detected