feat:#6 added tests with db for unused feed delete

This commit is contained in:
masterElmar
2023-11-21 01:48:09 +01:00
parent 66585b743e
commit f72610f2f9
11 changed files with 178 additions and 37 deletions

View File

@@ -0,0 +1,10 @@
package time
import "time"
type MockClock struct {
NowTime time.Time
}
func (m MockClock) Now() time.Time { return m.NowTime }
func (MockClock) After(d time.Duration) <-chan time.Time { return time.After(d) }

View File

@@ -0,0 +1,8 @@
package time
import "time"
type RealClock struct{}
func (RealClock) Now() time.Time { return time.Now() }
func (RealClock) After(d time.Duration) <-chan time.Time { return time.After(d) }

View File

@@ -0,0 +1,8 @@
package time
import "time"
type Clock interface {
Now() time.Time
After(d time.Duration) <-chan time.Time
}