Total Lines | 12 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | package tests |
||
2 | |||
3 | import "time" |
||
4 | |||
5 | // test helper |
||
6 | func smallSubTime(d time.Duration) string { |
||
7 | 1 | return time.Now().Add(d).Format("2006-01-02 15:04:05") |
|
8 | } |
||
9 | |||
10 | // test helper |
||
11 | func bigSubTime(years int, months int, days int) string { |
||
12 | 1 | return time.Now().AddDate(-years, -months, -days).Format("2006-01-02 15:04:05") |
|
13 | } |
||
14 |