stubNewUUID pins claude.NewUUID to a fixed value for the duration of the test.
(t *testing.T, sid string)
| 32 | |
| 33 | // stubNewUUID pins claude.NewUUID to a fixed value for the duration |
| 34 | // of the test. |
| 35 | func stubNewUUID(t *testing.T, sid string) { |
| 36 | t.Helper() |
| 37 | old := claude.NewUUID |
| 38 | claude.NewUUID = func() (string, error) { return sid, nil } |
| 39 | t.Cleanup(func() { claude.NewUUID = old }) |
| 40 | } |
| 41 | |
| 42 | func stubCodexProbe(t *testing.T, sid string) { |
no outgoing calls
no test coverage detected