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

openmc-dev / openmc / 21533365354

30 Jan 2026 10:48PM UTC coverage: 81.979% (-3.2%) from 85.162%
21533365354

Pull #3453

github

web-flow
Merge de22ee16c into 7b4617aff
Pull Request #3453: Secondary energy filter

17272 of 24046 branches covered (71.83%)

Branch coverage included in aggregate %.

50 of 52 new or added lines in 8 files covered. (96.15%)

4544 existing lines in 133 files now uncovered.

55847 of 65146 relevant lines covered (85.73%)

44003337.54 hits per line

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

0.0
/include/openmc/string_utils.h
1
#ifndef OPENMC_STRING_UTILS_H
2
#define OPENMC_STRING_UTILS_H
3

4
#include <sstream>
5
#include <string>
6

7
#include "openmc/vector.h"
8

9
namespace openmc {
10

11
std::string& strtrim(std::string& s);
12

13
char* strtrim(char* c_str);
14

15
std::string to_element(const std::string& name);
16

17
void to_lower(std::string& str);
18

19
int word_count(const std::string& str);
20

21
vector<std::string> split(const std::string& in);
22

23
bool ends_with(const std::string& value, const std::string& ending);
24

25
bool starts_with(const std::string& value, const std::string& beginning);
26

27
template<typename T>
UNCOV
28
inline std::string concatenate(const T& values, const std::string& del = ", ")
×
29
{
30
  if (values.size() == 0)
×
31
    return "";
×
32

33
  std::stringstream oss;
×
34
  auto it = values.begin();
×
35
  oss << *it++;
×
36
  while (it != values.end()) {
×
37
    oss << del << *it++;
×
38
  }
39
  return oss.str();
×
UNCOV
40
}
×
41

42
} // namespace openmc
43
#endif // OPENMC_STRING_UTILS_H
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