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

ossia / score / 41358673654

01 Nov 2026 10:44PM UTC coverage: 51.93% (-0.3%) from 52.268%
41358673654

Pull #2373

github

web-flow
Merge 8cdd0145c into 07f27012e
Pull Request #2373: Monitoring: scopes, meters and viewers for every data type

2061 of 6884 new or added lines in 87 files covered. (29.94%)

35 existing lines in 12 files now uncovered.

188138 of 362292 relevant lines covered (51.93%)

306420.4 hits per line

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

42.86
/src/plugins/score-lib-process/Process/Commands/SetControlValue.cpp
1
#include "SetControlValue.hpp"
2

3
namespace Process
4
{
5

6
SetControlValue::SetControlValue(const ControlInlet& obj, ossia::value newval)
509 ✔
7
    : m_path{obj}
509 ✔
8
    , m_old{obj.value()}
509 ✔
9
    , m_new{newval}
509 ✔
10
{
509 ✔
11
}
509 ✔
12

13
SetControlValue::~SetControlValue() { }
1,018 ✔
14

15
void SetControlValue::undo(const score::DocumentContext& ctx) const
15 ✔
16
{
17
  m_path.find(ctx).setValue(m_old);
15 ✔
18
}
15 ✔
19

20
void SetControlValue::redo(const score::DocumentContext& ctx) const
521 ✔
21
{
22
  if(auto obj = m_path.try_find(ctx))
521 ✔
23
  {
24
    obj->setValue(m_new);
521 ✔
25
  }
521 ✔
26
  else
27
  {
28
    qDebug() << "Could not find: " << m_path.unsafePath().toString();
×
29
  }
30
}
521 ✔
31

32
void SetControlValue::update(const ControlInlet& obj, ossia::value newval)
11 ✔
33
{
34
  m_new = std::move(newval);
11 ✔
35
}
11 ✔
36

NEW
37
bool SetControlValue::compatible(const ControlInlet& obj, const ossia::value&) const
×
38
{
NEW
39
  return m_path == Path<ControlInlet>{obj};
×
40
}
41

42
void SetControlValue::serializeImpl(DataStreamInput& stream) const
508 ✔
43
{
44
  stream << m_path << m_old << m_new;
508 ✔
45
}
508 ✔
46

47
void SetControlValue::deserializeImpl(DataStreamOutput& stream)
×
48
{
49
  stream >> m_path >> m_old >> m_new;
×
50
}
×
51

52
SetControlOutletValue::SetControlOutletValue(
×
53
    const ControlOutlet& obj, ossia::value newval)
54
    : m_path{obj}
×
55
    , m_old{obj.value()}
×
56
    , m_new{newval}
×
57
{
×
58
}
×
59

60
SetControlOutletValue::~SetControlOutletValue() { }
×
61

62
void SetControlOutletValue::undo(const score::DocumentContext& ctx) const
×
63
{
64
  m_path.find(ctx).setValue(m_old);
×
65
}
×
66

67
void SetControlOutletValue::redo(const score::DocumentContext& ctx) const
×
68
{
69
  m_path.find(ctx).setValue(m_new);
×
70
}
×
71

72
void SetControlOutletValue::update(const ControlOutlet& obj, ossia::value newval)
×
73
{
74
  m_new = std::move(newval);
×
75
}
×
76

77
void SetControlOutletValue::serializeImpl(DataStreamInput& stream) const
×
78
{
79
  stream << m_path << m_old << m_new;
×
80
}
×
81

82
void SetControlOutletValue::deserializeImpl(DataStreamOutput& stream)
×
83
{
84
  stream >> m_path >> m_old >> m_new;
×
85
}
×
86

87
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc