in crates/core/src/file_group/log_file/log_block.rs [329:342]
fn test_invalid_rollback_block() {
assert!(matches!(
CommandBlock::from_str("1"),
Err(CoreError::LogFormatError(msg)) if msg.contains("Invalid command block type value: 1")
));
assert!(matches!(
CommandBlock::from_str("invalid"),
Err(CoreError::LogFormatError(msg)) if msg.contains("Failed to parse command block type")
));
assert!(matches!(
CommandBlock::from_str(""),
Err(CoreError::LogFormatError(msg)) if msg.contains("Failed to parse command block type")
));
}