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

daisytuner / sdfglib / 15499223741

06 Jun 2025 08:29PM UTC coverage: 57.303% (-0.001%) from 57.304%
15499223741

push

github

web-flow
Merge pull request #61 from daisytuner/copy

Copy

57 of 111 new or added lines in 16 files covered. (51.35%)

2 existing lines in 1 file now uncovered.

7584 of 13235 relevant lines covered (57.3%)

116.03 hits per line

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

52.0
/src/data_flow/library_node.cpp
1
#include "sdfg/data_flow/library_node.h"
2

3
#include "sdfg/symbolic/symbolic.h"
4

5
namespace sdfg {
6
namespace data_flow {
7

8
LibraryNode::LibraryNode(const DebugInfo& debug_info, const graph::Vertex vertex,
11✔
9
                         DataFlowGraph& parent, const LibraryNodeCode& code,
10
                         const std::vector<std::string>& outputs,
11
                         const std::vector<std::string>& inputs, const bool side_effect)
12
    : CodeNode(debug_info, vertex, parent),
11✔
13
      code_(code),
11✔
14
      outputs_(outputs),
11✔
15
      inputs_(inputs),
11✔
16
      side_effect_(side_effect) {
22✔
17

18
      };
11✔
19

20
const LibraryNodeCode& LibraryNode::code() const { return this->code_; };
5✔
21

NEW
22
const std::vector<std::string>& LibraryNode::inputs() const { return this->inputs_; };
×
23

NEW
24
const std::vector<std::string>& LibraryNode::outputs() const { return this->outputs_; };
×
25

NEW
26
const std::string& LibraryNode::input(size_t index) const { return this->inputs_[index]; };
×
27

NEW
28
const std::string& LibraryNode::output(size_t index) const { return this->outputs_[index]; };
×
29

30
bool LibraryNode::side_effect() const { return this->side_effect_; };
2✔
31

NEW
32
bool LibraryNode::needs_connector(size_t index) const {
×
33
    // Is non-constant, if starts with _in prefix
NEW
34
    if (this->inputs_[index].compare(0, 3, "_in") == 0) {
×
NEW
35
        return true;
×
36
    }
NEW
37
    return false;
×
NEW
38
};
×
39

40
std::unique_ptr<DataFlowNode> LibraryNode::clone(const graph::Vertex vertex,
1✔
41
                                                 DataFlowGraph& parent) const {
42
    return std::unique_ptr<LibraryNode>(new LibraryNode(this->debug_info_, vertex, parent,
2✔
43
                                                        this->code_, this->outputs_, this->inputs_,
1✔
44
                                                        this->side_effect_));
1✔
45
};
×
46

47
void LibraryNode::replace(const symbolic::Expression& old_expression,
×
48
                          const symbolic::Expression& new_expression) {};
×
49

50
}  // namespace data_flow
51
}  // namespace sdfg
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