GCC Code Coverage Report


Directory: src/
File: src/context/source-reference.cpp
Date: 2025-10-24 11:14:59
Exec Total Coverage
Lines: 23 23 100.0%
Functions: 7 7 100.0%
Branches: 0 0 -%

Line Branch Exec Source
1 /* Copyright 2025 Jonathan S. Arney
2 *
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * https://github.com/jarney/gyoji/blob/master/LICENSE
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16 #include <gyoji-context.hpp>
17
18 using namespace Gyoji::context;
19
20
21
22 59666 SourceReference::SourceReference(
23 const std::string & _filename,
24 size_t _line,
25 size_t _column,
26 size_t _length
27 59666 )
28 59666 : filename(_filename)
29 59666 , line(_line)
30 59666 , column(_column)
31 59666 , length(_length)
32 59666 {}
33 22 SourceReference::SourceReference(const SourceReference & _other)
34 22 : filename(_other.filename)
35 22 , line(_other.line)
36 22 , column(_other.column)
37 22 , length(_other.length)
38 22 {}
39 59688 SourceReference::~SourceReference()
40 59688 {}
41 const std::string &
42 10 SourceReference::get_filename() const
43 10 { return filename; }
44
45 13874 size_t SourceReference::get_line() const
46 13874 { return line; }
47
48 9208 size_t SourceReference::get_column() const
49 9208 { return column; }
50
51 20 size_t SourceReference::get_length() const
52 20 { return length; }
53
54