This website requires JavaScript.
Explore
Help
Sign In
akovalenko
/
lnd.xprv
Watch
1
Star
0
Fork
0
You've already forked lnd.xprv
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
6aa37066b2
lnd.xprv
/
lntest
/
itest
/
lnd_test_list_off_test.go
6 lines
68 B
Go
Raw
Normal View
History
Unescape
Escape
lntest: allow the main test files to be buildable w/o the rpctest build tag In this commit, we modify our build tag set up to allow the main test files to be buildable w/o the current rpctest tag. We do this so that those of us that use extensions which will compile live files like vim-go can once again fix compile errors as we go in our editors. In order to do this, we now make an external `testsCases` variable, and have two variants: one that's empty (no build tag), and one that's fully populated with all our tests (build tag active). As a result, the main file will now always build regardless of if the build tag is active or not, but we'll only actually execute tests if the `testCases` variable has been populated. As sample run w/ the tag off: ``` === RUN TestLightningNetworkDaemon --- PASS: TestLightningNetworkDaemon (0.00s) PASS ok github.com/lightningnetwork/lnd/lntest/itest 0.051s ```
2020-01-10 17:27:48 +03:00
// +build !rpctest
package
itest
itest: split tests into dynamic tranches
2020-11-04 13:03:29 +03:00
var
allTestCases
=
[
]
*
testCase
{
}
Reference in New Issue
Copy Permalink