Home Reference Source
public class | source

TestsHelper

You can directly use an instance of this class. testsHelper

Method Summary

Public Methods
public

backCartesianProduct(k: *, maxLength: *, product: *, radixTestingArray: *, result: *)

public

backPermutations(k: *, n: *, radixTestingArray: *, used: *, ind: *, result: *)

public

generateAddresses(count: *, onlyAddress: boolean): *

public

makeCartesianProduct(radixTestingArray: *, maxLength: *): *

public

makeDigitId(count: *, isNonDecimal: *, negative: boolean): *

public

makeId(count: *, randomLengths: *, textPossible: string): *

public

makeIdHex(count: *, randomLengths: *): *

public

makeIds(count: *, wordCount: *, randomLengths: *): *

public

makePermutations(radixTestingArray: *): *

public

makeRandomNumber(biggestNumber: *, negative: boolean): *

public

makeRandomNumbersArray(count: *, negative: boolean): *

public

makeSetIdAndNumber(count: *, floor: *, biggestNumber: *, wordCount: *, randomLengths: *): *

public

makeSetVariableIdAndNumber(count: *, floor: *, biggestNumber: *, wordCount: *): *

Public Methods

public backCartesianProduct(k: *, maxLength: *, product: *, radixTestingArray: *, result: *) source

Params:

NameTypeAttributeDescription
k *
maxLength *
product *
radixTestingArray *
result *

public backPermutations(k: *, n: *, radixTestingArray: *, used: *, ind: *, result: *) source

Params:

NameTypeAttributeDescription
k *
n *
radixTestingArray *
used *
ind *
result *

public generateAddresses(count: *, onlyAddress: boolean): * source

Params:

NameTypeAttributeDescription
count *
onlyAddress boolean
  • optional
  • default: true

Return:

*

public makeCartesianProduct(radixTestingArray: *, maxLength: *): * source

Params:

NameTypeAttributeDescription
radixTestingArray *
maxLength *

Return:

*

public makeDigitId(count: *, isNonDecimal: *, negative: boolean): * source

Params:

NameTypeAttributeDescription
count *
isNonDecimal *
negative boolean
  • optional
  • default: false

Return:

*

public makeId(count: *, randomLengths: *, textPossible: string): * source

Params:

NameTypeAttributeDescription
count *
randomLengths *
textPossible string
  • optional
  • default: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789

Return:

*

public makeIdHex(count: *, randomLengths: *): * source

Params:

NameTypeAttributeDescription
count *
randomLengths *

Return:

*

public makeIds(count: *, wordCount: *, randomLengths: *): * source

Params:

NameTypeAttributeDescription
count *
wordCount *
randomLengths *

Return:

*

public makePermutations(radixTestingArray: *): * source

Params:

NameTypeAttributeDescription
radixTestingArray *

Return:

*

public makeRandomNumber(biggestNumber: *, negative: boolean): * source

Params:

NameTypeAttributeDescription
biggestNumber *
negative boolean
  • optional
  • default: false

Return:

*

public makeRandomNumbersArray(count: *, negative: boolean): * source

Params:

NameTypeAttributeDescription
count *
negative boolean
  • optional
  • default: false

Return:

*

public makeSetIdAndNumber(count: *, floor: *, biggestNumber: *, wordCount: *, randomLengths: *): * source

Params:

NameTypeAttributeDescription
count *
floor *
biggestNumber *
wordCount *
randomLengths *

Return:

*

public makeSetVariableIdAndNumber(count: *, floor: *, biggestNumber: *, wordCount: *): * source

Params:

NameTypeAttributeDescription
count *
floor *
biggestNumber *
wordCount *

Return:

*