Allow disabling image features

This commit is contained in:
Sam Wilson
2024-01-11 12:38:01 -05:00
parent 7cb00fafd1
commit 169f2f6073
33 changed files with 154 additions and 6 deletions

View File

@@ -23,6 +23,7 @@ mod common;
* @author Sean Owen
*/
#[cfg(feature = "image-formats")]
#[test]
fn qrcode_black_box1_test_case() {
let mut tester = common::AbstractBlackBoxTestCase::new(
@@ -43,6 +44,7 @@ fn qrcode_black_box1_test_case() {
* @author Sean Owen
*/
#[cfg(feature = "image-formats")]
#[test]
fn qrcode_black_box2_test_case() {
let mut tester = common::AbstractBlackBoxTestCase::new(
@@ -63,6 +65,7 @@ fn qrcode_black_box2_test_case() {
* @author dswitkin@google.com (Daniel Switkin)
*/
#[cfg(feature = "image-formats")]
#[test]
fn qrcode_black_box3_test_case() {
let mut tester = common::AbstractBlackBoxTestCase::new(
@@ -84,6 +87,7 @@ fn qrcode_black_box3_test_case() {
* @author dswitkin@google.com (Daniel Switkin)
*/
#[cfg(feature = "image-formats")]
#[test]
fn qrcode_black_box4_test_case() {
let mut tester = common::AbstractBlackBoxTestCase::new(
@@ -108,6 +112,7 @@ fn qrcode_black_box4_test_case() {
* @author dswitkin@google.com (Daniel Switkin)
*/
#[cfg(feature = "image-formats")]
#[test]
fn qrcode_black_box5_test_case() {
let mut tester = common::AbstractBlackBoxTestCase::new(
@@ -128,6 +133,7 @@ fn qrcode_black_box5_test_case() {
* rotation, which was a weak spot.
*/
#[cfg(feature = "image-formats")]
#[test]
fn qrcode_black_box6_test_case() {
let mut tester = common::AbstractBlackBoxTestCase::new(