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

STEllAR-GROUP / hpx / #882

31 Aug 2023 07:44PM UTC coverage: 41.798% (-44.7%) from 86.546%
#882

push

19442 of 46514 relevant lines covered (41.8%)

126375.38 hits per line

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

57.14
/libs/core/logging/src/format/formatter/defaults_formatter.cpp
1
// defaults.cpp
2

3
// Boost Logging library
4
//
5
// Author: John Torjo, www.torjo.com
6
//
7
// Copyright (C) 2007 John Torjo (see www.torjo.com for email)
8
//
9
//  SPDX-License-Identifier: BSL-1.0
10
// Distributed under the Boost Software License, Version 1.0.
11
//    (See accompanying file LICENSE_1_0.txt or copy at
12
//          http://www.boost.org/LICENSE_1_0.txt)
13
//
14
// See http://www.boost.org for updates, documentation, and revision history.
15
// See http://www.torjo.com/log2/ for more details
16

17
#include <hpx/config.hpp>
18
#include <hpx/logging/format/formatters.hpp>
19
#include <hpx/modules/format.hpp>
20

21
#include <cstdint>
22
#include <memory>
23
#include <ostream>
24

25
namespace hpx::util::logging::formatter {
26

27
    idx::~idx() = default;
28

832✔
29
    struct idx_impl final : idx
30
    {
31
        idx_impl()
32
          : value(0ull)
33
        {
832✔
34
        }
35

36
        void operator()(std::ostream& to) const override
37
        {
×
38
            util::format_to(to, "{:016x}", ++value);
39
        }
×
40

×
41
    private:
42
        mutable std::uint64_t value;
43
    };
44

45
    std::unique_ptr<idx> idx::make()
46
    {
832✔
47
        return std::make_unique<idx_impl>();
48
    }
832✔
49
}    // namespace hpx::util::logging::formatter
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