WIP
This commit is contained in:
17
pwd/tasks_mock_test.go
Normal file
17
pwd/tasks_mock_test.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package pwd
|
||||
|
||||
type mockTasks struct {
|
||||
schedule func(s *Session)
|
||||
unschedule func(s *Session)
|
||||
}
|
||||
|
||||
func (m *mockTasks) Schedule(s *Session) {
|
||||
if m.schedule != nil {
|
||||
m.schedule(s)
|
||||
}
|
||||
}
|
||||
func (m *mockTasks) Unschedule(s *Session) {
|
||||
if m.unschedule != nil {
|
||||
m.unschedule(s)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user