File: interfaces.go

package info (click to toggle)
golang-github-juju-clock 1.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 176 kB
  • sloc: makefile: 18
file content (17 lines) | stat: -rw-r--r-- 355 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2022 Canonical Ltd.
// Licensed under the LGPLv3, see LICENCE file for details.

package testclock

import (
	"time"

	"github.com/juju/clock"
)

// AdvanceableClock is a clock that can be advanced to trigger timers/trigger timers earlier
// than they would otherwise.
type AdvanceableClock interface {
	clock.Clock
	Advance(time.Duration)
}