Documentation

MaskPatternTest extends TestCase
in package

FinalYes
Tags
see
https://github.com/zxing/zxing/blob/f4f3c2971dc794346d8b6e14752200008cb90716/core/src/test/java/com/google/zxing/qrcode/encoder/MaskUtilTestCase.java

Table of Contents

Methods

maskPatternProvider()  : array<string|int, mixed>
testInvalidMaskPatternException()  : void
Tests if an exception is thrown on an incorrect mask pattern
testMask()  : void
Tests if the mask function generates the correct pattern
testPenaltyRule1()  : void
testPenaltyRule2()  : void
testPenaltyRule3()  : void
testPenaltyRule4()  : void
assertMask()  : bool

Methods

maskPatternProvider()

public static maskPatternProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>

testInvalidMaskPatternException()

Tests if an exception is thrown on an incorrect mask pattern

public testInvalidMaskPatternException() : void

testMask()

Tests if the mask function generates the correct pattern

public testMask(int $pattern, array<string|int, mixed> $expected) : void
Parameters
$pattern : int
$expected : array<string|int, mixed>
Attributes
#[DataProvider]
'maskPatternProvider'

assertMask()

private assertMask(Closure $mask, array<string|int, mixed> $expected) : bool
Parameters
$mask : Closure
$expected : array<string|int, mixed>
Return values
bool

        
On this page

Search results