Skip to content

Commit

Permalink
add missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
bam241 committed Mar 15, 2017
1 parent 75f9780 commit 16ef3bd
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build
52 changes: 52 additions & 0 deletions src/special_enrich_tests.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#ifndef CYCVT_SRC_ENRICHMENT_TESTS_
#define CYCVT_SRC_ENRICHMENT_TESTS_

#include <gtest/gtest.h>

#include <boost/shared_ptr.hpp>

#include "test_context.h"
#include "env.h"
#include "exchange_context.h"
#include "material.h"

#include "special_enrich.h"

namespace cycvt {

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
class SEnrichmentTest : public ::testing::Test {
protected:
cyclus::TestContext tc_;
SEnrichment* src_facility;
std::string feed_commod, product_commod, feed_recipe, tails_commod;
cyclus::Composition::Ptr recipe;
TestFacility* trader;

double feed_assay, tails_assay, inv_size, swu_capacity, max_enrich;

bool order_prefs;

double reserves;

virtual void SetUp();
virtual void TearDown();
void InitParameters();
void SetUpSource();
cyclus::Material::Ptr GetMat(double qty);
/// @param enr the enrichment percent, i.e. for 5 w/o, enr = 0.05
cyclus::Material::Ptr GetReqMat(double qty, double enr);
void DoAddMat(cyclus::Material::Ptr mat);
cyclus::Material::Ptr DoRequest();
cyclus::Material::Ptr DoBid(cyclus::Material::Ptr mat);
cyclus::Material::Ptr DoOffer(cyclus::Material::Ptr mat);
cyclus::Material::Ptr DoEnrich(cyclus::Material::Ptr mat, double qty);
/// @param nreqs the total number of requests
/// @param nvalid the number of requests that are valid
boost::shared_ptr< cyclus::ExchangeContext<cyclus::Material> >
GetContext(int nreqs, int nvalid);
};

} // namespace cycvt

#endif // CYCVT_SRC_ENRICHMENT_FACILITY_TESTS_

0 comments on commit 16ef3bd

Please sign in to comment.