Coverage Report

Created: 2026-11-13 08:07

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/serenity/Userland/Libraries/LibCrypto/Checksum/ChecksumFunction.h
Line
Count
Source
1
/*
2
 * Copyright (c) 2020, the SerenityOS developers.
3
 *
4
 * SPDX-License-Identifier: BSD-2-Clause
5
 */
6
7
#pragma once
8
9
#include <AK/Span.h>
10
11
namespace Crypto::Checksum {
12
13
template<typename ChecksumT>
14
class ChecksumFunction {
15
public:
16
    using ChecksumType = ChecksumT;
17
18
    virtual void update(ReadonlyBytes data) = 0;
19
    virtual ChecksumType digest() = 0;
20
21
protected:
22
244k
    virtual ~ChecksumFunction() = default;
Crypto::Checksum::ChecksumFunction<unsigned int>::~ChecksumFunction()
Line
Count
Source
22
47.3k
    virtual ~ChecksumFunction() = default;
Crypto::Checksum::ChecksumFunction<unsigned short>::~ChecksumFunction()
Line
Count
Source
22
98.5k
    virtual ~ChecksumFunction() = default;
Crypto::Checksum::ChecksumFunction<unsigned char>::~ChecksumFunction()
Line
Count
Source
22
98.5k
    virtual ~ChecksumFunction() = default;
23
};
24
25
}