GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: tests/TestA.cpp Lines: 11 11 100.0 %
Date: 2021-03-10 23:02:29 Branches: 14 28 50.0 %

Line Branch Exec Source
1
#include <iostream>
2
3
#include <Eigen/Core>
4
5
#include "TestA.hpp"
6
7
using namespace eiquadprog::solvers;
8
using namespace eiquadprog::tests;
9
10



1
A::A() : Q_(2, 2), C_(2), Aeq_(0, 2), Beq_(0), Aineq_(0, 2), Bineq_(0), QP_() {
11
1
  QP_.reset(2, 0, 0);
12
13
1
  Q_.setZero();
14
1
  Q_(0, 0) = 1.0;
15
1
  Q_(1, 1) = 1.0;
16
17
1
  C_.setZero();
18
19
1
  expected_ = EIQUADPROG_FAST_OPTIMAL;
20
1
}
21
22
1
EiquadprogFast_status A::solve(Eigen::VectorXd &x) {
23
1
  return QP_.solve_quadprog(Q_, C_, Aeq_, Beq_, Aineq_, Bineq_, x);
24

3
}