Debian Codegraph @

debian/control

raw
1 Source: golang-github-bep-clocks
2 Section: golang
3 Priority: optional
4 Maintainer: Debian Go Packaging Team <[email protected]>
5 Uploaders: Anthony Fok <[email protected]>
6 Rules-Requires-Root: no
7 Build-Depends: debhelper-compat (= 13),
8 dh-sequence-golang,
9 golang-any (>= 2:1.18~),
10 golang-github-frankban-quicktest-dev (>= 1.14.2),
11 golang-github-google-go-cmp-dev (>= 0.5.7)
12 Testsuite: autopkgtest-pkg-go
13 Standards-Version: 4.6.2
14 Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-bep-clocks
15 Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-bep-clocks.git
16 Homepage: https://github.com/bep/clocks
17 XS-Go-Import-Path: github.com/bep/clocks
18
19 Package: golang-github-bep-clocks-dev
20 Architecture: all
21 Multi-Arch: foreign
22 Depends: ${misc:Depends}
23 Description: Golang clock that allows you to set the start time (Go library)
24 This package provides a *ticking clock* that allows you to set the start
25 time. It also provides a system clock, both implementing this interface:
26 .
27 // Clock provides a subset of methods in time.Time
28 type Clock interface {
29 Now() time.Time
30 Since(t time.Time) time.Duration
31 Until(t time.Time) time.Duration
32 .
33 // Offset returns the offset of this clock relative to the system clock
34 Offset() time.Duration
35 }
36 .
37 Note that this only support a subset of all the methods in time.Time
38 (see above) and is by design very simple. For a more advanced time mocking
39 library, have a look at <https://github.com/benbjohnson/clock>.