test_simpleStorageUnit

test_simpleStorageUnit.test_data_removal(baudRate, initialData, storageCapacity, expectedStorage)[source]

Tests:

  1. 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:

  1. Whether the partitionedStorageUnit can add data using the setDataBuffer method;

  2. 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:

  1. Whether the simpleStorageUnit can add multiple nodes (core base class

    functionality);

  2. That the simpleStorageUnit correctly evaluates how much stored data it should

    have given a pair of input messages.

test_simpleStorageUnit.test_storage_python_inputs_accept_scientific_notation()[source]

Verify that the legacy float input supported by the typemaps remains available.

test_simpleStorageUnit.test_storage_python_inputs_validate_int64_range(invalid_value)[source]

Verify that storage interfaces reject Python integers outside the C++ range.