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

ossia / score / 30507431705

30 Jul 2026 02:04AM UTC coverage: 15.263% (-0.06%) from 15.321%
30507431705

push

github

jcelerier
audio: simplify pretty name for Default device

0 of 2 new or added lines in 1 file covered. (0.0%)

1386 existing lines in 18 files now uncovered.

30460 of 199565 relevant lines covered (15.26%)

1075.35 hits per line

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

75.0
/src/plugins/score-lib-state/State/ExpressionParser.cpp
1
// This is an open source non-commercial project. Dear PVS-Studio, please check
2
// it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
3

4
#include <State/ExpressionParser.hpp>
5

6
std::optional<State::Expression> State::parseExpression(const std::string& input)
63✔
7
{
8
  auto f(std::begin(input)), l(std::end(input));
63✔
9
  auto p = std::make_unique<Expression_parser<decltype(f)>>();
63✔
10
  try
11
  {
12
    expr_raw result;
63✔
13
    bool ok = qi::phrase_parse(f, l, *p, qi::standard::space, result);
63✔
14

15
    if(!ok)
63✔
16
    {
17
      return {};
26✔
18
    }
19

20
    State::Expression e;
37✔
21

22
    Expression_builder bldr{&e};
37✔
23
    boost::apply_visitor(bldr, result);
37✔
24

25
    return e;
37✔
26
  }
63✔
27
  catch(const qi::expectation_failure<decltype(f)>& e)
28
  {
29
    // SCORE_BREAKPOINT;
UNCOV
30
    return {};
×
UNCOV
31
  }
×
32
  catch(...)
33
  {
34
    // SCORE_BREAKPOINT;
UNCOV
35
    return {};
×
UNCOV
36
  }
×
37
}
63✔
38

39
std::optional<State::Expression> State::parseExpression(const QString& str)
17✔
40
{
41
  return parseExpression(str.toStdString());
17✔
UNCOV
42
}
×
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