|
Ran
|
Jobs
1
|
Files
123
|
Run time
1min
|
Badge
README BADGES
|
push
github
Merge rust-bitcoin/rust-bitcoin#4061: Make Debug representation of Witness to be slice of hex-encoded bytes strings to improve readability <a class=hub.com/rust-bitcoin/rust-bitcoin/commit/<a class="double-link" href="https://git"><a class=hub.com/rust-bitcoin/rust-bitcoin/commit/<a class="double-link" href="https://git"><a class=hub.com/rust-bitcoin/rust-bitcoin/commit/8d8edd2c77de9b0423533fc70802171803761fcd">8d8edd2c7 make Debug representation of Witness to be slice of hex-encoded bytes strings (Erick Cestari) Pull request description: This PR updates the Debug implementation for the Witness type to improve its readability by displaying the witness data as a slice of hex-encoded strings rather than a concatenated blob or list of raw u8 values. The changes include: - Improved Output: The debug output now shows pseudo-fields such as the number of elements and the total length of all elements, making it easier to understand the underlying data without exposing internal indices like indices_start. - Hex-Encoding: Each witness element is displayed as a hex-encoded string, similar to Bitcoin Core's output style, which enhances clarity during debugging sessions. These changes should provide a more developer-friendly view of the witness data and align with similar patterns used elsewhere in the ecosystem. Closes #4023. Example display: ``` Witness { num_elements: 3, total_bytes: 5, elements: [ 0b, 1516, 1f20, ], } ``` ``` Witness { num_elements: 3, total_bytes: 5, elements: [0b, 1516, 1f20] } ``` ACKs for top commit: tcharding: ACK 8d8edd2c77de9b0423533fc70802171803761fcd Kixunil: ACK 8d8edd2c77de9b0423533fc70802171803761fcd apoelstra: ACK 8d8edd2c77de9b0423533fc70802171803761fcd; successfully ran local tests Tree-SHA512: ffcdf6754552eec8e932c39af903d645456
10 of 10 new or added lines in 1 file covered. (100.0%)
21179 of 25614 relevant lines covered (82.69%)
17032.93 hits per line
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 13380088512.1 | 123 |
82.69 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|