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

daisytuner / sdfglib / 20764569418

06 Jan 2026 10:50PM UTC coverage: 62.168% (+21.4%) from 40.764%
20764569418

push

github

web-flow
Merge pull request #433 from daisytuner/clang-coverage

updates clang coverage flags

14988 of 24109 relevant lines covered (62.17%)

88.57 hits per line

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

13.33
/src/codegen/code_snippet_factory.cpp
1
#include "sdfg/codegen/code_snippet_factory.h"
2

3
namespace sdfg::codegen {
4

5
CodeSnippetFactory::CodeSnippetFactory(const std::pair<std::filesystem::path, std::filesystem::path>* config)
6
    : output_path_(config ? config->first : "."), header_path_(config ? config->second : "") {}
46✔
7

8

9
CodeSnippet& CodeSnippetFactory::require(const std::string& name, const std::string& extension, bool as_file) {
×
10
    auto [snippet, newly_created] = snippets_.try_emplace(name, name, extension, as_file);
×
11

12
    if (!newly_created && extension != snippet->second.extension()) {
×
13
        throw std::runtime_error(
×
14
            "Code snippet " + name + " already exists with '." + snippet->second.extension() +
×
15
            "', but was required with '." + extension + "'"
×
16
        );
×
17
    }
×
18

19
    return snippet->second;
×
20
}
×
21

22
std::unordered_map<std::string, CodeSnippet>::iterator CodeSnippetFactory::find(const std::string& name) {
×
23
    return snippets_.find(name);
×
24
}
×
25
const std::unordered_map<std::string, CodeSnippet>& CodeSnippetFactory::snippets() const { return snippets_; }
16✔
26

27
} // namespace sdfg::codegen
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