|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Functions | |
| std::string | scratch (const char *name) |
| A unique scratch path per test — hermetic, no committed fixtures, parallel-safe. | |
| std::string | read_text (const std::string &path) |
| LcTareStore::Evaluator | linear (double kg_per_count) |
| A linear adc->kg curve, standing in for select_lc_kg. | |
| void | recompute_carries_tare_across_a_better_fit () |
| void | untrusted_curves_keep_the_last_good_offset () |
| void | non_finite_offset_is_never_recorded () |
| void | entity_matches_the_publish_path () |
| void | loaded_tare_is_corrected_by_recompute () |
| void | fingerprint_tracks_what_the_curve_does () |
| void | stale_audit_finds_a_missed_recompute () |
| void | save_load_round_trip () |
| void | unreadable_file_is_not_overwritten () |
| void anonymous_namespace{test_lc_tare.cpp}::entity_matches_the_publish_path | ( | ) |
Definition at line 155 of file test_lc_tare.cpp.
References CHECK, and lc_tare_entity().
Referenced by main().
| void anonymous_namespace{test_lc_tare.cpp}::fingerprint_tracks_what_the_curve_does | ( | ) |
Definition at line 207 of file test_lc_tare.cpp.
References a, b, CHECK, fsw::calibration::LcTare::curve_fp, fsw::calibration::LcTareStore::fingerprint(), lc_tare_entity(), linear(), fsw::calibration::LcTareStore::recompute(), scratch, fsw::calibration::LcTareStore::set(), and fsw::calibration::LcTareStore::tare_for().
Referenced by main().
| LcTareStore::Evaluator anonymous_namespace{test_lc_tare.cpp}::linear | ( | double | kg_per_count | ) |
A linear adc->kg curve, standing in for select_lc_kg.
Definition at line 64 of file test_lc_tare.cpp.
References adc().
Referenced by fingerprint_tracks_what_the_curve_does(), loaded_tare_is_corrected_by_recompute(), non_finite_offset_is_never_recorded(), recompute_carries_tare_across_a_better_fit(), save_load_round_trip(), stale_audit_finds_a_missed_recompute(), and untrusted_curves_keep_the_last_good_offset().
| void anonymous_namespace{test_lc_tare.cpp}::loaded_tare_is_corrected_by_recompute | ( | ) |
Definition at line 172 of file test_lc_tare.cpp.
References basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType, CustomBaseClass >::array(), CHECK, linear(), fsw::calibration::LcTareStore::load(), fsw::calibration::LcTare::offset_kg, fsw::calibration::LcTareStore::recompute_all(), scratch, and fsw::calibration::LcTareStore::tare_for().
Referenced by main().
| void anonymous_namespace{test_lc_tare.cpp}::non_finite_offset_is_never_recorded | ( | ) |
Definition at line 127 of file test_lc_tare.cpp.
References CHECK, lc_tare_entity(), linear(), fsw::calibration::LcTare::offset_kg, fsw::calibration::LcTareStore::recompute(), scratch, fsw::calibration::LcTareStore::set(), fsw::calibration::LcTareStore::size(), and fsw::calibration::LcTareStore::tare_for().
Referenced by main().
| std::string anonymous_namespace{test_lc_tare.cpp}::read_text | ( | const std::string & | path | ) |
Definition at line 58 of file test_lc_tare.cpp.
Referenced by unreadable_file_is_not_overwritten().
| void anonymous_namespace{test_lc_tare.cpp}::recompute_carries_tare_across_a_better_fit | ( | ) |
Definition at line 72 of file test_lc_tare.cpp.
References CHECK, lc_tare_entity(), linear(), fsw::calibration::LcTareStore::recompute(), scratch, fsw::calibration::LcTareStore::set(), and fsw::calibration::LcTareStore::tare_for().
Referenced by main().
| void anonymous_namespace{test_lc_tare.cpp}::save_load_round_trip | ( | ) |
Definition at line 257 of file test_lc_tare.cpp.
References CHECK, fsw::calibration::LcTare::entity, lc_tare_entity(), linear(), fsw::calibration::LcTareStore::load(), fsw::calibration::LcTareStore::load_failed(), fsw::calibration::LcTare::offset_kg, fsw::calibration::LcTareStore::save(), scratch, fsw::calibration::LcTareStore::set(), and fsw::calibration::LcTareStore::tare_for().
Referenced by main().
| std::string anonymous_namespace{test_lc_tare.cpp}::scratch | ( | const char * | name | ) |
A unique scratch path per test — hermetic, no committed fixtures, parallel-safe.
Definition at line 50 of file test_lc_tare.cpp.
References p.
| void anonymous_namespace{test_lc_tare.cpp}::stale_audit_finds_a_missed_recompute | ( | ) |
Definition at line 227 of file test_lc_tare.cpp.
References CHECK, lc_tare_entity(), linear(), fsw::calibration::LcTare::offset_kg, fsw::calibration::LcTareStore::recompute_stale(), scratch, fsw::calibration::LcTareStore::set(), and fsw::calibration::LcTareStore::tare_for().
Referenced by main().
| void anonymous_namespace{test_lc_tare.cpp}::unreadable_file_is_not_overwritten | ( | ) |
Definition at line 279 of file test_lc_tare.cpp.
References CHECK, fsw::calibration::LcTareStore::load(), fsw::calibration::LcTareStore::load_failed(), read_text(), fsw::calibration::LcTareStore::save(), and scratch.
Referenced by main().
| void anonymous_namespace{test_lc_tare.cpp}::untrusted_curves_keep_the_last_good_offset | ( | ) |
Definition at line 101 of file test_lc_tare.cpp.
References CHECK, lc_tare_entity(), linear(), fsw::calibration::LcTare::offset_kg, fsw::calibration::LcTareStore::recompute(), scratch, fsw::calibration::LcTareStore::set(), fsw::calibration::LcTareStore::set_curves_trusted(), and fsw::calibration::LcTareStore::tare_for().
Referenced by main().