MCPcopy Create free account
hub / github.com/Facets-cloud/flow / stubNewUUID

Function stubNewUUID

internal/app/do_test.go:34–39  ·  view source on GitHub ↗

stubNewUUID pins claude.NewUUID to a fixed value for the duration of the test.

(t *testing.T, sid string)

Source from the content-addressed store, hash-verified

32
33// stubNewUUID pins claude.NewUUID to a fixed value for the duration
34// of the test.
35func 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
42func stubCodexProbe(t *testing.T, sid string) {

Calls

no outgoing calls

Tested by

no test coverage detected