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

openmc-dev / openmc / 18538152141

15 Oct 2025 06:02PM UTC coverage: 81.97% (-3.2%) from 85.194%
18538152141

Pull #3417

github

web-flow
Merge 4604e1321 into e9077b137
Pull Request #3417: Addition of a collision tracking feature

16794 of 23357 branches covered (71.9%)

Branch coverage included in aggregate %.

480 of 522 new or added lines in 13 files covered. (91.95%)

457 existing lines in 53 files now uncovered.

54128 of 63165 relevant lines covered (85.69%)

42776927.64 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

© 2025 Coveralls, Inc