test_simpleStorageUnit
- test_simpleStorageUnit.test_data_removal(baudRate, initialData, storageCapacity, expectedStorage)[source]
Tests:
Whether removing data from the simpleStorageUnit works correctly;
- test_simpleStorageUnit.test_integrated_data_delta_range_check(storage_unit_type, baud_rate)[source]
Verify that non-representable integrated data changes stop the simulation.
- test_simpleStorageUnit.test_integrated_data_rejects_int64_overflow(storage_unit_type)[source]
Verify that integrated data cannot wrap past the signed 64-bit limit.
- test_simpleStorageUnit.test_multiple_data_nodes_respect_storage_capacity()[source]
Verify each data node checks capacity against the current storage level.
- test_simpleStorageUnit.test_set_data_buffer(baudRate_1, baudRate_2, add_data, storageCapacity, expectedStorage)[source]
Tests:
Whether the partitionedStorageUnit can add data using the setDataBuffer method;
- That the partitionedStorageUnit correctly evaluates how much stored data it
should have given a pair of input messages and using setDataBuffer.
- Returns:
- test_simpleStorageUnit.test_set_data_buffer_rejects_int64_overflow()[source]
Verify that a capacity check rejects an addition before signed overflow.
- test_simpleStorageUnit.test_storage_limits(baudRate_1, baudRate_2, storageCapacity, expectedStorage)[source]
Tests:
- Whether the simpleStorageUnit can add multiple nodes (core base class
functionality);
- That the simpleStorageUnit correctly evaluates how much stored data it should
have given a pair of input messages.