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

realm / realm-core / 2450

28 Jun 2024 05:44PM UTC coverage: 90.961% (+0.01%) from 90.948%
2450

push

Evergreen

web-flow
New changelog section to prepare for vNext (#7854)

102168 of 180408 branches covered (56.63%)

214871 of 236222 relevant lines covered (90.96%)

5728448.22 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

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

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

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

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