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

realm / realm-core / 2457

01 Jul 2024 04:59PM UTC coverage: 90.986% (-0.02%) from 91.001%
2457

push

Evergreen

web-flow
Merge pull request #7796 from realm/tg/upload-completion

RCORE-2160 Make upload completion reporting multiprocess-compatible

102288 of 180462 branches covered (56.68%)

112 of 117 new or added lines in 8 files covered. (95.73%)

90 existing lines in 17 files now uncovered.

215133 of 236446 relevant lines covered (90.99%)

5720057.08 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