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

boostorg / geometry / 24470

13 May 2025 08:17PM UTC coverage: 94.253% (-0.03%) from 94.286%
24470

push

circleci

barendgehrels
fix: consider clusters in turn_in_piece_visitor

39085 of 41468 relevant lines covered (94.25%)

1274129.49 hits per line

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

61.9
include/boost/geometry/algorithms/detail/overlay/debug_turn_info.hpp
1
// Boost.Geometry (aka GGL, Generic Geometry Library)
2

3
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
4

5
// Use, modification and distribution is subject to the Boost Software License,
6
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7
// http://www.boost.org/LICENSE_1_0.txt)
8

9
#ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_OVERLAY_DEBUG_TURN_INFO_HPP
10
#define BOOST_GEOMETRY_ALGORITHMS_DETAIL_OVERLAY_DEBUG_TURN_INFO_HPP
11

12
#include <boost/geometry/algorithms/detail/overlay/turn_info.hpp>
13

14

15
namespace boost { namespace geometry
16
{
17

18
inline char method_char(detail::overlay::method_type const& method)
4,639✔
19
{
20
    using namespace detail::overlay;
21
    switch(method)
4,639✔
22
    {
23
        case method_none : return '-';
×
24
        case method_disjoint : return 'd';
×
25
        case method_crosses : return 'i';
255✔
26
        case method_touch : return 't';
1,991✔
27
        case method_touch_interior : return 'm';
2,013✔
28
        case method_collinear : return 'c';
205✔
29
        case method_equal : return 'e';
175✔
30
        case method_start : return 's';
×
31
        case method_error : return '!';
×
32
        default : return '?';
×
33
    }
34
}
35

36
inline char operation_char(detail::overlay::operation_type const& operation)
7,858✔
37
{
38
    using namespace detail::overlay;
39
    switch(operation)
7,858✔
40
    {
41
        case operation_none : return '-';
×
42
        case operation_union : return 'u';
2,672✔
43
        case operation_intersection : return 'i';
2,716✔
44
        case operation_blocked : return 'x';
1,496✔
45
        case operation_continue : return 'c';
974✔
46
        case operation_opposite : return 'o';
×
47
        default : return '?';
×
48
    }
49
}
50

51
}} // namespace boost::geometry
52

53

54
#endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_OVERLAY_DEBUG_TURN_INFO_HPP
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