mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
Allow disabling image features
This commit is contained in:
@@ -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(
|
||||
@@ -65,6 +66,7 @@ fn qrcode_black_box1_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(
|
||||
@@ -86,6 +88,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(
|
||||
@@ -110,6 +113,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(
|
||||
@@ -130,6 +134,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(
|
||||
@@ -145,6 +150,7 @@ fn qrcode_black_box6_test_case() {
|
||||
tester.test_black_box();
|
||||
}
|
||||
|
||||
#[cfg(feature = "image-formats")]
|
||||
#[test]
|
||||
fn mqr_black_box_test_case() {
|
||||
let mut tester = common::AbstractBlackBoxTestCase::new(
|
||||
@@ -170,6 +176,7 @@ fn mqr_black_box_test_case() {
|
||||
* be a function of the barcode.
|
||||
*/
|
||||
|
||||
#[cfg(feature = "image-formats")]
|
||||
#[test]
|
||||
fn cpp_qrcode_black_box1_test_case() {
|
||||
let mut tester = common::AbstractBlackBoxTestCase::new(
|
||||
@@ -190,6 +197,7 @@ fn cpp_qrcode_black_box1_test_case() {
|
||||
* @author Sean Owen
|
||||
*/
|
||||
|
||||
#[cfg(feature = "image-formats")]
|
||||
#[test]
|
||||
fn cpp_qrcode_black_box2_test_case() {
|
||||
let mut tester = common::AbstractBlackBoxTestCase::new(
|
||||
@@ -218,6 +226,7 @@ fn cpp_qrcode_black_box2_test_case() {
|
||||
* @author dswitkin@google.com (Daniel Switkin)
|
||||
*/
|
||||
|
||||
#[cfg(feature = "image-formats")]
|
||||
#[test]
|
||||
fn cpp_qrcode_black_box3_test_case() {
|
||||
let mut tester = common::AbstractBlackBoxTestCase::new(
|
||||
@@ -240,6 +249,7 @@ fn cpp_qrcode_black_box3_test_case() {
|
||||
* @author dswitkin@google.com (Daniel Switkin)
|
||||
*/
|
||||
|
||||
#[cfg(feature = "image-formats")]
|
||||
#[test]
|
||||
fn cpp_qrcode_black_box4_test_case() {
|
||||
let mut tester = common::AbstractBlackBoxTestCase::new(
|
||||
@@ -264,6 +274,7 @@ fn cpp_qrcode_black_box4_test_case() {
|
||||
* @author dswitkin@google.com (Daniel Switkin)
|
||||
*/
|
||||
|
||||
#[cfg(feature = "image-formats")]
|
||||
#[test]
|
||||
fn cpp_qrcode_black_box5_test_case() {
|
||||
let mut tester = common::AbstractBlackBoxTestCase::new(
|
||||
@@ -284,6 +295,7 @@ fn cpp_qrcode_black_box5_test_case() {
|
||||
* rotation, which was a weak spot.
|
||||
*/
|
||||
|
||||
#[cfg(feature = "image-formats")]
|
||||
#[test]
|
||||
fn cpp_qrcode_black_box6_test_case() {
|
||||
let mut tester = common::AbstractBlackBoxTestCase::new(
|
||||
@@ -299,6 +311,7 @@ fn cpp_qrcode_black_box6_test_case() {
|
||||
tester.test_black_box();
|
||||
}
|
||||
|
||||
#[cfg(feature = "image-formats")]
|
||||
#[test]
|
||||
fn cpp_qrcode_black_box7_test_case() {
|
||||
let mut tester = common::MultiImageSpanAbstractBlackBoxTestCase::new(
|
||||
|
||||
Reference in New Issue
Block a user