MCPcopy Create free account
hub / github.com/coder/coder / fakeEnvInfoer

Struct fakeEnvInfoer

agent/agentssh/agentssh_test.go:123–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123type fakeEnvInfoer struct {
124 CurrentUserFn func() (*user.User, error)
125 EnvironFn func() []string
126 UserHomeDirFn func() (string, error)
127 UserShellFn func(string) (string, error)
128}
129
130func (f *fakeEnvInfoer) User() (u *user.User, err error) {
131 return f.CurrentUserFn()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected