diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 881e182b2..69361b7ef 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -65,7 +65,7 @@ jobs: if: matrix.os == env.GH_COV_OS && github.actor != env.GH_DEPENDABOT run: | cd ${{ env.OTIO_BUILD_DIR }} - lcov --capture -b . --directory . --output-file=coverage.info -q + lcov --capture -b . --directory . --output-file=coverage.info -q --ignore-errors mismatch cat coverage.info | sed "s/SF:.*src/SF:src/g" > coverage.filtered.info lcov --remove coverage.filtered.info '*/usr/*' --output-file=coverage.filtered.info -q lcov --remove coverage.filtered.info '*/deps/*' --output-file=coverage.filtered.info -q diff --git a/Makefile b/Makefile index 3953557ec..6bbe0f0d0 100644 --- a/Makefile +++ b/Makefile @@ -93,7 +93,8 @@ ifndef OTIO_CXX_BUILD_TMP_DIR not be found.) endif lcov --rc lcov_branch_coverage=1 --capture -b . --directory ${OTIO_CXX_BUILD_TMP_DIR} \ - --output-file=${OTIO_CXX_BUILD_TMP_DIR}/coverage.info -q + --output-file=${OTIO_CXX_BUILD_TMP_DIR}/coverage.info -q \ + --ignore-errors mismatch cat ${OTIO_CXX_BUILD_TMP_DIR}/coverage.info | sed "s/SF:.*src/SF:src/g"\ > ${OTIO_CXX_BUILD_TMP_DIR}/coverage.filtered.info lcov --rc lcov_branch_coverage=1 --remove ${OTIO_CXX_BUILD_TMP_DIR}/coverage.filtered.info '/usr/*' \ diff --git a/src/opentimelineio/typeRegistry.h b/src/opentimelineio/typeRegistry.h index b72f4be3d..a0a6047f7 100644 --- a/src/opentimelineio/typeRegistry.h +++ b/src/opentimelineio/typeRegistry.h @@ -60,7 +60,7 @@ class TypeRegistry CLASS::Schema::name, CLASS::Schema::version, &typeid(CLASS), - []() -> SerializableObject* { return new CLASS; }, // LCOV_EXCL_EXCEPTION_BR_LINE + []() -> SerializableObject* { return new CLASS; }, CLASS::Schema::name); }