| 228 | } |
| 229 | |
| 230 | type FakeAgentAPI struct { |
| 231 | sync.Mutex |
| 232 | t testing.TB |
| 233 | logger slog.Logger |
| 234 | |
| 235 | manifest *agentproto.Manifest |
| 236 | startupCh chan *agentproto.Startup |
| 237 | statsCh chan *agentproto.Stats |
| 238 | appHealthCh chan *agentproto.BatchUpdateAppHealthRequest |
| 239 | logsCh chan<- *agentproto.BatchCreateLogsRequest |
| 240 | lifecycleStates []codersdk.WorkspaceAgentLifecycle |
| 241 | metadata map[string]agentsdk.Metadata |
| 242 | timings []*agentproto.Timing |
| 243 | connectionReports []*agentproto.ReportConnectionRequest |
| 244 | subAgents map[uuid.UUID]*agentproto.SubAgent |
| 245 | subAgentDirs map[uuid.UUID]string |
| 246 | subAgentDisplayApps map[uuid.UUID][]agentproto.CreateSubAgentRequest_DisplayApp |
| 247 | subAgentApps map[uuid.UUID][]*agentproto.CreateSubAgentRequest_App |
| 248 | |
| 249 | getAnnouncementBannersFunc func() ([]codersdk.BannerConfig, error) |
| 250 | getResourcesMonitoringConfigurationFunc func() (*agentproto.GetResourcesMonitoringConfigurationResponse, error) |
| 251 | pushResourcesMonitoringUsageFunc func(*agentproto.PushResourcesMonitoringUsageRequest) (*agentproto.PushResourcesMonitoringUsageResponse, error) |
| 252 | } |
| 253 | |
| 254 | func (*FakeAgentAPI) UpdateAppStatus(context.Context, *agentproto.UpdateAppStatusRequest) (*agentproto.UpdateAppStatusResponse, error) { |
| 255 | panic("unimplemented") |
nothing calls this directly
no outgoing calls
no test coverage detected