This commit is contained in:
Jonathan Leibiusky @xetorthio
2017-05-23 19:29:36 -03:00
parent 911d56bc49
commit 3d96760a98
41 changed files with 1454 additions and 1329 deletions

17
pwd/tasks_mock_test.go Normal file
View 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)
}
}