#include <sstream>
#include <string>
#include <gtest/gtest.h>
#include "tabulated_dynamicalDE_EoS.h"
|
|
const char * | string_file_path_ ("dummy-file-path") |
| |
| TabulatedDynamicalDarkEnergyEoS | construct_from_string_ (const std::string &contents) |
| |
|
void | PrintTo (const FileVariation &fv, std::ostream *os) |
| |
|
| TEST_P (tALLTabulatedDynamicalDarkEnergyEoS, SimpleOpen) |
| |
|
| INSTANTIATE_TEST_SUITE_P (, tALLTabulatedDynamicalDarkEnergyEoS, testing::ValuesIn(valid_variants_), testing::PrintToStringParamName()) |
| |
|
| TEST (tALLTabulatedDynamicalDarkEnergyEoSDeathTest, InvalidPath) |
| |
|
| TEST (tALLTabulatedDynamicalDarkEnergyEoSDeathTest, MissingRedshift0) |
| |
|
| TEST (tALLTabulatedDynamicalDarkEnergyEoSDeathTest, OutOfOrder) |
| |
|
| TEST (tALLTabulatedDynamicalDarkEnergyEoSDeathTest, SingleElemOnLine2) |
| |
|
| TEST (tALLTabulatedDynamicalDarkEnergyEoSDeathTest, ThreeElemsOnLine2) |
| |
|
| TEST_P (tALLTabulatedDynamicalDarkEnergyEoSNoContentsDeathTest, Simple) |
| |
|
| INSTANTIATE_TEST_SUITE_P (, tALLTabulatedDynamicalDarkEnergyEoSNoContentsDeathTest, testing::ValuesIn(invalid_variants_), testing::PrintToStringParamName()) |
| |
◆ construct_from_string_()
◆ GOOD_CONTENTS_
| const std::string GOOD_CONTENTS_ |
Initial value:= R"LITERAL(# z, w
0.000000000000000000e+00 -9.767616499273475972e-01
6.938631476027579126e-03 -9.769941793369097960e-01
# this is a random meaningless comment!
1.392540755881421788e-02 -9.772263520514015145e-01)LITERAL"
◆ invalid_variants_
Initial value:= {
{"Empty", ""},
{"SingleBlankLine", "\n"},
{"SingleComment", "# this is a comment!"},
}
◆ valid_variants_
Initial value:= {
{"NoTerminalNewline", GOOD_CONTENTS_},
{"WithTerminalNewline", GOOD_CONTENTS_ + '\n'},
{"EmptyFinalLine", GOOD_CONTENTS_ + "\n\n"},
}