• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

NREL / SolTrace / 19040526713

03 Nov 2025 03:50PM UTC coverage: 90.052% (+0.4%) from 89.643%
19040526713

push

github

web-flow
Merge pull request #77 from NREL/74-fix-parabola-intersection-missed-case

74 fix parabola intersection missed case

959 of 994 new or added lines in 28 files covered. (96.48%)

2 existing lines in 1 file now uncovered.

4508 of 5006 relevant lines covered (90.05%)

10596530.27 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.0
/coretrace/simulation_data/optical_properties.cpp
1

2
// #include <exception>
3
// #include <sstream>
4

5
#include "optical_properties.hpp"
6

7
namespace SolTrace::Data
8
{
9

10
const std::string interaction_string(InteractionType it)
1✔
11
{
12
    if (it == InteractionType::REFLECTION)
1✔
13
    {
14
        return "Reflection";
2✔
15
    }
NEW
16
    else if(it == InteractionType::REFRACTION)
×
17
    {
NEW
18
        return "Refraction";
×
19
    }
20
    else
21
    {
NEW
22
        return "Unknown";
×
23
    }
24
}
25

26
std::ostream &operator<<(std::ostream &os,
1✔
27
    const OpticalProperties &op)
28
{
29
    os << "Type: " << interaction_string(op.my_type)
1✔
30
    << "\nTransmitivity: " << op.transmitivity
1✔
31
    << "\nReflectivity: " << op.reflectivity
1✔
32
    << "\nSlope Error: " << op.slope_error
1✔
33
    << "\nSpecularity Error: " << op.specularity_error
1✔
34
    << "\nRefraction Index Front: " << op.refraction_index_front
1✔
35
    << "\nRefraction Index Back: " << op.refraction_index_back;
1✔
36
    return os;
1✔
37
}
38

39
} // namespace SolTrace::Data
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc