Hoyt's FORK of DemoIccMAX 2.1.17.hoyt
Documentation for Hoyt's FORK of DemoIccMAX
|
Unit tests for CIccTagXmlProfileSequenceId() More...
#include <libxml/parser.h>
#include <libxml/tree.h>
#include "IccTagXml.h"
#include <iostream>
#include <string>
Go to the source code of this file.
Functions | |
int | main () |
Core and external libraries necessary for the fuzzer functionality. | |
Unit tests for CIccTagXmlProfileSequenceId()
This unit test is designed to verify the parsing functionality of the CIccTagXmlProfileSequenceId class from the IccLibXML library. It uses libxml2 to create a sample XML document and tests how the CIccTagXmlProfileSequenceId class processes this input. The test checks for both correct and incorrect scenarios.
Expected Outcomes:
Compile: clang++ -std=c++11 -g -fsanitize=address,undefined -fno-omit-frame-pointer \ -o TestCIccTagXmlProfileSequenceId TestCIccTagXmlProfileSequenceId.cpp \ -I/usr/local/include \ -I/IccProfLib \ -I/IccXML/IccLibXML \ -L/Build/IccProfLib \ -L/Build/IccXML \ -L/usr/local/Cellar/libxml2/2.12.6/lib/ \ -lIccProfLib2 -lIccXML2 -lpthread -lxml2
Usage: Compile and run this file to perform the tests. The console output will display the test results, showing whether each scenario passed or failed.
Comment: If you run this Code and think you've found a new, unique and distinct Bug... Please Submit a PR to increase improve the CIccTagXmlProfileSequenceId() Unit Test.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file TestCIccTagXmlProfileSequenceId.cpp.
int main | ( | ) |
Core and external libraries necessary for the fuzzer functionality.
This section includes the necessary headers for the XML parsing library (libxml), the standard I/O stream library, and a custom header for the CIccTagXmlProfileSequenceId class. These libraries are essential for handling XML documents, performing standard input/output operations, and utilizing the custom functionality of the CIccTagXmlProfileSequenceId class.
Main function to initiate unit tests for the CIccTagXmlProfileSequenceId class.
This function initializes the libxml library, creates a new XML document with a root node and a child node, and tests the ParseXml method of the CIccTagXmlProfileSequenceId class. The test result is output to the console. Finally, the function cleans up the XML document and the libxml parser to prevent memory leaks.
Definition at line 78 of file TestCIccTagXmlProfileSequenceId.cpp.
References CIccTagXmlProfileSequenceId::ParseXml().