MCPcopy Index your code
hub / github.com/supabase/auth / helpWriteEnvFile

Function helpWriteEnvFile

internal/reloader/reloader_test.go:783–798  ·  view source on GitHub ↗
(t testing.TB, dir, name string, values map[string]string)

Source from the content-addressed store, hash-verified

781}
782
783func helpWriteEnvFile(t testing.TB, dir, name string, values map[string]string) string {
784 var buf bytes.Buffer
785 for k, v := range values {
786 buf.WriteString(k)
787 buf.WriteString("=")
788 buf.WriteString(`"`)
789 buf.WriteString(v)
790 buf.WriteString(`"`)
791 buf.WriteString("\n")
792 }
793
794 dst := filepath.Join(dir, name)
795 err := os.WriteFile(dst, buf.Bytes(), 0600)
796 require.Nil(t, err)
797 return dst
798}
799
800func mockReloadRecorder() *reloadRecorder {
801 rr := &reloadRecorder{

Callers 3

TestWatchNotifyFunction · 0.85
TestReloadConfigFunction · 0.85
TestPollerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…