github.com/cloud-green/juju@v0.0.0-20151002100041-a00291338d3d/state/presence/export_test.go (about)

     1  // Copyright 2012, 2013 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package presence
     5  
     6  func FakeTimeSlot(offset int) {
     7  	fakeTimeSlot(offset)
     8  }
     9  
    10  func RealTimeSlot() {
    11  	realTimeSlot()
    12  }
    13  
    14  func FakePeriod(seconds int64) {
    15  	period = seconds
    16  }
    17  
    18  var realPeriod = period
    19  
    20  func RealPeriod() {
    21  	period = realPeriod
    22  }
    23  
    24  func FindAllBeings(w *Watcher) (map[int64]beingInfo, error) {
    25  	return w.findAllBeings()
    26  }