Function loggy::assert_log [] [src]

pub fn assert_log(expected: &str)

Assert that the collected log messages are as expected.

This clears the log buffer following the comparison.

This is meant to be used in tests using the test_loggy! macro. Tests using this macro expect the log buffer being clear at the end of the test, either by using this function or clear_log.