mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Updated unit tests
Using RigWellLogCurveData instead of RimWellLogCurveImpl. Added test interface which has access to private methods in RigWellLogCurveData. RimWellLogCurveImpl should probably be removed when correct filtering of curve segments based on depths is up & running.
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
class RigWellLogCurveDataTestInterface;
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
//==================================================================================================
|
||||
@@ -54,4 +56,18 @@ private:
|
||||
std::vector<double> m_xValues;
|
||||
std::vector<double> m_yValues;
|
||||
std::vector< std::pair<size_t, size_t> > m_validXValuesIntervals;
|
||||
|
||||
friend RigWellLogCurveDataTestInterface;
|
||||
};
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
//==================================================================================================
|
||||
class RigWellLogCurveDataTestInterface
|
||||
{
|
||||
public:
|
||||
static void calculateIntervalsOfValidValues(const std::vector<double>& values, std::vector< std::pair<size_t, size_t> >* intervals)
|
||||
{
|
||||
RigWellLogCurveData::calculateIntervalsOfValidValues(values, intervals);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user