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

vla5924-practice / compiler-project / 13769537320

10 Mar 2025 04:16PM UTC coverage: 75.149% (-7.3%) from 82.491%
13769537320

push

github

web-flow
Include codegen in test coverage report (#206)

4040 of 5376 relevant lines covered (75.15%)

216.61 hits per line

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

93.75
/compiler/include/compiler/utils/source_ref.hpp
1
#pragma once
2

3
#include <memory>
4
#include <string>
5

6
namespace utils {
7

8
struct SourceRef {
9
    std::weak_ptr<const std::string> filename;
10
    size_t line;
11
    size_t column;
12

13
    SourceRef() = default;
4,883✔
14
    SourceRef(const SourceRef &) = default;
7,904✔
15
    SourceRef(SourceRef &&) = default;
13✔
16
    ~SourceRef() = default;
8,844✔
17

18
    SourceRef(std::shared_ptr<const std::string> filename_, size_t line_, size_t column_)
4✔
19
        : filename(filename_), line(line_), column(column_){};
4✔
20

21
    SourceRef inSameLine(size_t column_) const {
3,486✔
22
        SourceRef other(*this);
3,486✔
23
        other.column = column_;
3,486✔
24
        return other;
3,486✔
25
    }
26

27
    SourceRef inSameFile(size_t line_, size_t column_) const {
2✔
28
        SourceRef other = inSameLine(column_);
2✔
29
        other.line = line_;
2✔
30
        return other;
2✔
31
    }
32

33
    SourceRef &operator=(const SourceRef &) = default;
2,491✔
34
    SourceRef &operator=(SourceRef &&) = default;
×
35
};
36

37
} // namespace utils
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

© 2026 Coveralls, Inc