mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Thermal Fracture Import: Add test for loading non-existing file.
This commit is contained in:
committed by
Magne Sjaastad
parent
803b8adc25
commit
a377449492
@@ -92,3 +92,16 @@ TEST( RifThermalFractureReaderTest, LoadFileMixedUnits )
|
|||||||
EXPECT_FALSE( errorMessage.isEmpty() );
|
EXPECT_FALSE( errorMessage.isEmpty() );
|
||||||
EXPECT_FALSE( fractureData.get() );
|
EXPECT_FALSE( fractureData.get() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
TEST( RifThermalFractureReaderTest, LoadFileNonExistingFiles )
|
||||||
|
{
|
||||||
|
QString fileName = CASE_REAL_TEST_DATA_DIRECTORY_03 + "this_file_does_not_exist.csv";
|
||||||
|
|
||||||
|
auto [fractureData, errorMessage] = RifThermalFractureReader::readFractureCsvFile( fileName );
|
||||||
|
|
||||||
|
EXPECT_FALSE( errorMessage.isEmpty() );
|
||||||
|
EXPECT_FALSE( fractureData.get() );
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user