Code cleanup

Change-Id: Idb334cf19a2b61759cb443b6c60dc76b1865d774
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
This commit is contained in:
Adam Cetnerowski
2020-07-31 08:29:45 +02:00
committed by sys_ocldev
parent e72246a74d
commit 54078d381b

View File

@@ -1424,7 +1424,8 @@ TEST(YamlTreeFindChildByKey, WhenChildWithKeyDoesNotExistThenReturnsNull) {
NEO::Yaml::TokensCache tokens;
std::string warnings;
std::string errors;
bool success = NEO::Yaml::tokenize(yaml, lines, tokens, errors, warnings);
auto success = NEO::Yaml::tokenize(yaml, lines, tokens, errors, warnings);
EXPECT_TRUE(success);
NEO::Yaml::NodesCache treeNodes;
success = NEO::Yaml::buildTree(lines, tokens, treeNodes, errors, warnings);
@@ -1460,7 +1461,8 @@ TEST(YamlTreeFindChildByKey, WhenChildWithKeyDoesExistThenReturnsIt) {
NEO::Yaml::TokensCache tokens;
std::string warnings;
std::string errors;
bool success = NEO::Yaml::tokenize(yaml, lines, tokens, errors, warnings);
auto success = NEO::Yaml::tokenize(yaml, lines, tokens, errors, warnings);
EXPECT_TRUE(success);
NEO::Yaml::NodesCache treeNodes;
success = NEO::Yaml::buildTree(lines, tokens, treeNodes, errors, warnings);
@@ -1546,7 +1548,8 @@ TEST(YamlTreeGetFirstChild, WhenChildExistsThenReturnsIt) {
NEO::Yaml::TokensCache tokens;
std::string warnings;
std::string errors;
bool success = NEO::Yaml::tokenize(yaml, lines, tokens, errors, warnings);
auto success = NEO::Yaml::tokenize(yaml, lines, tokens, errors, warnings);
EXPECT_TRUE(success);
NEO::Yaml::NodesCache treeNodes;
success = NEO::Yaml::buildTree(lines, tokens, treeNodes, errors, warnings);
@@ -1579,7 +1582,8 @@ TEST(YamlTreeGetLastChild, WhenChildExistsThenReturnsIt) {
NEO::Yaml::TokensCache tokens;
std::string warnings;
std::string errors;
bool success = NEO::Yaml::tokenize(yaml, lines, tokens, errors, warnings);
auto success = NEO::Yaml::tokenize(yaml, lines, tokens, errors, warnings);
EXPECT_TRUE(success);
NEO::Yaml::NodesCache treeNodes;
success = NEO::Yaml::buildTree(lines, tokens, treeNodes, errors, warnings);
@@ -1774,7 +1778,8 @@ TEST(YamlTreeBuildDebugNodes, GivenTreeNodesThenBuildsDebugFriendlyRepresentatio
NEO::Yaml::TokensCache tokens;
std::string warnings;
std::string errors;
bool success = NEO::Yaml::tokenize(yaml, lines, tokens, errors, warnings);
auto success = NEO::Yaml::tokenize(yaml, lines, tokens, errors, warnings);
EXPECT_TRUE(success);
NEO::Yaml::NodesCache treeNodes;
success = NEO::Yaml::buildTree(lines, tokens, treeNodes, errors, warnings);