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

Function helpCopyEnvFile

internal/reloader/reloader_test.go:769–781  ·  view source on GitHub ↗
(t testing.TB, dir, name, src string)

Source from the content-addressed store, hash-verified

767}
768
769func helpCopyEnvFile(t testing.TB, dir, name, src string) string {
770 data, err := os.ReadFile(src) // #nosec G304
771 if err != nil {
772 require.Nil(t, err)
773 }
774
775 dst := filepath.Join(dir, name)
776 err = os.WriteFile(dst, data, 0600) // #nosec G703 -- Test helper; dir and name are controlled by the test.
777 if err != nil {
778 require.Nil(t, err)
779 }
780 return dst
781}
782
783func helpWriteEnvFile(t testing.TB, dir, name string, values map[string]string) string {
784 var buf bytes.Buffer

Callers 2

TestWatchNotifyFunction · 0.85
TestReloadConfigFunction · 0.85

Calls 1

ReadFileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…