File: disable-tests-assets.patch

package info (click to toggle)
rust-ratatui-image 8.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,388 kB
  • sloc: makefile: 4
file content (29 lines) | stat: -rw-r--r-- 964 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Description: disable tests that require test assets
 These tests depend on external image files that are not distributed
 with the package. Since the data is unnecessary for building or
 using the program, the tests are disabled
Author: Nadzeya Hutsko <nadzya.info@gmail.com>
Forwarded: not-needed
Last-Update: 2025-09-05
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -37,7 +37,7 @@
 //!     image: StatefulProtocol,
 //! }
 //!
-//! fn main() -> Result<(), Box<dyn std::error::Error>> {
+//! /* fn main() -> Result<(), Box<dyn std::error::Error>> {
 //!     let backend = TestBackend::new(80, 30);
 //!     let mut terminal = Terminal::new(backend)?;
 //!
@@ -58,7 +58,7 @@
 //!     // It is recommended to handle the encoding result
 //!     app.image.last_encoding_result().unwrap()?;
 //!     Ok(())
-//! }
+//! } */
 //!
 //! fn ui(f: &mut Frame<'_>, app: &mut App) {
 //!     // The image widget.