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

daisytuner / docc / 24408034210

14 Apr 2026 03:32PM UTC coverage: 64.413% (-0.06%) from 64.469%
24408034210

Pull #679

github

web-flow
Merge 7f86463c3 into 505b640ce
Pull Request #679: Single GPU BLAS Handle Instantiation

9 of 92 new or added lines in 15 files covered. (9.78%)

14 existing lines in 7 files now uncovered.

30559 of 47442 relevant lines covered (64.41%)

583.53 hits per line

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

66.67
/sdfg/src/codegen/code_snippet_factory.cpp
1
#include "sdfg/codegen/code_snippet_factory.h"
2
#include <unordered_set>
3

4
namespace sdfg::codegen {
5

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

9

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

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

20
    return snippet->second;
4✔
21
}
4✔
22

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

NEW
28
void CodeSnippetFactory::add_setup(const std::string& snippet) { setup_snippets_.insert(snippet); }
×
29

NEW
30
void CodeSnippetFactory::add_teardown(const std::string& snippet) { teardown_snippets_.insert(snippet); }
×
31

32
void CodeSnippetFactory::add_global(const std::string& snippet) { globals_snippets_.insert(snippet); }
4✔
33

34
const std::unordered_set<std::string>& CodeSnippetFactory::setup_snippets() const { return setup_snippets_; }
1✔
35

36
const std::unordered_set<std::string>& CodeSnippetFactory::teardown_snippets() const { return teardown_snippets_; }
3✔
37

38
const std::unordered_set<std::string>& CodeSnippetFactory::globals_snippets() const { return globals_snippets_; }
5✔
39

40
} // 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