Overpass API regression suite coverage (Nova Scotia) / overpass_api/statements/item_geometry.cc

overpass_api/statements/item_geometry.cc

25 of 25 instrumented lines run by the suite (100.0%) at 8edf11b0419c (this file on GitHub).

runnever runcolumns: line, executions, queries (click for the queries that run the line)

1/** Copyright 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 Roland Olbricht et al.
2 *
3 * This file is part of Overpass_API.
4 *
5 * Overpass_API is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Affero General Public License as
7 * published by the Free Software Foundation, either version 3 of the
8 * License, or (at your option) any later version.
9 *
10 * Overpass_API is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU Affero General Public License
16 * along with Overpass_API. If not, see <http://www.gnu.org/licenses/>.
17 */
19#include "../data/tag_store.h"
20#include "../data/utils.h"
21#include "item_geometry.h"
24Evaluator_Is_Closed::Statement_Maker Evaluator_Is_Closed::statement_maker;
25Element_Function_Maker< Evaluator_Is_Closed > Evaluator_Is_Closed::evaluator_maker;
28Evaluator_Is_Closed::Evaluator_Is_Closed
29 (int line_number_, const std::map< std::string, std::string >& input_attributes, Parsed_Query& global_settings)
306416 q : Evaluator(line_number_)
326416 q std::map< std::string, std::string > attributes;
346416 q eval_attributes_array(get_name(), attributes, input_attributes);
38//-----------------------------------------------------------------------------
41Evaluator_Geometry::Statement_Maker Evaluator_Geometry::statement_maker;
42Element_Function_Maker< Evaluator_Geometry > Evaluator_Geometry::evaluator_maker;
45Evaluator_Geometry::Evaluator_Geometry
46 (int line_number_, const std::map< std::string, std::string >& input_attributes, Parsed_Query& global_settings)
4714834 q : Evaluator(line_number_)
4814834 q{
4914834 q std::map< std::string, std::string > attributes;
5014834 q eval_attributes_array(get_name(), attributes, input_attributes);
5114834 q}
54//-----------------------------------------------------------------------------
57Evaluator_Length::Statement_Maker Evaluator_Length::statement_maker;
58Element_Function_Maker< Evaluator_Length > Evaluator_Length::evaluator_maker;
61Evaluator_Length::Evaluator_Length
62 (int line_number_, const std::map< std::string, std::string >& input_attributes, Parsed_Query& global_settings)
639221 q : Evaluator(line_number_)
659221 q std::map< std::string, std::string > attributes;
669221 q eval_attributes_array(get_name(), attributes, input_attributes);
70//-----------------------------------------------------------------------------
73Evaluator_Latitude::Statement_Maker Evaluator_Latitude::statement_maker;
74Element_Function_Maker< Evaluator_Latitude > Evaluator_Latitude::evaluator_maker;
77Evaluator_Latitude::Evaluator_Latitude
78 (int line_number_, const std::map< std::string, std::string >& input_attributes, Parsed_Query& global_settings)
796414 q : Evaluator(line_number_)
816414 q std::map< std::string, std::string > attributes;
826414 q eval_attributes_array(get_name(), attributes, input_attributes);
86Evaluator_Longitude::Statement_Maker Evaluator_Longitude::statement_maker;
87Element_Function_Maker< Evaluator_Longitude > Evaluator_Longitude::evaluator_maker;
90Evaluator_Longitude::Evaluator_Longitude
91 (int line_number_, const std::map< std::string, std::string >& input_attributes, Parsed_Query& global_settings)
925613 q : Evaluator(line_number_)
945613 q std::map< std::string, std::string > attributes;
955613 q eval_attributes_array(get_name(), attributes, input_attributes);