MCPcopy Create free account
hub / github.com/daodst/chat / currentUser

Function currentUser

test/db.go:88–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86}
87
88func currentUser() string {
89 user, err := user.Current()
90 if err != nil {
91 if !Quiet {
92 fmt.Println("cannot get current user: ", err)
93 }
94 os.Exit(2)
95 }
96 return user.Username
97}
98
99// Prepare a sqlite or postgres connection string for testing.
100// Returns the connection string to use and a close function which must be called when the test finishes.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected