#4683 clang-format on all files in ApplicationCode

This commit is contained in:
Magne Sjaastad
2019-09-06 10:40:57 +02:00
parent 3a317504bb
commit fe9e567825
2092 changed files with 117952 additions and 111846 deletions

View File

@@ -2,67 +2,66 @@
#include "RiuSummaryVectorDescriptionMap.h"
//--------------------------------------------------------------------------------------------------
///
///
//--------------------------------------------------------------------------------------------------
TEST(RiuSummaryVectorDescriptionMap, TestInit)
TEST( RiuSummaryVectorDescriptionMap, TestInit )
{
{
std::string s("SRSFC");
auto test = RiuSummaryVectorDescriptionMap::instance()->vectorInfo(s);
std::string s( "SRSFC" );
auto test = RiuSummaryVectorDescriptionMap::instance()->vectorInfo( s );
EXPECT_TRUE(test.category == RifEclipseSummaryAddress::SUMMARY_WELL_SEGMENT);
EXPECT_TRUE(test.longName == "Reach brine concentration");
EXPECT_TRUE( test.category == RifEclipseSummaryAddress::SUMMARY_WELL_SEGMENT );
EXPECT_TRUE( test.longName == "Reach brine concentration" );
}
{
std::string s("SRSFC");
auto test = RiuSummaryVectorDescriptionMap::instance()->vectorLongName(s);
std::string s( "SRSFC" );
auto test = RiuSummaryVectorDescriptionMap::instance()->vectorLongName( s );
EXPECT_TRUE(test == "Reach brine concentration");
EXPECT_TRUE( test == "Reach brine concentration" );
}
{
std::string s("does not exist");
auto test = RiuSummaryVectorDescriptionMap::instance()->vectorInfo(s);
std::string s( "does not exist" );
auto test = RiuSummaryVectorDescriptionMap::instance()->vectorInfo( s );
EXPECT_TRUE(test.category == RifEclipseSummaryAddress::SUMMARY_INVALID);
EXPECT_TRUE(test.longName == "");
EXPECT_TRUE( test.category == RifEclipseSummaryAddress::SUMMARY_INVALID );
EXPECT_TRUE( test.longName == "" );
}
{
std::string s("does not exist");
auto test = RiuSummaryVectorDescriptionMap::instance()->vectorLongName(s);
std::string s( "does not exist" );
auto test = RiuSummaryVectorDescriptionMap::instance()->vectorLongName( s );
EXPECT_TRUE(test == "");
EXPECT_TRUE( test == "" );
}
{
std::string s("does not exist");
auto test = RiuSummaryVectorDescriptionMap::instance()->vectorLongName(s, true);
std::string s( "does not exist" );
auto test = RiuSummaryVectorDescriptionMap::instance()->vectorLongName( s, true );
EXPECT_TRUE(test == s);
EXPECT_TRUE( test == s );
}
}
//--------------------------------------------------------------------------------------------------
///
///
//--------------------------------------------------------------------------------------------------
TEST(RiuSummaryVectorDescriptionMap, TestCustomNaming)
TEST( RiuSummaryVectorDescriptionMap, TestCustomNaming )
{
{
std::string s("SRSFCABC");
auto test = RiuSummaryVectorDescriptionMap::instance()->vectorInfo(s);
std::string s( "SRSFCABC" );
auto test = RiuSummaryVectorDescriptionMap::instance()->vectorInfo( s );
EXPECT_TRUE(test.category == RifEclipseSummaryAddress::SUMMARY_WELL_SEGMENT);
EXPECT_TRUE(test.longName == "Reach brine concentration");
EXPECT_TRUE( test.category == RifEclipseSummaryAddress::SUMMARY_WELL_SEGMENT );
EXPECT_TRUE( test.longName == "Reach brine concentration" );
}
{
std::string s("BHD__ABC");
auto test = RiuSummaryVectorDescriptionMap::instance()->vectorLongName(s);
std::string s( "BHD__ABC" );
auto test = RiuSummaryVectorDescriptionMap::instance()->vectorLongName( s );
EXPECT_TRUE(test == "Hydraulic head");
EXPECT_TRUE( test == "Hydraulic head" );
}
}