(t testing.TB, db database.Store, seed database.BoundarySession)
| 455 | } |
| 456 | |
| 457 | func 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 | |
| 469 | func BoundaryLog(t testing.TB, db database.Store, seed database.BoundaryLog) database.BoundaryLog { |
| 470 | log, err := db.InsertBoundaryLog(genCtx, database.InsertBoundaryLogParams{ |
nothing calls this directly
no test coverage detected