MCPcopy Index your code
hub / github.com/coder/coder / BoundarySession

Function BoundarySession

coderd/database/dbgen/dbgen.go:457–467  ·  view source on GitHub ↗
(t testing.TB, db database.Store, seed database.BoundarySession)

Source from the content-addressed store, hash-verified

455}
456
457func BoundarySession(t testing.TB, db database.Store, seed database.BoundarySession) database.BoundarySession {
458 session, err := db.InsertBoundarySession(genCtx, database.InsertBoundarySessionParams{
459 ID: takeFirst(seed.ID, uuid.New()),
460 WorkspaceAgentID: takeFirst(seed.WorkspaceAgentID, uuid.New()),
461 ConfinedProcessName: takeFirst(seed.ConfinedProcessName, "claude-code"),
462 StartedAt: takeFirst(seed.StartedAt, dbtime.Now()),
463 UpdatedAt: takeFirst(seed.UpdatedAt, dbtime.Now()),
464 })
465 require.NoError(t, err, "insert boundary session")
466 return session
467}
468
469func BoundaryLog(t testing.TB, db database.Store, seed database.BoundaryLog) database.BoundaryLog {
470 log, err := db.InsertBoundaryLog(genCtx, database.InsertBoundaryLogParams{

Callers

nothing calls this directly

Calls 4

NowFunction · 0.92
takeFirstFunction · 0.70
InsertBoundarySessionMethod · 0.65
NewMethod · 0.65

Tested by

no test coverage detected