Crate osom_lib_test_macros

Source
Expand description

Holds macros for osom projects. These macros should be used in tests only.

Modules§

models
traits

Macros§

assert_eq_hex
Compares two operands by equality. If operands are not equal panics and prints both operands as hex arrays.
assert_neq_hex
Compares two operands by equality. If operands are equal panics and prints a single operand as hex array.
convert_to_fn
Transforms pointerable into a function pointer.
convert_to_fn_with_offset
Transforms pointerable into a function pointer.