def get_coverage_from_cov_plugin(config) ->'CoverageData':
    """Get the coverage from pytest_cov plugin

    Args:
        config: pytest configuration object

    Raises:
        AssertionError: raised when coverage data object is empty

    Returns:
        CoverageData: test coverage from this test run
    """
    cov_plugin = config.pluginmanager.getplugin('_cov')
    cov_data = cov_plugin.cov_controller.cov.get_data()
    assert cov_data, 'CoverageData is loaded'
    return cov_data
