malsyned / pfstest

Professional Firmware Services Unit Test Framework
Other
1 stars 0 forks source link

describe_as() #66

Open malsyned opened 4 years ago

malsyned commented 4 years ago

A combinator to allow wrapping a value with a printer that prints a hard-coded string.

Would be useful to make, for example:

Not called in order: buffer_contents with (the pointer <0x55d48e4986a0>)
Expected after: command_handler_stream with (the pointer <0x55d48e498660>)

print as

Not called in order: buffer_contents with (dummy_out_buf)
Expected after: command_handler_stream with (dummy_handler)