Lines Matching full:element

365         const json element = R"(  in TEST()  local
381 auto chassis = parseChassis(element, chassisTemplates, services); in TEST()
393 const json element = R"( in TEST() local
404 auto chassis = parseChassis(element, chassisTemplates, services); in TEST()
416 const json element = R"( in TEST() local
428 auto chassis = parseChassis(element, chassisTemplates, services); in TEST()
438 // Test where fails: Element is not an object in TEST()
441 const json element = R"( [ "vdda", "vddb" ] )"_json; in TEST() local
443 parseChassis(element, chassisTemplates, services); in TEST()
448 EXPECT_STREQ(e.what(), "Element is not an object"); in TEST()
454 const json element = R"( in TEST() local
462 parseChassis(element, chassisTemplates, services); in TEST()
467 EXPECT_STREQ(e.what(), "Element is not an integer"); in TEST()
474 const json element = R"( in TEST() local
480 parseChassis(element, chassisTemplates, services); in TEST()
493 const json element = R"( in TEST() local
500 parseChassis(element, chassisTemplates, services); in TEST()
505 EXPECT_STREQ(e.what(), "Element is not a string"); in TEST()
512 const json element = R"( in TEST() local
519 parseChassis(element, chassisTemplates, services); in TEST()
531 const json element = R"( in TEST() local
538 parseChassis(element, chassisTemplates, services); in TEST()
543 EXPECT_STREQ(e.what(), "Element is not a string"); in TEST()
549 const json element = R"( in TEST() local
557 parseChassis(element, chassisTemplates, services); in TEST()
562 EXPECT_STREQ(e.what(), "Element contains an invalid property"); in TEST()
568 const json element = R"( in TEST() local
575 parseChassis(element, chassisTemplates, services); in TEST()
609 const json element = R"( in TEST() local
614 auto chassis = parseChassisArray(element, chassisTemplates, services); in TEST()
620 const json element = R"( in TEST() local
635 auto chassis = parseChassisArray(element, chassisTemplates, services); in TEST()
647 const json element = R"( in TEST() local
660 auto chassis = parseChassisArray(element, chassisTemplates, services); in TEST()
670 // Test where fails: Element is not an array in TEST()
673 const json element = R"( in TEST() local
679 parseChassisArray(element, chassisTemplates, services); in TEST()
684 EXPECT_STREQ(e.what(), "Element is not an array"); in TEST()
687 // Test where fails: Element within array is invalid in TEST()
690 const json element = R"( in TEST() local
700 parseChassisArray(element, chassisTemplates, services); in TEST()
705 EXPECT_STREQ(e.what(), "Element is not an integer"); in TEST()
711 const json element = R"( in TEST() local
720 parseChassisArray(element, chassisTemplates, services); in TEST()
725 EXPECT_STREQ(e.what(), "Element is not an integer"); in TEST()
734 const json element = R"( in TEST() local
753 auto chassis = parseChassisProperties(element, isChassisTemplate, in TEST()
776 const json element = R"( in TEST() local
796 auto chassis = parseChassisProperties(element, isChassisTemplate, in TEST()
814 // Test where fails: Element is not an object in TEST()
817 const json element = R"( true )"_json; in TEST() local
821 parseChassisProperties(element, isChassisTemplate, variables, services); in TEST()
826 EXPECT_STREQ(e.what(), "Element is not an object"); in TEST()
832 const json element = R"( in TEST() local
842 parseChassisProperties(element, isChassisTemplate, variables, services); in TEST()
853 const json element = R"( in TEST() local
862 parseChassisProperties(element, isChassisTemplate, variables, services); in TEST()
873 const json element = R"( in TEST() local
883 parseChassisProperties(element, isChassisTemplate, variables, services); in TEST()
894 const json element = R"( in TEST() local
903 parseChassisProperties(element, isChassisTemplate, variables, services); in TEST()
914 const json element = R"( in TEST() local
924 parseChassisProperties(element, isChassisTemplate, variables, services); in TEST()
929 EXPECT_STREQ(e.what(), "Element is not an integer"); in TEST()
935 const json element = R"( in TEST() local
945 parseChassisProperties(element, isChassisTemplate, variables, services); in TEST()
956 const json element = R"( in TEST() local
966 parseChassisProperties(element, isChassisTemplate, variables, services); in TEST()
971 EXPECT_STREQ(e.what(), "Element contains an empty string"); in TEST()
977 const json element = R"( in TEST() local
987 parseChassisProperties(element, isChassisTemplate, variables, services); in TEST()
992 EXPECT_STREQ(e.what(), "Element is not an array"); in TEST()
998 const json element = R"( in TEST() local
1009 parseChassisProperties(element, isChassisTemplate, variables, services); in TEST()
1014 EXPECT_STREQ(e.what(), "Element contains an invalid property"); in TEST()
1020 const json element = R"( in TEST() local
1031 parseChassisProperties(element, isChassisTemplate, variables, services); in TEST()
1036 EXPECT_STREQ(e.what(), "Element is not an integer"); in TEST()
1044 const json element = R"( in TEST() local
1062 auto [id, jsonRef] = parseChassisTemplate(element); in TEST()
1071 const json element = R"( in TEST() local
1079 auto [id, jsonRef] = parseChassisTemplate(element); in TEST()
1088 // Test where fails: Element is not an object in TEST()
1091 const json element = R"( [ "vdda", "vddb" ] )"_json; in TEST() local
1092 parseChassisTemplate(element); in TEST()
1097 EXPECT_STREQ(e.what(), "Element is not an object"); in TEST()
1103 const json element = R"( in TEST() local
1110 parseChassisTemplate(element); in TEST()
1121 const json element = R"( in TEST() local
1128 parseChassisTemplate(element); in TEST()
1139 const json element = R"( in TEST() local
1146 parseChassisTemplate(element); in TEST()
1157 const json element = R"( in TEST() local
1164 parseChassisTemplate(element); in TEST()
1175 const json element = R"( in TEST() local
1183 parseChassisTemplate(element); in TEST()
1188 EXPECT_STREQ(e.what(), "Element is not a string"); in TEST()
1194 const json element = R"( in TEST() local
1203 parseChassisTemplate(element); in TEST()
1208 EXPECT_STREQ(e.what(), "Element contains an invalid property"); in TEST()
1216 const json element = R"( in TEST() local
1220 auto chassisTemplates = parseChassisTemplateArray(element); in TEST()
1226 const json element = R"( in TEST() local
1242 auto chassisTemplates = parseChassisTemplateArray(element); in TEST()
1255 // Test where fails: Element is not an array in TEST()
1258 const json element = R"( in TEST() local
1263 parseChassisTemplateArray(element); in TEST()
1268 EXPECT_STREQ(e.what(), "Element is not an array"); in TEST()
1271 // Test where fails: Element within array is invalid in TEST()
1274 const json element = R"( in TEST() local
1287 parseChassisTemplateArray(element); in TEST()
1300 const json element = R"( in TEST() local
1306 auto gpio = parseGPIO(element, variables); in TEST()
1313 const json element = R"( in TEST() local
1320 auto gpio = parseGPIO(element, variables); in TEST()
1327 const json element = R"( in TEST() local
1335 auto gpio = parseGPIO(element, variables); in TEST()
1340 // Test where fails: Element is not an object in TEST()
1343 const json element = R"( [ "vdda", "vddb" ] )"_json; in TEST() local
1345 parseGPIO(element, variables); in TEST()
1350 EXPECT_STREQ(e.what(), "Element is not an object"); in TEST()
1356 const json element = R"( in TEST() local
1362 parseGPIO(element, variables); in TEST()
1373 const json element = R"( in TEST() local
1380 parseGPIO(element, variables); in TEST()
1385 EXPECT_STREQ(e.what(), "Element is not an unsigned integer"); in TEST()
1391 const json element = R"( in TEST() local
1398 parseGPIO(element, variables); in TEST()
1403 EXPECT_STREQ(e.what(), "Element is not a boolean"); in TEST()
1409 const json element = R"( in TEST() local
1416 parseGPIO(element, variables); in TEST()
1421 EXPECT_STREQ(e.what(), "Element contains an invalid property"); in TEST()
1427 const json element = R"( in TEST() local
1435 parseGPIO(element, variables); in TEST()
1440 EXPECT_STREQ(e.what(), "Element is not an unsigned integer"); in TEST()
1448 const json element = R"( in TEST() local
1455 auto [bus, address] = parseI2CInterface(element, variables); in TEST()
1462 const json element = R"( in TEST() local
1470 auto [bus, address] = parseI2CInterface(element, variables); in TEST()
1475 // Test where fails: Element is not an object in TEST()
1478 const json element = R"( [ 1, "0x70" ] )"_json; in TEST() local
1480 parseI2CInterface(element, variables); in TEST()
1485 EXPECT_STREQ(e.what(), "Element is not an object"); in TEST()
1491 const json element = R"( in TEST() local
1497 parseI2CInterface(element, variables); in TEST()
1508 const json element = R"( in TEST() local
1514 parseI2CInterface(element, variables); in TEST()
1525 const json element = R"( in TEST() local
1532 parseI2CInterface(element, variables); in TEST()
1537 EXPECT_STREQ(e.what(), "Element is not an integer"); in TEST()
1543 const json element = R"( in TEST() local
1550 parseI2CInterface(element, variables); in TEST()
1555 EXPECT_STREQ(e.what(), "Element is not a string"); in TEST()
1561 const json element = R"( in TEST() local
1569 parseI2CInterface(element, variables); in TEST()
1574 EXPECT_STREQ(e.what(), "Element contains an invalid property"); in TEST()
1580 const json element = R"( in TEST() local
1588 parseI2CInterface(element, variables); in TEST()
1593 EXPECT_STREQ(e.what(), "Element is not an integer"); in TEST()
1601 const json element = R"( in TEST() local
1614 auto powerSequencer = parsePowerSequencer(element, variables, services); in TEST()
1629 const json element = R"( in TEST() local
1647 auto powerSequencer = parsePowerSequencer(element, variables, services); in TEST()
1660 const json element = R"( in TEST() local
1669 auto powerSequencer = parsePowerSequencer(element, variables, services); in TEST()
1679 // Test where fails: Element is not an object in TEST()
1682 const json element = R"( [ "vdda", "vddb" ] )"_json; in TEST() local
1685 parsePowerSequencer(element, variables, services); in TEST()
1690 EXPECT_STREQ(e.what(), "Element is not an object"); in TEST()
1696 const json element = R"( in TEST() local
1706 parsePowerSequencer(element, variables, services); in TEST()
1717 const json element = R"( in TEST() local
1727 parsePowerSequencer(element, variables, services); in TEST()
1738 const json element = R"( in TEST() local
1748 parsePowerSequencer(element, variables, services); in TEST()
1760 const json element = R"( in TEST() local
1770 parsePowerSequencer(element, variables, services); in TEST()
1782 const json element = R"( in TEST() local
1792 parsePowerSequencer(element, variables, services); in TEST()
1803 const json element = R"( in TEST() local
1814 parsePowerSequencer(element, variables, services); in TEST()
1819 EXPECT_STREQ(e.what(), "Element is not a string"); in TEST()
1825 const json element = R"( in TEST() local
1836 parsePowerSequencer(element, variables, services); in TEST()
1847 const json element = R"( in TEST() local
1858 parsePowerSequencer(element, variables, services); in TEST()
1863 EXPECT_STREQ(e.what(), "Element is not an object"); in TEST()
1869 const json element = R"( in TEST() local
1880 parsePowerSequencer(element, variables, services); in TEST()
1885 EXPECT_STREQ(e.what(), "Element is not a string"); in TEST()
1891 const json element = R"( in TEST() local
1902 parsePowerSequencer(element, variables, services); in TEST()
1907 EXPECT_STREQ(e.what(), "Element is not a string"); in TEST()
1913 const json element = R"( in TEST() local
1924 parsePowerSequencer(element, variables, services); in TEST()
1929 EXPECT_STREQ(e.what(), "Element is not a string"); in TEST()
1935 const json element = R"( in TEST() local
1947 parsePowerSequencer(element, variables, services); in TEST()
1952 EXPECT_STREQ(e.what(), "Element contains an invalid property"); in TEST()
1958 const json element = R"( in TEST() local
1969 parsePowerSequencer(element, variables, services); in TEST()
1974 EXPECT_STREQ(e.what(), "Element is not an integer"); in TEST()
1982 const json element = R"( in TEST() local
1989 parsePowerSequencerArray(element, variables, services); in TEST()
1995 const json element = R"( in TEST() local
2016 parsePowerSequencerArray(element, variables, services); in TEST()
2028 const json element = R"( in TEST() local
2053 parsePowerSequencerArray(element, variables, services); in TEST()
2063 // Test where fails: Element is not an array in TEST()
2066 const json element = R"( in TEST() local
2073 parsePowerSequencerArray(element, variables, services); in TEST()
2078 EXPECT_STREQ(e.what(), "Element is not an array"); in TEST()
2081 // Test where fails: Element within array is invalid in TEST()
2084 const json element = R"( in TEST() local
2098 parsePowerSequencerArray(element, variables, services); in TEST()
2103 EXPECT_STREQ(e.what(), "Element is not an object"); in TEST()
2109 const json element = R"( in TEST() local
2123 parsePowerSequencerArray(element, variables, services); in TEST()
2128 EXPECT_STREQ(e.what(), "Element is not hexadecimal string"); in TEST()
2136 const json element = R"( in TEST() local
2142 auto rail = parseRail(element, variables); in TEST()
2154 const json element = R"( in TEST() local
2166 auto rail = parseRail(element, variables); in TEST()
2183 const json element = R"( in TEST() local
2203 auto rail = parseRail(element, variables); in TEST()
2218 // Test where fails: Element is not an object in TEST()
2221 const json element = R"( [ "vdda", "vddb" ] )"_json; in TEST() local
2223 parseRail(element, variables); in TEST()
2228 EXPECT_STREQ(e.what(), "Element is not an object"); in TEST()
2234 const json element = R"( in TEST() local
2240 parseRail(element, variables); in TEST()
2251 const json element = R"( in TEST() local
2258 parseRail(element, variables); in TEST()
2263 EXPECT_STREQ(e.what(), "Element is not a string"); in TEST()
2269 const json element = R"( in TEST() local
2276 parseRail(element, variables); in TEST()
2281 EXPECT_STREQ(e.what(), "Element is not a string"); in TEST()
2287 const json element = R"( in TEST() local
2294 parseRail(element, variables); in TEST()
2299 EXPECT_STREQ(e.what(), "Element is not an 8-bit unsigned integer"); in TEST()
2305 const json element = R"( in TEST() local
2312 parseRail(element, variables); in TEST()
2317 EXPECT_STREQ(e.what(), "Element is not a boolean"); in TEST()
2323 const json element = R"( in TEST() local
2330 parseRail(element, variables); in TEST()
2335 EXPECT_STREQ(e.what(), "Element is not a boolean"); in TEST()
2341 const json element = R"( in TEST() local
2348 parseRail(element, variables); in TEST()
2353 EXPECT_STREQ(e.what(), "Element is not a boolean"); in TEST()
2359 const json element = R"( in TEST() local
2366 parseRail(element, variables); in TEST()
2371 EXPECT_STREQ(e.what(), "Element is not an object"); in TEST()
2377 const json element = R"( in TEST() local
2384 parseRail(element, variables); in TEST()
2396 const json element = R"( in TEST() local
2403 parseRail(element, variables); in TEST()
2414 const json element = R"( in TEST() local
2421 parseRail(element, variables); in TEST()
2426 EXPECT_STREQ(e.what(), "Element contains an invalid property"); in TEST()
2432 const json element = R"( in TEST() local
2439 parseRail(element, variables); in TEST()
2452 const json element = R"( in TEST() local
2457 auto rails = parseRailArray(element, variables); in TEST()
2463 const json element = R"( in TEST() local
2470 auto rails = parseRailArray(element, variables); in TEST()
2478 const json element = R"( in TEST() local
2487 auto rails = parseRailArray(element, variables); in TEST()
2494 // Test where fails: Element is not an array in TEST()
2497 const json element = R"( in TEST() local
2503 parseRailArray(element, variables); in TEST()
2508 EXPECT_STREQ(e.what(), "Element is not an array"); in TEST()
2511 // Test where fails: Element within array is invalid in TEST()
2514 const json element = R"( in TEST() local
2521 parseRailArray(element, variables); in TEST()
2526 EXPECT_STREQ(e.what(), "Element is not an object"); in TEST()
2532 const json element = R"( in TEST() local
2540 parseRailArray(element, variables); in TEST()
2545 EXPECT_STREQ(e.what(), "Element is not an 8-bit unsigned integer"); in TEST()
2553 const json element = R"( in TEST() local
2570 auto chassis = parseRoot(element, services); in TEST()
2582 const json element = R"( in TEST() local
2612 auto chassis = parseRoot(element, services); in TEST()
2622 // Test where fails: Element is not an object in TEST()
2625 const json element = R"( [ "VDD_CPU0", "VCS_CPU1" ] )"_json; in TEST() local
2627 parseRoot(element, services); in TEST()
2632 EXPECT_STREQ(e.what(), "Element is not an object"); in TEST()
2638 const json element = R"( in TEST() local
2652 parseRoot(element, services); in TEST()
2663 const json element = R"( in TEST() local
2676 parseRoot(element, services); in TEST()
2681 EXPECT_STREQ(e.what(), "Element is not an array"); in TEST()
2687 const json element = R"( in TEST() local
2699 parseRoot(element, services); in TEST()
2704 EXPECT_STREQ(e.what(), "Element is not an integer"); in TEST()
2710 const json element = R"( in TEST() local
2723 parseRoot(element, services); in TEST()
2728 EXPECT_STREQ(e.what(), "Element contains an invalid property"); in TEST()
2736 const json element = R"( in TEST() local
2740 auto variables = parseVariables(element); in TEST()
2746 const json element = R"( in TEST() local
2752 auto variables = parseVariables(element); in TEST()
2758 // Test where fails: Element is not an object in TEST()
2761 const json element = R"( in TEST() local
2767 parseVariables(element); in TEST()
2772 EXPECT_STREQ(e.what(), "Element is not an object"); in TEST()
2778 const json element = R"( in TEST() local
2784 parseVariables(element); in TEST()
2793 const json element = R"( in TEST() local
2799 parseVariables(element); in TEST()
2804 EXPECT_STREQ(e.what(), "Element is not a string"); in TEST()
2810 const json element = R"( in TEST() local
2816 parseVariables(element); in TEST()
2821 EXPECT_STREQ(e.what(), "Element contains an empty string"); in TEST()
2827 const json element = R"( in TEST() local
2833 parseVariables(element); in TEST()
2838 EXPECT_STREQ(e.what(), "Element contains an empty string"); in TEST()