mocked_events_test.go 537 B

123456789101112131415161718192021
  1. // Copyright (C) 2016 The Syncthing Authors.
  2. //
  3. // This Source Code Form is subject to the terms of the Mozilla Public
  4. // License, v. 2.0. If a copy of the MPL was not distributed with this file,
  5. // You can obtain one at https://mozilla.org/MPL/2.0/.
  6. package api
  7. import (
  8. "time"
  9. "github.com/syncthing/syncthing/lib/events"
  10. )
  11. type mockedEventSub struct{}
  12. func (s *mockedEventSub) Since(id int, into []events.Event, timeout time.Duration) []events.Event {
  13. select {}
  14. }
  15. func (s *mockedEventSub) Mask() events.EventType { return 0 }