File: control

package info (click to toggle)
golang-github-bep-clock 0.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 92 kB
  • sloc: makefile: 2
file content (41 lines) | stat: -rw-r--r-- 1,628 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Source: golang-github-bep-clock
Section: golang
Priority: optional
Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org>
Uploaders: Anthony Fok <foka@debian.org>
Rules-Requires-Root: no
Build-Depends: debhelper-compat (= 13),
               dh-sequence-golang,
               golang-any,
               golang-github-frankban-quicktest-dev,
               golang-github-google-go-cmp-dev
Testsuite: autopkgtest-pkg-go
Standards-Version: 4.6.1
Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-bep-clock
Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-bep-clock.git
Homepage: https://github.com/bep/clock
XS-Go-Import-Path: github.com/bep/clock

Package: golang-github-bep-clock-dev
Architecture: all
Multi-Arch: foreign
Depends: golang-github-frankban-quicktest-dev,
         golang-github-google-go-cmp-dev,
         ${misc:Depends}
Description: Golang clock that allows you to set the start time (Go library)
 This package provides a *ticking clock* that allows you to set the start
 time. It also provides a system clock, both implementing this interface:
 .
   // Clock provides a subset of methods in time.Time
   type Clock interface {
       Now() time.Time
       Since(t time.Time) time.Duration
       Until(t time.Time) time.Duration
 .
       // Offset returns the offset of this clock relative to the system clock
       Offset() time.Duration
   }
 .
 Note that this only support a subset of all the methods in time.Time
 (see above) and is by design very simple. For a more advanced time mocking
 library, have a look at <https://github.com/benbjohnson/clock>.