(baseScope string, followExternalSymlinks bool, id interface{})
| 276 | } |
| 277 | |
| 278 | func (cu *customFSUser) Get(baseScope string, followExternalSymlinks bool, id interface{}) (*users.User, error) { |
| 279 | user, err := cu.Store.Get(baseScope, followExternalSymlinks, id) |
| 280 | if err != nil { |
| 281 | return nil, err |
| 282 | } |
| 283 | // Inject a filesystem rooted at the test's temp scope, standing in for the |
| 284 | // one users.User.Clean would build in production. |
| 285 | if cu.followExternal { |
| 286 | user.Fs = cu.fs |
| 287 | } else { |
| 288 | user.Fs = files.NewScopedFs(cu.fs, "/") |
| 289 | } |
| 290 | |
| 291 | return user, nil |
| 292 | } |
nothing calls this directly
no test coverage detected