lnd.xprv/invoices
Andras Banki-Horvath 7024f36a76 general: adding the Clock interface to aid testing
This commit adds Clock and DefaultClock and moves the private
invoices.testClock under the clock package while adding basic
unit tests for it.
Clock is an interface currently encapsulating Now() and TickAfter().
It can be added as an external dependency to any class. This way
tests can stub out time.Now() or time.After().

The DefaultClock class simply returns the real time.Now() and
time.After().
2019-12-13 16:52:22 +01:00
..
interface.go record: move CustomRecordSet 2019-12-12 00:12:19 +01:00
invoiceregistry_test.go general: adding the Clock interface to aid testing 2019-12-13 16:52:22 +01:00
invoiceregistry.go general: adding the Clock interface to aid testing 2019-12-13 16:52:22 +01:00
log.go invoices: create package 2019-01-07 23:04:05 +01:00
test_utils_test.go general: adding the Clock interface to aid testing 2019-12-13 16:52:22 +01:00
update.go record: move CustomRecordSet 2019-12-12 00:12:19 +01:00