refactor(tests): move TxTemplate from chain to testenv#2177
Conversation
oleonardolima
left a comment
There was a problem hiding this comment.
cACK a5d9f41
You can rebase to get the latest toolchain updated CI. Overall looks good, I only would like to take a deeper look into the last commit.
Also, I'd avoid mixing renaming and moving code in the same commits. |
a5d9f41 to
6d5cac1
Compare
|
@tvpeter Oh, there are some conflicts 😅 |
Yeah, from the recent merge. I will rebase and resolve |
e381444 to
49ba5a5
Compare
49ba5a5 to
067245e
Compare
|
@tvpeter I've rebased it on top of master to solve the conflicts, let me know if it's all good or I've messed something. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2177 +/- ##
=======================================
Coverage 78.65% 78.65%
=======================================
Files 30 30
Lines 5909 5909
Branches 279 279
=======================================
Hits 4648 4648
Misses 1185 1185
Partials 76 76
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
At a glance, it looks just fine. Thank you. |
|
Remember that PR descriptions need to explain why things are done.
What is the rationale for this? Edit: I see that it is my suggestion in the ticket. I was wrong. |
Alright, should I revert the aspect that updates the |
067245e to
2ff943a
Compare
- Move the tx template helpers (TxTemplate, TxInTemplate,TxOutTemplate, init_graph) out of crates/chain/tests/common into the testenv.
2ff943a to
5ee920d
Compare
Move shared test/bench helpers into testenv utils. Update benches and the affected tests to use them
5ee920d to
ee76753
Compare
Description
This PR moves the
TxTemplatefrom thechaincrate into thetestenv. It also updates theTxTemplateto use theCowsmart pointer, adds method implementations toTxTemplate, and migrates tests to the builder API.This PR addresses the first and second todos on #1936.
Changelog notice
TxTemplatefrom chain to testenvChecklists
All Submissions: