CYCAMORE
src/storage_tests.h
Go to the documentation of this file.
1 #ifndef STORAGE_TESTS_H_
2 #define STORAGE_TESTS_H_
3 
4 #include <gtest/gtest.h>
5 
6 #include "storage.h"
7 
8 #include "context.h"
9 #include "facility_tests.h"
10 #include "agent_tests.h"
11 
12 namespace storage {
13 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
14 class StorageTest : public ::testing::Test {
15  protected:
16  cyclus::TestContext tc_;
17  Storage* src_facility_;
18 
19  virtual void SetUp();
20  virtual void TearDown();
21  void InitParameters();
22  void SetUpStorage();
24  void TestAddMat(storage::Storage* fac,
25  cyclus::Material::Ptr mat);
26  void TestBuffers(storage::Storage* fac, double inv, double
27  proc, double ready, double stocks);
28  void TestStocks(storage::Storage* fac, cyclus::CompMap v);
29  void TestReadyTime(storage::Storage* fac, int t);
30  void TestCurrentCap(storage::Storage* fac, double inv);
31 
32  std::vector<std::string> in_c1, out_c1;
34 
35  int residence_time;
36  double throughput, max_inv_size;
37  bool discrete_handling;
38 };
39 } // namespace storage
40 #endif // STORAGE_TESTS_H_
41 
void TestCurrentCap(storage::Storage *fac, double inv)
void TestInitState(storage::Storage *fac)
void TestAddMat(storage::Storage *fac, cyclus::Material::Ptr mat)
void TestStocks(storage::Storage *fac, cyclus::CompMap v)
void TestBuffers(storage::Storage *fac, double inv, double proc, double ready, double stocks)
std::vector< std::string > in_c1
void TestReadyTime(storage::Storage *fac, int t)
cycamore::GrowthRegion string
This Facility is intended to hold materials for a user specified amount of time in order to model a s...
std::vector< std::string > out_c1