Tag Parser: TestFile Struct Reference

Tag Parser 12.5.3 C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags

Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
TestFile Struct Reference

The TestFile struct holds the path (relative to testfile dir) and checksum of a test file. More...

Collaboration diagram for TestFile:
[legend]

## Public Member Functions
Sha256Checksum | computeSha256Sum () const
| Computes the SHA-256 checksums for the file using OpenSSL.
void | verifyChecksum () const
| Checks whether the expected SHA-256 checksum matches the actual checksum.

## Public Attributes
const char * | path
Sha256Checksum | expectedSha256sum

## Detailed Description

The TestFile struct holds the path (relative to testfile dir) and checksum of a test file.

Remarks
  Generated with scripts/list_required_testfiles.sh.

Definition at line 51 of file testfilecheck.cpp.

## Member Function Documentation

## ◆ computeSha256Sum()

Sha256Checksum TestFile::computeSha256Sum | ( |  | ) | const

Computes the SHA-256 checksums for the file using OpenSSL.

Definition at line 104 of file testfilecheck.cpp.

## ◆ verifyChecksum()

void TestFile::verifyChecksum | ( |  | ) | const

Checks whether the expected SHA-256 checksum matches the actual checksum.

Definition at line 162 of file testfilecheck.cpp.

## Member Data Documentation

## ◆ expectedSha256sum

Sha256Checksum TestFile::expectedSha256sum

Definition at line 53 of file testfilecheck.cpp.

## ◆ path

const char* TestFile::path

Definition at line 52 of file testfilecheck.cpp.

The documentation for this struct was generated from the following file:

- tests/testfilecheck.cpp