Improve code coverage of binary encoder and decoder

This change contains ULTs, which improve the
coverage of BinaryEncoder and BinaryDecoder
classes.

Related-To: NEO-6834
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
This commit is contained in:
Patryk Wrobel
2022-04-01 16:37:48 +00:00
committed by Compute-Runtime-Automation
parent f09fd527f1
commit 50efd09ad8
8 changed files with 400 additions and 49 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -34,9 +34,13 @@ class BinaryDecoder {
public:
BinaryDecoder(const std::string &file, const std::string &patch, const std::string &dump)
: binaryFile(file), pathToPatch(patch), pathToDump(dump){};
BinaryDecoder(OclocArgHelper *helper) : argHelper(helper), iga(new IgaWrapper) {
iga->setMessagePrinter(argHelper->getPrinterRef());
};
}
MOCKABLE_VIRTUAL ~BinaryDecoder() = default;
int decode();
int validateInput(const std::vector<std::string> &args);