fakeAppStatusUpdater implements the appStatusUpdater interface for testing.
| 117 | |
| 118 | // fakeAppStatusUpdater implements the appStatusUpdater interface for testing. |
| 119 | type fakeAppStatusUpdater struct { |
| 120 | t *testing.T |
| 121 | logger slog.Logger |
| 122 | agentToken string |
| 123 | |
| 124 | // Channels for controlling the behavior |
| 125 | updateStatusCalls chan *agentproto.UpdateAppStatusRequest |
| 126 | updateStatusErrors chan error |
| 127 | } |
| 128 | |
| 129 | func newFakeAppStatusUpdater(t *testing.T) *fakeAppStatusUpdater { |
| 130 | return &fakeAppStatusUpdater{ |
nothing calls this directly
no outgoing calls
no test coverage detected