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

daisytuner / sdfglib / 16069945621

04 Jul 2025 08:56AM UTC coverage: 64.375% (-0.2%) from 64.606%
16069945621

push

github

web-flow
Merge pull request #137 from daisytuner/clang-format

runs clang-format on codebase

609 of 827 new or added lines in 63 files covered. (73.64%)

46 existing lines in 30 files now uncovered.

8578 of 13325 relevant lines covered (64.38%)

177.24 hits per line

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

69.57
/src/types/scalar.cpp
1
#include "sdfg/types/scalar.h"
2

3
namespace sdfg {
4
namespace types {
5

6
Scalar::Scalar(PrimitiveType primitive_type) : primitive_type_(primitive_type) {};
772✔
7

8
Scalar::Scalar(StorageType storage_type, size_t alignment, const std::string& initializer, PrimitiveType primitive_type)
1,303✔
9
    : IType(storage_type, alignment, initializer), primitive_type_(primitive_type) {};
1,303✔
10

11
PrimitiveType Scalar::primitive_type() const { return this->primitive_type_; };
1,257✔
12

13
bool Scalar::is_symbol() const { return types::is_integer(this->primitive_type_); };
722✔
14

15
TypeID Scalar::type_id() const { return TypeID::Scalar; };
5✔
16

17
bool Scalar::operator==(const IType& other) const {
31✔
18
    if (auto scalar_type = dynamic_cast<const Scalar*>(&other)) {
31✔
19
        return this->primitive_type_ == scalar_type->primitive_type_;
31✔
20
    } else {
21
        return false;
×
22
    }
23
};
31✔
24

25
Scalar Scalar::as_signed() const {
1✔
26
    return Scalar(this->storage_type(), this->alignment(), this->initializer(), types::as_signed(this->primitive_type_));
1✔
UNCOV
27
};
×
28

29
Scalar Scalar::as_unsigned() const {
1✔
30
    return Scalar(this->storage_type(), this->alignment(), this->initializer(), types::as_unsigned(this->primitive_type_));
1✔
UNCOV
31
};
×
32

33
std::unique_ptr<IType> Scalar::clone() const {
1,273✔
34
    return std::make_unique<Scalar>(this->storage_type(), this->alignment(), this->initializer(), this->primitive_type_);
1,273✔
UNCOV
35
};
×
36

37
std::string Scalar::print() const {
×
38
    return "Scalar(" + std::string(primitive_type_to_string(this->primitive_type_)) + ")";
×
39
};
×
40

41
} // namespace types
42
} // 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

© 2025 Coveralls, Inc