aboutsummaryrefslogtreecommitdiff
path: root/pkg/service/main_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/service/main_test.go')
-rw-r--r--pkg/service/main_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/service/main_test.go b/pkg/service/main_test.go
index 5c10ecd..e1214dc 100644
--- a/pkg/service/main_test.go
+++ b/pkg/service/main_test.go
@@ -119,3 +119,11 @@ func (u *UserRepository) furtherID() uint {
u.icount++
return u.icount
}
+
+func (u *UserRepository) GetPathFromUserID(ctx context.Context, id uint) (string, error) {
+ if user, ok := u.users[id]; ok {
+ return user.Path, nil
+ }
+
+ return "", errors.New("Not Found")
+}