testRunner()

new testRunner()

Loads the dependency _libraries and discordCrypt.

Loads the dependency _libraries and discordCrypt.

Members

private ENCRYPT_BLOCK_MODES :Array.<string>

Symmetric block modes of operation.

Symmetric block modes of operation.

private PADDING_SCHEMES :Array.<string>

Shorthand padding modes for block ciphers referred to in the code.

Shorthand padding modes for block ciphers referred to in the code.

Methods

addCipherTests(unit_tests, preferred_cipher, coverage)

Adds cipher based tests to the array specified.

Adds cipher based tests to the array specified.
Parameters:
Name Type Description
unit_tests Array An array of unit tests to run.
preferred_cipher string If specified, only the tests for this cipher is added.
coverage boolean If enabled, only a single test is run. For coverage generation only.

addDiffieHellmanTests(unit_tests, coverage)

Adds diffie hellman key exchange based tests to the array specified.

Adds diffie hellman key exchange based tests to the array specified.
Parameters:
Name Type Description
unit_tests Array An array of unit tests to run.
coverage boolean If enabled, only a single test is run. For coverage generation only.

addEncodingTests(unit_tests, coverage)

Adds full encryption encoding tests to the array specified.

Adds full encryption encoding tests to the array specified.
Parameters:
Name Type Description
unit_tests Array An array of unit tests to run.
coverage boolean If enabled, only a single test is run. For coverage generation only.

addEncryptedFileTests(unit_tests)

Adds general file uploading test to the Up1 service.

Adds general file uploading test to the Up1 service.
Parameters:
Name Type Description
unit_tests Array An array of unit tests to run.

addGenericTests(unit_tests)

Adds generic plugin tests not classified by other types.

Adds generic plugin tests not classified by other types.
Parameters:
Name Type Description
unit_tests Array An array of unit tests to run.

addHashTests(unit_tests, coverage)

Adds hash based tests to the array specified.

Adds hash based tests to the array specified.
Parameters:
Name Type Description
unit_tests Array An array of unit tests to run.
coverage boolean If enabled, only a single test is run. For coverage generation only.

addMetadataTests(unit_tests)

Adds metadata encoding and decoding tests.

Adds metadata encoding and decoding tests.
Parameters:
Name Type Description
unit_tests Array An array of unit tests to run.

addPluginBasedTests(unit_tests)

Adds general BetterDiscord based plugin tests.

Adds general BetterDiscord based plugin tests.
Parameters:
Name Type Description
unit_tests Array An array of unit tests to run.

addScryptTests(unit_tests, coverage)

Adds Scrypt() based tests to the array specified.

Adds Scrypt() based tests to the array specified.
Parameters:
Name Type Description
unit_tests Array An array of unit tests to run.
coverage boolean If enabled, only a single test is run. For coverage generation only.

run()

Runs tests based on command line parameters.

Runs tests based on command line parameters.