symforce.test_util.storage_ops_test_mixin module

class StorageOpsTestMixin[source]

Bases: object

Test helper for the StorageOps concept. Inherit a test case from this.

classmethod element()[source]

Overriden by child to provide an example non-identity element.

Return type:

Any

classmethod element_type()[source]

Returns the type of the StorageOps-compatible class being tested.

Return type:

Type

test_storage_ops()[source]

Tests:

  • storage_dim

  • to_storage

  • from_storage

Return type:

None