feat: authsession service
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package testkit
|
||||
|
||||
import "time"
|
||||
|
||||
// FixedClock is a deterministic Clock double that always returns the same
|
||||
// instant.
|
||||
type FixedClock struct {
|
||||
// Time is the instant returned by Now.
|
||||
Time time.Time
|
||||
}
|
||||
|
||||
// Now returns the configured instant.
|
||||
func (c FixedClock) Now() time.Time {
|
||||
return c.Time
|
||||
}
|
||||
Reference in New Issue
Block a user