![]() |
PeriDEM 0.3.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
Data Structures | |
| struct | SampleDeck |
| A deck with one field of each kind the tables have to handle. More... | |
Functions | |
| void | check (bool ok, const std::string &what) |
| template<typename Call > | |
| void | checkThrows (Call call, const std::string &contains, const std::string &what) |
Fails unless the call throws with a message containing contains. | |
| void | testDefaultsAndSchema () |
| void | testReadAndWrite () |
| void | testAccepted () |
| void | testKeysAreNamed () |
| void | testValuesCheckedWhenBuilt () |
| void | testPrint () |
| void | testGroups () |
| void | testEditDistance () |
| void | run (void(*fn)(), const std::string &name) |
Variables | |
| int | g_failures = 0 |
| int | g_checks = 0 |
| void anonymous_namespace{testDeckField.cpp}::check | ( | bool | ok, |
| const std::string & | what | ||
| ) |
Definition at line 27 of file testDeckField.cpp.
References g_checks, and g_failures.
Referenced by testDefaultsAndSchema(), testEditDistance(), testKeysAreNamed(), testPrint(), testReadAndWrite(), and testValuesCheckedWhenBuilt().
| void anonymous_namespace{testDeckField.cpp}::checkThrows | ( | Call | call, |
| const std::string & | contains, | ||
| const std::string & | what | ||
| ) |
Fails unless the call throws with a message containing contains.
Definition at line 37 of file testDeckField.cpp.
References g_checks, and g_failures.
Referenced by testAccepted(), testGroups(), testKeysAreNamed(), and testValuesCheckedWhenBuilt().
| void anonymous_namespace{testDeckField.cpp}::run | ( | void(*)() | fn, |
| const std::string & | name | ||
| ) |
Definition at line 224 of file testDeckField.cpp.
References g_checks, and g_failures.
| void anonymous_namespace{testDeckField.cpp}::testAccepted | ( | ) |
Definition at line 119 of file testDeckField.cpp.
References checkThrows(), anonymous_namespace{testDeckField.cpp}::SampleDeck::fields(), and inp::readFields().
Referenced by main().
| void anonymous_namespace{testDeckField.cpp}::testDefaultsAndSchema | ( | ) |
Definition at line 80 of file testDeckField.cpp.
References check(), inp::defaultsJson(), anonymous_namespace{testDeckField.cpp}::SampleDeck::fields(), and inp::schemaJson().
Referenced by main().
| void anonymous_namespace{testDeckField.cpp}::testEditDistance | ( | ) |
Definition at line 217 of file testDeckField.cpp.
References check(), and inp::editDistance().
Referenced by main().
| void anonymous_namespace{testDeckField.cpp}::testGroups | ( | ) |
Definition at line 194 of file testDeckField.cpp.
References inp::checkGroups(), and checkThrows().
Referenced by main().
| void anonymous_namespace{testDeckField.cpp}::testKeysAreNamed | ( | ) |
Definition at line 140 of file testDeckField.cpp.
References inp::applyGiven(), check(), checkThrows(), and anonymous_namespace{testDeckField.cpp}::SampleDeck::fields().
Referenced by main().
| void anonymous_namespace{testDeckField.cpp}::testPrint | ( | ) |
Definition at line 182 of file testDeckField.cpp.
References check(), anonymous_namespace{testDeckField.cpp}::SampleDeck::fields(), and inp::printFields().
Referenced by main().
| void anonymous_namespace{testDeckField.cpp}::testReadAndWrite | ( | ) |
Definition at line 98 of file testDeckField.cpp.
References inp::applyGiven(), check(), anonymous_namespace{testDeckField.cpp}::SampleDeck::d_count, anonymous_namespace{testDeckField.cpp}::SampleDeck::fields(), inp::readFields(), and inp::writeFields().
Referenced by main().
| void anonymous_namespace{testDeckField.cpp}::testValuesCheckedWhenBuilt | ( | ) |
Definition at line 157 of file testDeckField.cpp.
References inp::applyGiven(), check(), checkThrows(), and anonymous_namespace{testDeckField.cpp}::SampleDeck::fields().
Referenced by main().
| int anonymous_namespace{testDeckField.cpp}::g_checks = 0 |
Definition at line 25 of file testDeckField.cpp.
Referenced by check(), checkThrows(), main(), and run().
| int anonymous_namespace{testDeckField.cpp}::g_failures = 0 |
Definition at line 24 of file testDeckField.cpp.
Referenced by check(), checkThrows(), main(), and run().