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

realm / realm-core / 2458

01 Jul 2024 04:59PM UTC coverage: 91.147% (+0.1%) from 91.001%
2458

push

Evergreen

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

RCORE-2160 Make upload completion reporting multiprocess-compatible

103762 of 182414 branches covered (56.88%)

136 of 139 new or added lines in 8 files covered. (97.84%)

52 existing lines in 11 files now uncovered.

216754 of 237806 relevant lines covered (91.15%)

5777851.99 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