Coverage Report

Created: 2025-12-08 06:13

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/quantlib/ql/cashflows/simplecashflow.cpp
Line
Count
Source
1
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3
/*
4
 Copyright (C) 2000, 2001, 2002, 2003 RiskMap srl
5
 Copyright (C) 2010 Ferdinando Ametrano
6
7
 This file is part of QuantLib, a free-software/open-source library
8
 for financial quantitative analysts and developers - http://quantlib.org/
9
10
 QuantLib is free software: you can redistribute it and/or modify it
11
 under the terms of the QuantLib license.  You should have received a
12
 copy of the license along with this program; if not, please email
13
 <quantlib-dev@lists.sf.net>. The license is also available online at
14
 <https://www.quantlib.org/license.shtml>.
15
16
 This program is distributed in the hope that it will be useful, but WITHOUT
17
 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
18
 FOR A PARTICULAR PURPOSE.  See the license for more details.
19
*/
20
21
#include <ql/cashflows/simplecashflow.hpp>
22
23
namespace QuantLib {
24
25
    SimpleCashFlow::SimpleCashFlow(Real amount,
26
                                   const Date& date)
27
24.5M
    : amount_(amount), date_(date)
28
24.5M
    {
29
24.5M
        QL_REQUIRE(date_!=Date(), "null date SimpleCashFlow");
30
31
24.5M
        QL_REQUIRE(amount_!=Null<Real>(), "null amount SimpleCashFlow");
32
24.5M
    }
QuantLib::SimpleCashFlow::SimpleCashFlow(double, QuantLib::Date const&)
Line
Count
Source
27
24.5M
    : amount_(amount), date_(date)
28
24.5M
    {
29
24.5M
        QL_REQUIRE(date_!=Date(), "null date SimpleCashFlow");
30
31
24.5M
        QL_REQUIRE(amount_!=Null<Real>(), "null amount SimpleCashFlow");
32
24.5M
    }
Unexecuted instantiation: QuantLib::SimpleCashFlow::SimpleCashFlow(double, QuantLib::Date const&)
33
34
}