MCPcopy Index your code
hub / github.com/coder/coder / sshConfigFileName

Function sshConfigFileName

cli/configssh_test.go:31–39  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

29)
30
31func sshConfigFileName(t *testing.T) (sshConfig string) {
32 t.Helper()
33 tmpdir := t.TempDir()
34 dotssh := filepath.Join(tmpdir, ".ssh")
35 err := os.Mkdir(dotssh, 0o700)
36 require.NoError(t, err)
37 n := filepath.Join(dotssh, "config")
38 return n
39}
40
41func sshConfigFileCreate(t *testing.T, name string, data io.Reader) {
42 t.Helper()

Calls 2

HelperMethod · 0.65
TempDirMethod · 0.65

Tested by

no test coverage detected