• 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

0.0
/libs/core/execution_base/src/any_sender.cpp
1
//  Copyright (c) 2021 ETH Zurich
2
//
3
//  SPDX-License-Identifier: BSL-1.0
4
//  Distributed under the Boost Software License, Version 1.0. (See accompanying
5
//  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6

7
#include <hpx/execution_base/any_sender.hpp>
8
#include <hpx/modules/errors.hpp>
9
#include <hpx/modules/format.hpp>
10

11
#include <atomic>
12
#include <exception>
13
#include <string>
14
#include <utility>
15

16
namespace hpx::execution::experimental::detail {
17

18
    void empty_any_operation_state::start() & noexcept
19
    {
×
20
        HPX_THROW_EXCEPTION(hpx::error::bad_function_call,
21
            "any_operation_state::start",
×
22
            "attempted to call start on empty any_operation_state");
23
    }
24

25
    bool empty_any_operation_state::empty() const noexcept
26
    {
×
27
        return true;
28
    }
×
29

30
    void tag_invoke(
31
        hpx::execution::experimental::start_t, any_operation_state& os) noexcept
×
32
    {
33
        os.storage.get().start();
34
    }
×
35

×
36
    void throw_bad_any_call(char const* class_name, char const* function_name)
37
    {
×
38
        HPX_THROW_EXCEPTION(hpx::error::bad_function_call,
39
            hpx::util::format("{}::{}", class_name, function_name),
×
40
            hpx::util::format(
41
                "attempted to call {} on empty {}", function_name, class_name));
42
    }
43
}    // namespace hpx::execution::experimental::detail
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