Coverage Report

Created: 2025-10-10 06:41

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/geos/src/geom/Location.cpp
Line
Count
Source
1
/**********************************************************************
2
 *
3
 * GEOS - Geometry Engine Open Source
4
 * http://geos.osgeo.org
5
 *
6
 * Copyright (C) 2001-2002 Vivid Solutions Inc.
7
 *
8
 * This is free software; you can redistribute and/or modify it under
9
 * the terms of the GNU Lesser General Public Licence as published
10
 * by the Free Software Foundation.
11
 * See the COPYING file for more information.
12
 *
13
 **********************************************************************/
14
15
#include <geos/geom/Location.h>
16
#include <geos/util/IllegalArgumentException.h>
17
18
#include <sstream>
19
20
namespace geos {
21
namespace geom { // geos::geom
22
23
std::ostream&
24
operator<<(std::ostream& os, const Location& loc)
25
0
{
26
0
    switch(loc) {
27
0
        case Location::EXTERIOR:
28
0
            os << 'e';
29
0
            break;
30
0
        case Location::BOUNDARY:
31
0
            os << 'b';
32
0
            break;
33
0
        case Location::INTERIOR:
34
0
            os << 'i';
35
0
            break;
36
0
        case Location::NONE:
37
0
            os << '-';
38
0
            break;
39
0
    }
40
0
    return os;
41
0
}
42
43
} // namespace geos::geom
44
} // namespace geos