user avatar
refactor pkg/time (#2570)
STRRL authored
* refactor: new interface FakeClock
Signed-off-by: default avatarSTRRL <str_ruiling@outlook.com>

* chore: add description about testcases;
Signed-off-by: default avatarSTRRL <str_ruiling@outlook.com>

* refactor: the initialization for fakeimage
Signed-off-by: default avatarSTRRL <str_ruiling@outlook.com>

* chore: fix license-checker
Signed-off-by: default avatarSTRRL <str_ruiling@outlook.com>

* chore: rename FakeClock to FakeClockInjector
Signed-off-by: default avatarSTRRL <str_ruiling@outlook.com>

* refactor: use LoadFakeImageFromEmbedFs instead of global var
Signed-off-by: default avatarSTRRL <str_ruiling@outlook.com>

* chore: replace magic values with const
Signed-off-by: default avatarSTRRL <str_ruiling@outlook.com>

* chore: error wrapping
Signed-off-by: default avatarSTRRL <str_ruiling@outlook.com>

* chore: appending comments
Signed-off-by: default avatarSTRRL <str_ruiling@outlook.com>
Co-authored-by: default avatarTi Chi Robot <ti-community-prow-bot@tidb.io>
58702d5a
Name Last commit Last update