lnmock: add new package lnmock to host mocks

This commit introduces a new package to host mocked objects that can be
used for all the unit tests.
This commit is contained in:
yyforyongyu committed 2023-01-12 22:08:02 +08:00
1 parent 31a40abd91
commit 5e6f10c9b8
2 files changed
+37

No files matched your search

+7
View File
@@ -238,3 +238,10 @@ issues:
- govet
# itest case can be very long so we disable long function check.
- funlen
- path: lnmock/*
linters:
# forcetypeassert is skipped for the mock because the test would fail
# if the returned value doesn't match the type, so there's no need to
# check the convert.
- forcetypeassert