roughlySameTime decides if t1 and t2 are close enough.
(t1, t2 time.Time)
| 45 | |
| 46 | // roughlySameTime decides if t1 and t2 are close enough. |
| 47 | func roughlySameTime(t1, t2 time.Time) bool { |
| 48 | // return true if the difference is smaller than 1 sec. |
| 49 | return math.Abs(float64(t1.Sub(t2))) < float64(time.Second) |
| 50 | } |
| 51 | |
| 52 | func testEverything(ta TestAccessor, t *testing.T) { |
| 53 | testInsertCertificateAndGetCertificate(ta, t) |
no outgoing calls
no test coverage detected
searching dependent graphs…