Skip to content

Commit 0f9eec8

Browse files
committed
icrease colour_transform coverage
Signed-off-by: Aleksandr Motsjonov <soswow@gmail.com>
1 parent b7f4b4c commit 0f9eec8

File tree

8 files changed

+421
-46
lines changed

8 files changed

+421
-46
lines changed

src/rawtoaces_util/cache_base.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ template <typename... Ts>
4242
std::ostream &operator<<( std::ostream &os, const std::tuple<Ts...> &tuple )
4343
{
4444
return println_tuple_impl( os, tuple, std::index_sequence_for<Ts...>{} );
45-
}
45+
} // LCOV_EXCL_LINE - bug in coverage tool
4646

4747
namespace cache
4848
{

src/rawtoaces_util/transform_cache.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ std::ostream &
1414
operator<<( std::ostream &os, const rta::core::Metadata &data [[maybe_unused]] )
1515
{
1616
return os << std::string( "<Metadata>" );
17-
}
17+
} // LCOV_EXCL_LINE - bug in coverage tool
1818

1919
bool operator==(
2020
const rta::core::Metadata &data1, const rta::core::Metadata &data2 )
@@ -48,31 +48,31 @@ get_WB_from_illuminant_cache()
4848
static cache::Cache<CameraAndIlluminantDescriptor, WBFromIlluminantData>
4949
WB_from_illuminant_cache( "WB from illuminant" );
5050
return WB_from_illuminant_cache;
51-
}
51+
} // LCOV_EXCL_LINE - bug in coverage tool
5252

5353
cache::Cache<CameraAndWBDescriptor, IlluminantAndWBData> &
5454
get_illuminant_from_WB_cache()
5555
{
5656
static cache::Cache<CameraAndWBDescriptor, IlluminantAndWBData>
5757
illuminant_from_WB_cache( "illuminant from WB" );
5858
return illuminant_from_WB_cache;
59-
}
59+
} // LCOV_EXCL_LINE - bug in coverage tool
6060

6161
cache::Cache<CameraAndIlluminantDescriptor, MatrixData> &
6262
get_matrix_from_illuminant_cache()
6363
{
6464
static cache::Cache<CameraAndIlluminantDescriptor, MatrixData>
6565
matrix_from_illuminant_cache( "matrix from illuminant" );
6666
return matrix_from_illuminant_cache;
67-
}
67+
} // LCOV_EXCL_LINE - bug in coverage tool
6868

6969
cache::Cache<MetadataDescriptor, MatrixData> &
7070
get_matrix_from_dng_metadata_cache()
7171
{
7272
static cache::Cache<MetadataDescriptor, MatrixData>
7373
matrix_from_dng_metadata_cache( "matrix from DNG metadata" );
7474
return matrix_from_dng_metadata_cache;
75-
}
75+
} // LCOV_EXCL_LINE - bug in coverage tool
7676

7777
} // namespace cache
7878
} // namespace rta

tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ endif()
2020
add_executable (
2121
Test_usage_example_core
2222
usage_example_core.cpp
23+
test_utils.cpp
2324
)
2425

2526
target_link_libraries(

0 commit comments

Comments
 (0)