HISE Docs

NetworkTest

The NetworkTest can be used for testing ScriptNode networks, mainly intended for internal usage.

Class methods

addRuntimeFunction

Sets a function that will be executed at the given time to simulate live user input.

NetworkTest.addRuntimeFunction(var f, int timestamp)



checkCompileHashCodes

Checks whether the hash code of all compiled nodes match their network file.

NetworkTest.checkCompileHashCodes()



createAsciiDiff

Creates a ASCII diff with 'X' as error when the datas don't match.

NetworkTest.createAsciiDiff(var data1, var data2, int numLines)



createBufferContentAsAsciiArt

Creates a string that vaguely represents the buffer data content.

NetworkTest.createBufferContentAsAsciiArt(var buffer, int numLines)



dumpNetworkAsXml

Creates a XML representation of the current network.

NetworkTest.dumpNetworkAsXml()



expectEquals

Compares the two data types and returns a error message if they don't match.

NetworkTest.expectEquals(var data1, var data2, float errorDb)



getDllInfo

Returns an object containing the information about the project dll.

NetworkTest.getDllInfo()



getLastTestException

Returns the exception that was caused by the last test run (or empty if fine).

NetworkTest.getLastTestException()



getListOfAllCompileableNodes

Returns the list of all nodes that can be compiled.

NetworkTest.getListOfAllCompileableNodes()



getListOfCompiledNodes

Returns the list of all compiled nodes.

NetworkTest.getListOfCompiledNodes()



runTest

runs the test and returns the buffer.

NetworkTest.runTest()



setProcessSpecs

Set the processing specifications for the test run.

NetworkTest.setProcessSpecs(int numChannels, double sampleRate, int blockSize)



setTestProperty

Sets a test property.

NetworkTest.setTestProperty(String id, var value)



setWaitingTime

Sets a time to wait between calling prepare and processing the data.

NetworkTest.setWaitingTime(int timeToWaitMs)