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

realm / realm-core / 2371

01 Jun 2024 12:06AM UTC coverage: 90.842% (-0.007%) from 90.849%
2371

push

Evergreen

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

Co-authored-by: ironage <2826060+ironage@users.noreply.github.com>

101722 of 180086 branches covered (56.49%)

214616 of 236251 relevant lines covered (90.84%)

5732472.21 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

© 2026 Coveralls, Inc