docs: reorder & testing
This commit is contained in:
@@ -119,15 +119,17 @@ func equalStrings(a, b []string) bool {
|
||||
// orderTracker spies on a single call kind and pushes its name into
|
||||
// the ordered slice when invoked. It satisfies user.SessionRevoker.
|
||||
type orderTracker struct {
|
||||
name string
|
||||
calls int
|
||||
lastUser uuid.UUID
|
||||
appendTo func(string)
|
||||
name string
|
||||
calls int
|
||||
lastUser uuid.UUID
|
||||
lastActor user.SessionRevokeActor
|
||||
appendTo func(string)
|
||||
}
|
||||
|
||||
func (r *orderTracker) RevokeAllForUser(_ context.Context, userID uuid.UUID) error {
|
||||
func (r *orderTracker) RevokeAllForUser(_ context.Context, userID uuid.UUID, actor user.SessionRevokeActor) error {
|
||||
r.calls++
|
||||
r.lastUser = userID
|
||||
r.lastActor = actor
|
||||
if r.appendTo != nil && r.name != "" {
|
||||
r.appendTo(r.name)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user