MCPcopy Create free account
hub / github.com/supabase/auth / runUntilErrorStr

Function runUntilErrorStr

internal/reloader/reloader_test.go:749–757  ·  view source on GitHub ↗
(t testing.TB, exp string, fn func() string)

Source from the content-addressed store, hash-verified

747}
748
749func runUntilErrorStr(t testing.TB, exp string, fn func() string) {
750 var got string
751 for range 100 {
752 if got = fn(); got == exp {
753 break
754 }
755 }
756 require.Equal(t, exp, got)
757}
758
759func helpTestDir(t testing.TB) (dir string, cleanup func()) {
760 name := fmt.Sprintf("%v_%v", t.Name(), time.Now().Nanosecond())

Callers 1

TestWatchNotifyFunction · 0.85

Calls 1

EqualMethod · 0.80

Tested by

no test coverage detected