def METHOD_NAME(self) -> None:
    """Test negative case. Only lists are allowed. Otherwise, a RuntimeError will be raised."""
    assert isinstance(self.formatter, SarifFormatter)
    with pytest.raises(RuntimeError):
        self.formatter.format_result(self.matches[0])  # type: ignore[arg-type]