MCPcopy Create free account
hub / github.com/daniel-e/rustml / test_image_to_file

Function test_image_to_file

src/opencv/mod.rs:1048–1055  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1046
1047 #[test]
1048 fn test_image_to_file() {
1049
1050 let img = RgbImage::from_file("datasets/testing/tree.png").unwrap();
1051 assert!(img.to_file("/tmp/ab.jpg"));
1052 // the following test should fail because the directory does not
1053 // exist
1054 assert!(!img.to_file("datasets/nulldir/ab.jpg"));
1055 }
1056
1057 #[test]
1058 fn test_font() {

Callers

nothing calls this directly

Calls 1

from_fileFunction · 0.85

Tested by

no test coverage detected