()
| 86 | } |
| 87 | |
| 88 | func 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. |
no outgoing calls
no test coverage detected