Coverage Report

Created: 2024-09-08 06:06

/src/qpdf/libqpdf/QPDF_Destroyed.cc
Line
Count
Source (jump to first uncovered line)
1
#include <qpdf/QPDF_Destroyed.hh>
2
3
#include <stdexcept>
4
5
QPDF_Destroyed::QPDF_Destroyed() :
6
    QPDFValue(::ot_destroyed)
7
1
{
8
1
}
9
10
std::shared_ptr<QPDFValue>
11
QPDF_Destroyed::getInstance()
12
403k
{
13
403k
    static std::shared_ptr<QPDFValue> instance(new QPDF_Destroyed());
14
403k
    return instance;
15
403k
}
16
17
std::shared_ptr<QPDFObject>
18
QPDF_Destroyed::copy(bool shallow)
19
0
{
20
0
    throw std::logic_error("attempted to shallow copy QPDFObjectHandle from destroyed QPDF");
21
0
    return nullptr;
22
0
}
23
24
std::string
25
QPDF_Destroyed::unparse()
26
0
{
27
0
    throw std::logic_error("attempted to unparse a QPDFObjectHandle from a destroyed QPDF");
28
0
    return "";
29
0
}
30
31
void
32
QPDF_Destroyed::writeJSON(int json_version, JSON::Writer& p)
33
0
{
34
0
    throw std::logic_error("attempted to get JSON from a QPDFObjectHandle from a destroyed QPDF");
35
0
}