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

realm / realm-core / jorgen.edelbo_333

01 Jul 2024 07:21AM UTC coverage: 90.865% (-0.08%) from 90.948%
jorgen.edelbo_333

Pull #7826

Evergreen

jedelbo
Merge tag 'v14.10.2' into next-major
Pull Request #7826: Merge Next major

102912 of 181138 branches covered (56.81%)

3131 of 3738 new or added lines in 54 files covered. (83.76%)

80 existing lines in 14 files now uncovered.

217498 of 239364 relevant lines covered (90.86%)

6655796.15 hits per line

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

42.86
/test/util/dump_changesets.cpp
1
#include "dump_changesets.hpp"
2

3
#include <locale>
4
#include <sstream>
5
#include <utility>
6

7
#include <realm/string_data.hpp>
8
#include <realm/util/file.hpp>
9

10
#include "unit_test.hpp"
11

12
namespace realm {
13
namespace test_util {
14

15
std::unique_ptr<TestDirNameGenerator> get_changeset_dump_dir_generator(const unit_test::TestContext& test_context,
16
                                                                       const char* env_var)
17
{
250✔
18
    auto dump_path = StringData{::getenv(env_var)};
250✔
19
    if (dump_path.size() == 0) {
250✔
20
        return nullptr;
250✔
21
    }
250✔
22

UNCOV
23
    std::ostringstream out;
×
UNCOV
24
    out.imbue(std::locale::classic());
×
25

UNCOV
26
    out << dump_path;
×
UNCOV
27
    util::try_make_dir(out.str());
×
28

UNCOV
29
    out << "/" << test_context.test_details.test_name;
×
UNCOV
30
    auto directory = out.str();
×
UNCOV
31
    util::try_make_dir(directory);
×
32

UNCOV
33
    return std::make_unique<TestDirNameGenerator>(std::move(directory));
×
34
}
250✔
35

36
} // namespace test_util
37
} // namespace realm
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