From ba0692c3cd9522022e9f66768efa7aee5f2ca73c Mon Sep 17 00:00:00 2001 From: krypton36 Date: Wed, 11 May 2022 10:59:49 -0700 Subject: [PATCH] Add new function to deal with Nullable not value comparison (#17363) * Add new function to deal with Nullable negative comparison * Generated Code. --- .../commands/tests/TestCommandBridge.h | 9 +- .../tests/partials/test_cluster.zapt | 4 +- .../tests/partials/saveAs/maybeSaveAs.zapt | 23 +- .../tests/partials/value_equals.zapt | 3 +- src/app/tests/suites/TestCluster.yaml | 46 + .../tests/suites/include/ConstraintsChecker.h | 24 + .../zap-generated/test/Commands.h | 7916 +++++++++-------- .../chip-tool/zap-generated/test/Commands.h | 1922 ++-- 8 files changed, 5217 insertions(+), 4730 deletions(-) diff --git a/examples/chip-tool-darwin/commands/tests/TestCommandBridge.h b/examples/chip-tool-darwin/commands/tests/TestCommandBridge.h index 528f0cb68c1448..a1746542a7896d 100644 --- a/examples/chip-tool-darwin/commands/tests/TestCommandBridge.h +++ b/examples/chip-tool-darwin/commands/tests/TestCommandBridge.h @@ -282,8 +282,15 @@ class TestCommandBridge : public CHIPCommandBridge, return ConstraintsChecker::CheckConstraintNotValue(itemName, currentValue, expectedValue); } - bool CheckConstraintNotValue(const char * _Nonnull itemName, const NSNumber * _Nonnull current, NSNumber * _Nonnull expected) + bool CheckConstraintNotValue(const char * _Nonnull itemName, const NSNumber * _Nullable current, NSNumber * _Nullable expected) { + if (current == nil && expected == nil) { + Exit(std::string(itemName) + " got unexpected value. Both values are nil."); + return false; + } + if ((current == nil) != (expected == nil)) { + return true; + } if ([current isEqualToNumber:expected]) { Exit(std::string(itemName) + " got unexpected value: " + std::string([[current stringValue] UTF8String])); return false; diff --git a/examples/chip-tool-darwin/templates/tests/partials/test_cluster.zapt b/examples/chip-tool-darwin/templates/tests/partials/test_cluster.zapt index ae42bdc43f834e..3453a12282b4ae 100644 --- a/examples/chip-tool-darwin/templates/tests/partials/test_cluster.zapt +++ b/examples/chip-tool-darwin/templates/tests/partials/test_cluster.zapt @@ -196,10 +196,10 @@ class {{filename}}: public TestCommandBridge {{#chip_tests_item_responses}} {{#if error}} - VerifyOrReturn(CheckValue("status", err, {{error}})); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, {{error}})); NextTest(); {{else}} - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); {{#unless isSubscribeAttribute}} {{#chip_tests_item_response_parameters}} diff --git a/examples/chip-tool/templates/tests/partials/saveAs/maybeSaveAs.zapt b/examples/chip-tool/templates/tests/partials/saveAs/maybeSaveAs.zapt index 5c29e99e5d5046..3a3beb3fac10b8 100644 --- a/examples/chip-tool/templates/tests/partials/saveAs/maybeSaveAs.zapt +++ b/examples/chip-tool/templates/tests/partials/saveAs/maybeSaveAs.zapt @@ -1,12 +1,29 @@ +{{#*inline "data"}} +{{#if isNullable}}{{asPropertyValue}}.Value().data(){{else}}{{asPropertyValue}}.data(){{/if}} +{{/inline}} +{{#*inline "size"}} +{{#if isNullable}}{{asPropertyValue}}.Value().size(){{else}}{{asPropertyValue}}.size(){{/if}} +{{/inline}} {{#if saveAs}} {{#if (isString type)}} + {{#if isNullable}} + if ({{asPropertyValue}}.IsNull()){ + {{saveAs}}.SetNull(); + } + else { + {{/if}} if ({{saveAs}}Buffer != nullptr) { chip::Platform::MemoryFree({{saveAs}}Buffer); } - {{saveAs}}Buffer = static_cast<{{#if (isOctetString type)}}uint8_t{{else}}char{{/if}} *>(chip::Platform::MemoryAlloc({{asPropertyValue}}.size())); - memcpy({{saveAs}}Buffer, {{asPropertyValue}}.data(), {{asPropertyValue}}.size()); - {{saveAs}} = {{chipType}}({{saveAs}}Buffer, {{asPropertyValue}}.size()); + {{saveAs}}Buffer = static_cast<{{#if (isOctetString type)}}uint8_t{{else}}char{{/if}} *>(chip::Platform::MemoryAlloc({{>size}})); + memcpy({{saveAs}}Buffer, {{>data}}, {{>size}}); + {{#if isNullable}} + {{saveAs}}.SetNonNull({{saveAs}}Buffer, {{>size}}); + } + {{else}} + {{saveAs}} = {{chipType}}({{saveAs}}Buffer, {{>size}}); + {{/if}} {{else}} {{saveAs}} = {{asPropertyValue}}; {{/if}} diff --git a/examples/chip-tool/templates/tests/partials/value_equals.zapt b/examples/chip-tool/templates/tests/partials/value_equals.zapt index 0eb69da98c8f73..1678fbcaac269c 100644 --- a/examples/chip-tool/templates/tests/partials/value_equals.zapt +++ b/examples/chip-tool/templates/tests/partials/value_equals.zapt @@ -13,7 +13,7 @@ else { VerifyOrReturn(CheckValueNonNull("{{label}}", {{actual}})); - {{>valueEquals label=(concat label ".Value()") actual=(concat actual ".Value()") expected=(concat expected ".Value()") isNullable=false depth=(incrementDepth depth)}} + {{>valueEquals label=(concat label ".Value()") actual=(concat actual ".Value()") expected=(concat expected ".Value()") isNullable=false keepAsExpected=true depth=(incrementDepth depth)}} } {{else}} VerifyOrReturn(CheckValueNonNull("{{label}}", {{actual}})); @@ -51,6 +51,7 @@ {{else}} VerifyOrReturn(CheckValue{{#if (isString type)}}AsString{{/if}}("{{label}}", {{actual}}, {{~#if (chip_tests_variables_has expected)}}{{expected}} + {{else if keepAsExpected}}{{expected}} {{else if (isOctetString type)}}chip::ByteSpan(chip::Uint8::from_const_char("{{octetStringEscapedForCLiteral expected}}"), {{expected.length}}) {{else if (isCharString type)}}chip::CharSpan("{{expected}}", {{utf8StringLength expected}}) {{else if (chip_tests_config_has expected)}}m{{asUpperCamelCase expected}}.HasValue() ? m{{asUpperCamelCase expected}}.Value() : {{asTypedLiteral (chip_tests_config_get_default_value expected) (chip_tests_config_get_type expected)}} diff --git a/src/app/tests/suites/TestCluster.yaml b/src/app/tests/suites/TestCluster.yaml index 5d7101ee3a4553..47086856538f35 100644 --- a/src/app/tests/suites/TestCluster.yaml +++ b/src/app/tests/suites/TestCluster.yaml @@ -1652,6 +1652,7 @@ tests: command: "readAttribute" attribute: "nullable_boolean" response: + saveAs: booValueNull value: null - label: "Write attribute NULLABLE_BOOLEAN True" @@ -1666,6 +1667,13 @@ tests: response: value: true + - label: "Read attribute NULLABLE_BOOLEAN not null" + command: "readAttribute" + attribute: "nullable_boolean" + response: + constraints: + notValue: booValueNull + # Tests for nullable Bitmap8 attribute - label: "Write attribute NULLABLE_BITMAP8 Max Value" @@ -1692,6 +1700,7 @@ tests: command: "readAttribute" attribute: "nullable_bitmap8" response: + saveAs: nullableValue254 value: 254 - label: "Write attribute NULLABLE_BITMAP8 null Value" @@ -1706,6 +1715,13 @@ tests: response: value: null + - label: "Read attribute NULLABLE_BITMAP8 not 254 Value" + command: "readAttribute" + attribute: "nullable_bitmap8" + response: + constraints: + notValue: nullableValue254 + # Tests for nullable Bitmap16 attribute - label: "Write attribute NULLABLE_BITMAP16 Max Value" @@ -2758,6 +2774,7 @@ tests: command: "readAttribute" attribute: "nullable_enum_attr" response: + saveAs: nullableEnumAttr254 value: 254 - label: "Write attribute NULLABLE_SIMPLE_ENUM null Value" @@ -2772,6 +2789,13 @@ tests: response: value: null + - label: "Read attribute NULLABLE_SIMPLE_ENUM not 254 Value" + command: "readAttribute" + attribute: "nullable_enum_attr" + response: + constraints: + notValue: nullableEnumAttr254 + # Tests for Octet String attribute - label: "Read attribute NULLABLE_OCTET_STRING Default Value" @@ -2790,6 +2814,7 @@ tests: command: "readAttribute" attribute: "nullable_octet_string" response: + saveAs: nullableOctetStrTestValue value: "TestValue" - label: "Write attribute NULLABLE_OCTET_STRING" @@ -2816,6 +2841,13 @@ tests: response: value: "" + - label: "Read attribute NULLABLE_OCTET_STRING not TestValue" + command: "readAttribute" + attribute: "nullable_octet_string" + response: + constraints: + notValue: nullableOctetStrTestValue + # Tests for Char String attribute - label: "Read attribute NULLABLE_CHAR_STRING Default Value" @@ -2834,8 +2866,15 @@ tests: command: "readAttribute" attribute: "nullable_char_string" response: + saveAs: nullableCharStringSave value: "☉T☉" + - label: "Read attribute NULLABLE_CHAR_STRING" + command: "readAttribute" + attribute: "nullable_char_string" + response: + value: nullableCharStringSave + - label: "Write attribute NULLABLE_CHAR_STRING - Value too long" command: "writeAttribute" attribute: "nullable_char_string" @@ -2860,6 +2899,13 @@ tests: response: value: "" + - label: "Read attribute NULLABLE_CHAR_STRING not ☉T☉" + command: "readAttribute" + attribute: "nullable_char_string" + response: + constraints: + notValue: nullableCharStringSave + - label: "Read attribute from nonexistent endpoint." endpoint: 200 command: "readAttribute" diff --git a/src/app/tests/suites/include/ConstraintsChecker.h b/src/app/tests/suites/include/ConstraintsChecker.h index 914896cefaacd3..e0ddc2763f1fa1 100644 --- a/src/app/tests/suites/include/ConstraintsChecker.h +++ b/src/app/tests/suites/include/ConstraintsChecker.h @@ -269,6 +269,24 @@ class ConstraintsChecker return CheckConstraintMaxValue(itemName, current.Value(), static_cast(expected)); } + template + bool CheckConstraintNotValue(const char * itemName, const chip::app::DataModel::Nullable & current, + const chip::app::DataModel::Nullable & expected) + { + if (expected.IsNull() && current.IsNull()) + { + Exit(std::string(itemName) + " got null for both values, but expected not equal"); + return false; + } + + if (expected.IsNull() != current.IsNull()) + { + return true; + } + + return CheckConstraintNotValue(itemName, current.Value(), expected.Value()); + } + template ::value, int> = 0> bool CheckConstraintNotValue(const char * itemName, T current, U expected) { @@ -287,6 +305,12 @@ class ConstraintsChecker return CheckConstraintNotValue(itemName, chip::to_underlying(current), expected); } + template ::value, int> = 0> + bool CheckConstraintNotValue(const char * itemName, T current, T expected) + { + return CheckConstraintNotValue(itemName, chip::to_underlying(current), chip::to_underlying(expected)); + } + template bool CheckConstraintNotValue(const char * itemName, chip::BitFlags current, chip::BitFlags expected) { diff --git a/zzz_generated/chip-tool-darwin/zap-generated/test/Commands.h b/zzz_generated/chip-tool-darwin/zap-generated/test/Commands.h index 68fa4e6597cc5e..726d51be312a8c 100644 --- a/zzz_generated/chip-tool-darwin/zap-generated/test/Commands.h +++ b/zzz_generated/chip-tool-darwin/zap-generated/test/Commands.h @@ -582,7 +582,7 @@ class TestAccessControlCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write entries Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -603,7 +603,7 @@ class TestAccessControlCluster : public TestCommandBridge { completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -880,7 +880,7 @@ class TestAccessControlCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write entries empty lists Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -900,7 +900,7 @@ class TestAccessControlCluster : public TestCommandBridge { completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -962,7 +962,7 @@ class TestAccessControlCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write entry invalid privilege Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 1)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 1)); NextTest(); }]; @@ -981,7 +981,7 @@ class TestAccessControlCluster : public TestCommandBridge { completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -1033,7 +1033,7 @@ class TestAccessControlCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write entry invalid auth mode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 1)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 1)); NextTest(); }]; @@ -1052,7 +1052,7 @@ class TestAccessControlCluster : public TestCommandBridge { completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -1108,7 +1108,7 @@ class TestAccessControlCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write entry invalid subject Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 1)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 1)); NextTest(); }]; @@ -1127,7 +1127,7 @@ class TestAccessControlCluster : public TestCommandBridge { completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -1187,7 +1187,7 @@ class TestAccessControlCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write entry invalid target Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 1)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 1)); NextTest(); }]; @@ -1206,7 +1206,7 @@ class TestAccessControlCluster : public TestCommandBridge { completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -1281,7 +1281,7 @@ class TestAccessControlCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write entry too many subjects Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 1)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 1)); NextTest(); }]; @@ -1300,7 +1300,7 @@ class TestAccessControlCluster : public TestCommandBridge { completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -1455,7 +1455,7 @@ class TestAccessControlCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write entry too many targets Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 1)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 1)); NextTest(); }]; @@ -1474,7 +1474,7 @@ class TestAccessControlCluster : public TestCommandBridge { completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -1633,7 +1633,7 @@ class TestAccessControlCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write too many entries Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_RESOURCE_EXHAUSTED)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_RESOURCE_EXHAUSTED)); NextTest(); }]; @@ -1653,7 +1653,7 @@ class TestAccessControlCluster : public TestCommandBridge { completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -1917,7 +1917,7 @@ class TestAccessControlCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Restore ACL Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -1937,7 +1937,7 @@ class TestAccessControlCluster : public TestCommandBridge { completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -1970,7 +1970,7 @@ class TestAccessControlCluster : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate resource minima (SubjectsPerAccessControlEntry) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("subjectsPerAccessControlEntry", [value unsignedShortValue], 4U)); @@ -1992,7 +1992,7 @@ class TestAccessControlCluster : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate resource minima (TargetsPerAccessControlEntry) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("targetsPerAccessControlEntry", [value unsignedShortValue], 3U)); @@ -2014,7 +2014,7 @@ class TestAccessControlCluster : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate resource minima (AccessControlEntriesPerFabric) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("accessControlEntriesPerFabric", [value unsignedShortValue], 3U)); @@ -2172,7 +2172,7 @@ class Test_TC_BI_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -2196,7 +2196,7 @@ class Test_TC_BI_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute constraints: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); NextTest(); @@ -2221,7 +2221,7 @@ class Test_TC_BI_1_1 : public TestCommandBridge { NSLog( @"write the default values to mandatory global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -2239,7 +2239,7 @@ class Test_TC_BI_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"reads back global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -2263,7 +2263,7 @@ class Test_TC_BI_1_1 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AttributeList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("attributeList", "", "list")); NextTest(); @@ -2283,7 +2283,7 @@ class Test_TC_BI_1_1 : public TestCommandBridge { [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AcceptedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("acceptedCommandList", "", "list")); NextTest(); @@ -2303,7 +2303,7 @@ class Test_TC_BI_1_1 : public TestCommandBridge { [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: GeneratedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("generatedCommandList", "", "list")); NextTest(); @@ -2488,7 +2488,7 @@ class Test_TC_BI_2_1 : public TestCommandBridge { [cluster readAttributeOutOfServiceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read mandatory non-global attribute: OutOfService Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -2512,7 +2512,7 @@ class Test_TC_BI_2_1 : public TestCommandBridge { [cluster readAttributeOutOfServiceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read mandatory non-global attribute constraints: OutOfService Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("outOfService", "", "bool")); NextTest(); @@ -2536,7 +2536,7 @@ class Test_TC_BI_2_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write the default values to mandatory non-global attribute: OutOfService Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -2555,7 +2555,7 @@ class Test_TC_BI_2_1 : public TestCommandBridge { [cluster readAttributeOutOfServiceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back the mandatory non-global attribute: OutOfService Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -2579,7 +2579,7 @@ class Test_TC_BI_2_1 : public TestCommandBridge { [cluster readAttributePresentValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read mandatory non-global attribute constraints: PresentValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("presentValue", "", "bool")); NextTest(); @@ -2603,7 +2603,7 @@ class Test_TC_BI_2_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write the default values to mandatory non-global attribute: PresentValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -2622,7 +2622,7 @@ class Test_TC_BI_2_1 : public TestCommandBridge { [cluster readAttributePresentValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back the mandatory non-global attribute: PresentValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -2646,7 +2646,7 @@ class Test_TC_BI_2_1 : public TestCommandBridge { [cluster readAttributeStatusFlagsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read mandatory non-global attribute: StatusFlags Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -2670,7 +2670,7 @@ class Test_TC_BI_2_1 : public TestCommandBridge { [cluster readAttributeStatusFlagsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read mandatory non-global attribute constraints: StatusFlags Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("statusFlags", "", "map8")); if (value != nil) { @@ -2701,7 +2701,7 @@ class Test_TC_BI_2_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write the default values to mandatory non-global attribute: StatusFlags Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -2719,7 +2719,7 @@ class Test_TC_BI_2_1 : public TestCommandBridge { [cluster readAttributeStatusFlagsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back the mandatory non-global attribute: StatusFlags Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -2916,7 +2916,7 @@ class Test_TC_BI_2_2 : public TestCommandBridge { [cluster readAttributePresentValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads PresentValue attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -2940,7 +2940,7 @@ class Test_TC_BI_2_2 : public TestCommandBridge { [cluster readAttributeOutOfServiceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OutOfService attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -2964,7 +2964,7 @@ class Test_TC_BI_2_2 : public TestCommandBridge { [cluster readAttributeStatusFlagsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads StatusFlags attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -2988,7 +2988,7 @@ class Test_TC_BI_2_2 : public TestCommandBridge { [cluster readAttributePresentValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads PresentValue attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -3012,7 +3012,7 @@ class Test_TC_BI_2_2 : public TestCommandBridge { [cluster readAttributeOutOfServiceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OutOfService attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -3036,7 +3036,7 @@ class Test_TC_BI_2_2 : public TestCommandBridge { [cluster readAttributeStatusFlagsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads StatusFlags attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -3060,7 +3060,7 @@ class Test_TC_BI_2_2 : public TestCommandBridge { [cluster readAttributeStatusFlagsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads StatusFlags attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -3084,7 +3084,7 @@ class Test_TC_BI_2_2 : public TestCommandBridge { [cluster readAttributeStatusFlagsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads StatusFlags attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -3252,7 +3252,7 @@ class Test_TC_BOOL_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -3274,7 +3274,7 @@ class Test_TC_BOOL_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute constraints : ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); NextTest(); @@ -3292,7 +3292,7 @@ class Test_TC_BOOL_1_1 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AttributeList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -3330,7 +3330,7 @@ class Test_TC_BOOL_1_1 : public TestCommandBridge { [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AcceptedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -3353,7 +3353,7 @@ class Test_TC_BOOL_1_1 : public TestCommandBridge { [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: GeneratedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -3485,7 +3485,7 @@ class Test_TC_BOOL_2_1 : public TestCommandBridge { [cluster readAttributeStateValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read mandatory non-global attribute: StateValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -3507,7 +3507,7 @@ class Test_TC_BOOL_2_1 : public TestCommandBridge { [cluster readAttributeStateValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read mandatory non-global attribute constraints: StateValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("stateValue", "", "bool")); NextTest(); @@ -3645,7 +3645,7 @@ class Test_TC_BRAC_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -3667,7 +3667,7 @@ class Test_TC_BRAC_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute constraints: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); NextTest(); @@ -3685,7 +3685,7 @@ class Test_TC_BRAC_1_1 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AttributeList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("attributeList", "", "list")); NextTest(); @@ -3703,7 +3703,7 @@ class Test_TC_BRAC_1_1 : public TestCommandBridge { [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AcceptedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("acceptedCommandList", "", "list")); NextTest(); @@ -3721,7 +3721,7 @@ class Test_TC_BRAC_1_1 : public TestCommandBridge { [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: GeneratedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("generatedCommandList", "", "list")); NextTest(); @@ -3900,7 +3900,7 @@ class Test_TC_CC_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -3922,7 +3922,7 @@ class Test_TC_CC_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute constraints : ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); NextTest(); @@ -3945,7 +3945,7 @@ class Test_TC_CC_1_1 : public TestCommandBridge { NSLog( @"write the default values to mandatory global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -3961,7 +3961,7 @@ class Test_TC_CC_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"reads back global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -3983,7 +3983,7 @@ class Test_TC_CC_1_1 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AttributeList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("attributeList", "", "list")); NextTest(); @@ -4011,7 +4011,7 @@ class Test_TC_CC_1_1 : public TestCommandBridge { [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AcceptedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("acceptedCommandList", "", "list")); NextTest(); @@ -4029,7 +4029,7 @@ class Test_TC_CC_1_1 : public TestCommandBridge { [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: GeneratedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("generatedCommandList", "", "list")); NextTest(); @@ -5116,7 +5116,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: current hue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -5144,7 +5144,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write the default value to mandatory attribute: CurrentHue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -5160,7 +5160,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back mandatory attribute: CurrentHue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -5185,7 +5185,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: CurrentSaturation Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -5214,7 +5214,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write the default value to mandatory attribute: CurrentSaturation Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -5230,7 +5230,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back mandatory attribute: CurrentSaturation Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -5255,7 +5255,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: CurrentX Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentX", "", "uint16")); if (value != nil) { @@ -5283,7 +5283,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write the default value to mandatory attribute: CurrentX Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -5299,7 +5299,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back mandatory attribute: CurrentX Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentX", "", "uint16")); if (value != nil) { @@ -5324,7 +5324,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: CurrentY Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentY", "", "uint16")); if (value != nil) { @@ -5352,7 +5352,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write the default values to mandatory attribute: CurrentY Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -5368,7 +5368,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back mandatory attribute: CurrentY Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentY", "", "uint16")); if (value != nil) { @@ -5393,7 +5393,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: ColorTemperatureMireds Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorTemperature", "", "uint16")); if (value != nil) { @@ -5418,7 +5418,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributeColorModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: ColorMode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorMode", "", "enum8")); if (value != nil) { @@ -5443,7 +5443,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributeColorControlOptionsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: Options Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorControlOptions", "", "map8")); NextTest(); @@ -5464,7 +5464,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write the default values to mandatory attribute: Options Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -5481,7 +5481,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributeColorControlOptionsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back mandatory attribute: Options Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -5503,7 +5503,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: EnhancedCurrentHue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); NextTest(); @@ -5525,7 +5525,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { NSLog(@"Write the default values to mandatory attribute: EnhancedCurrentHue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn( + CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -5541,7 +5542,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back mandatory attribute: EnhancedCurrentHue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); NextTest(); @@ -5559,7 +5560,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributeEnhancedColorModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: EnhancedColorMode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedColorMode", "", "enum8")); NextTest(); @@ -5577,7 +5578,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributeColorLoopActiveWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: ColorLoopActive Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorLoopActive", "", "uint8")); NextTest(); @@ -5594,13 +5595,14 @@ class Test_TC_CC_2_1 : public TestCommandBridge { id colorLoopActiveArgument; colorLoopActiveArgument = [NSNumber numberWithUnsignedChar:0]; - [cluster writeAttributeColorLoopActiveWithValue:colorLoopActiveArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default values to mandatory attribute: ColorLoopActive Error: %@", err); + [cluster + writeAttributeColorLoopActiveWithValue:colorLoopActiveArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write the default values to mandatory attribute: ColorLoopActive Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + NextTest(); + }]; return CHIP_NO_ERROR; } @@ -5614,7 +5616,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributeColorLoopActiveWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back mandatory attribute: ColorLoopActive Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorLoopActive", "", "uint8")); NextTest(); @@ -5632,7 +5634,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributeColorLoopDirectionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: ColorLoopDirection Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorLoopDirection", "", "uint8")); NextTest(); @@ -5654,7 +5656,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { NSLog(@"Write the default values to mandatory attribute: ColorLoopDirection Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn( + CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -5670,7 +5673,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributeColorLoopDirectionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back mandatory attribute: ColorLoopDirection Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorLoopDirection", "", "uint8")); NextTest(); @@ -5688,7 +5691,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributeColorLoopTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: ColorLoopTime Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorLoopTime", "", "uint16")); NextTest(); @@ -5705,13 +5708,14 @@ class Test_TC_CC_2_1 : public TestCommandBridge { id colorLoopTimeArgument; colorLoopTimeArgument = [NSNumber numberWithUnsignedShort:25U]; - [cluster writeAttributeColorLoopTimeWithValue:colorLoopTimeArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default values to mandatory attribute: ColorLoopTime Error: %@", err); + [cluster + writeAttributeColorLoopTimeWithValue:colorLoopTimeArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write the default values to mandatory attribute: ColorLoopTime Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + NextTest(); + }]; return CHIP_NO_ERROR; } @@ -5725,7 +5729,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributeColorLoopTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back mandatory attribute: ColorLoopTime Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorLoopTime", "", "uint16")); NextTest(); @@ -5744,7 +5748,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { readAttributeColorLoopStartEnhancedHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: ColorLoopStartEnhancedHue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorLoopStartEnhancedHue", "", "uint16")); NextTest(); @@ -5767,7 +5771,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { @"ColorLoopStartEnhancedHue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue( + "status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -5784,7 +5789,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { readAttributeColorLoopStartEnhancedHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back mandatory attribute: ColorLoopStartEnhancedHue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorLoopStartEnhancedHue", "", "uint16")); NextTest(); @@ -5803,7 +5808,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { readAttributeColorLoopStoredEnhancedHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: ColorLoopStoredEnhancedHue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorLoopStoredEnhancedHue", "", "uint16")); NextTest(); @@ -5826,7 +5831,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { @"ColorLoopStoredEnhancedHue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue( + "status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -5843,7 +5849,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { readAttributeColorLoopStoredEnhancedHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back mandatory attribute: ColorLoopStoredEnhancedHue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorLoopStoredEnhancedHue", "", "uint16")); NextTest(); @@ -5861,7 +5867,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributeColorCapabilitiesWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: ColorCapabilities Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorCapabilities", "", "map16")); if (value != nil) { @@ -5890,7 +5896,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write the default values to mandatory attribute: ColorCapabilities Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -5906,7 +5912,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributeColorCapabilitiesWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back mandatory attribute: ColorCapabilities Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorCapabilities", "", "map16")); if (value != nil) { @@ -5931,7 +5937,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributeColorTempPhysicalMinWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: ColorTempPhysicalMinMireds Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorTempPhysicalMin", "", "uint16")); if (value != nil) { @@ -5961,7 +5967,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { @"ColorTempPhysicalMinMireds Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn( + CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -5977,7 +5984,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributeColorTempPhysicalMinWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back mandatory attribute: ColorTempPhysicalMinMireds Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorTempPhysicalMin", "", "uint16")); if (value != nil) { @@ -6002,7 +6009,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributeColorTempPhysicalMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: ColorTempPhysicalMaxMireds Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorTempPhysicalMax", "", "uint16")); if (value != nil) { @@ -6032,7 +6039,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { @"Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn( + CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -6048,7 +6056,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributeColorTempPhysicalMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back mandatory attribute: ColorTempPhysicalMaxMireds Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorTempPhysicalMax", "", "uint16")); if (value != nil) { @@ -6079,7 +6087,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("coupleColorTempToLevelMinMireds", "", "uint16")); NextTest(); @@ -6096,21 +6104,21 @@ class Test_TC_CC_2_1 : public TestCommandBridge { id coupleColorTempToLevelMinMiredsArgument; coupleColorTempToLevelMinMiredsArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster - writeAttributeCoupleColorTempToLevelMinMiredsWithValue:coupleColorTempToLevelMinMiredsArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default values to optional attribute: " - @"CoupleColorTempToLevelMinMireds Error: %@", - err); + [cluster writeAttributeCoupleColorTempToLevelMinMiredsWithValue:coupleColorTempToLevelMinMiredsArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write the default values to optional attribute: " + @"CoupleColorTempToLevelMinMireds Error: %@", + err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } + if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + NextTest(); + return; + } - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; + VerifyOrReturn(CheckValue( + "status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + NextTest(); + }]; return CHIP_NO_ERROR; } @@ -6130,7 +6138,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("coupleColorTempToLevelMinMireds", "", "uint16")); NextTest(); @@ -6154,7 +6162,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("startUpColorTemperatureMireds", "", "uint16")); if (value != nil) { @@ -6190,7 +6198,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -6213,7 +6221,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -6240,7 +6248,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("remainingTime", "", "uint16")); NextTest(); @@ -6257,18 +6265,19 @@ class Test_TC_CC_2_1 : public TestCommandBridge { id remainingTimeArgument; remainingTimeArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster writeAttributeRemainingTimeWithValue:remainingTimeArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default values to optional attribute: RemainingTime Error: %@", err); + [cluster + writeAttributeRemainingTimeWithValue:remainingTimeArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write the default values to optional attribute: RemainingTime Error: %@", err); - if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } + if (err.code == MatterInteractionErrorCodeUnsupportedAttribute) { + NextTest(); + return; + } - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + NextTest(); + }]; return CHIP_NO_ERROR; } @@ -6287,7 +6296,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("remainingTime", "", "uint16")); NextTest(); @@ -6310,7 +6319,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("driftCompensation", "", "enum8")); if (value != nil) { @@ -6344,7 +6353,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -6365,7 +6374,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("driftCompensation", "", "enum8")); if (value != nil) { @@ -6395,7 +6404,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("compensationText", "", "string")); VerifyOrReturn(CheckConstraintMaxLength("compensationText", [value length], 254)); @@ -6423,7 +6432,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -6444,7 +6453,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("compensationText", "", "string")); VerifyOrReturn(CheckConstraintMaxLength("compensationText", [value length], 254)); @@ -6463,7 +6472,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributeNumberOfPrimariesWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the mandatory attribute: NumberOfPrimaries Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("numberOfPrimaries", "", "uint8")); if (value != nil) { @@ -6487,13 +6496,14 @@ class Test_TC_CC_2_1 : public TestCommandBridge { id numberOfPrimariesArgument; numberOfPrimariesArgument = [NSNumber numberWithUnsignedChar:0]; - [cluster writeAttributeNumberOfPrimariesWithValue:numberOfPrimariesArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default mandatory attribute: NumberOfPrimaries Error: %@", err); + [cluster + writeAttributeNumberOfPrimariesWithValue:numberOfPrimariesArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write the default mandatory attribute: NumberOfPrimaries Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + NextTest(); + }]; return CHIP_NO_ERROR; } @@ -6507,7 +6517,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributeNumberOfPrimariesWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read back the mandatory attribute: NumberOfPrimaries Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("numberOfPrimaries", "", "uint8")); if (value != nil) { @@ -6532,7 +6542,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributePrimary1XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the mandatory attribute: Primary1X Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("primary1X", "", "uint16")); if (value != nil) { @@ -6560,7 +6570,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write the default mandatory attribute: Primary1X Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -6576,7 +6586,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributePrimary1XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read back the mandatory attribute: Primary1X Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("primary1X", "", "uint16")); if (value != nil) { @@ -6601,7 +6611,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributePrimary1YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the mandatory attribute: Primary1Y Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("primary1Y", "", "uint16")); if (value != nil) { @@ -6629,7 +6639,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write the default mandatory attribute: Primary1Y Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -6645,7 +6655,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributePrimary1YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read back the mandatory attribute: Primary1Y Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("primary1Y", "", "uint16")); if (value != nil) { @@ -6670,7 +6680,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributePrimary1IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the mandatory attribute: Primary1Intensity Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("primary1Intensity", "", "uint8")); NextTest(); @@ -6688,7 +6698,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributePrimary2XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the mandatory attribute: Primary2X Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("primary2X", "", "uint16")); if (value != nil) { @@ -6716,7 +6726,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write the default mandatory attribute: Primary2X Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -6732,7 +6742,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributePrimary2XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read back the mandatory attribute: Primary2X Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("primary2X", "", "uint16")); if (value != nil) { @@ -6757,7 +6767,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributePrimary2YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the mandatory attribute: Primary2Y Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("primary2Y", "", "uint16")); if (value != nil) { @@ -6785,7 +6795,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write the default mandatory attribute: Primary2Y Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -6801,7 +6811,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributePrimary2YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read back the mandatory attribute: Primary2Y Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("primary2Y", "", "uint16")); if (value != nil) { @@ -6826,7 +6836,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributePrimary2IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: Primary2Intensity Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("primary2Intensity", "", "uint8")); NextTest(); @@ -6844,7 +6854,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributePrimary3XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the mandatory attribute: Primary3X Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("primary3X", "", "uint16")); if (value != nil) { @@ -6872,7 +6882,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write the default mandatory attribute: Primary3X Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -6888,7 +6898,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributePrimary3XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read back the mandatory attribute: Primary3X Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("primary3X", "", "uint16")); if (value != nil) { @@ -6913,7 +6923,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributePrimary3YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the mandatory attribute: Primary3Y Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("primary3Y", "", "uint16")); if (value != nil) { @@ -6941,7 +6951,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write the default mandatory attribute: Primary3Y Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -6957,7 +6967,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributePrimary3YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read back the mandatory attribute: Primary3Y Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("primary3Y", "", "uint16")); if (value != nil) { @@ -6982,7 +6992,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributePrimary3IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the mandatory attribute: Primary3Intensity Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("primary3Intensity", "", "uint8")); NextTest(); @@ -7000,7 +7010,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributePrimary4XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the mandatory attribute: Primary4X Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("primary4X", "", "uint16")); if (value != nil) { @@ -7028,7 +7038,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write the default mandatory attribute: Primary4X Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -7044,7 +7054,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributePrimary4XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read back the mandatory attribute: Primary4X Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("primary4X", "", "uint16")); if (value != nil) { @@ -7069,7 +7079,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributePrimary4YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the mandatory attribute: Primary4Y Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("primary4Y", "", "uint16")); if (value != nil) { @@ -7097,7 +7107,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write the default mandatory attribute: Primary4Y Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -7113,7 +7123,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributePrimary4YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read back the mandatory attribute: Primary4Y Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("primary4Y", "", "uint16")); if (value != nil) { @@ -7138,7 +7148,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributePrimary4IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the mandatory attribute: Primary4Intensity Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("primary4Intensity", "", "uint8")); NextTest(); @@ -7156,7 +7166,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributePrimary5XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the mandatory attribute: Primary5X Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("primary5X", "", "uint16")); if (value != nil) { @@ -7184,7 +7194,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write the default mandatory attribute: Primary5X Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -7200,7 +7210,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributePrimary5XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read back the mandatory attribute: Primary5X Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("primary5X", "", "uint16")); if (value != nil) { @@ -7225,7 +7235,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributePrimary5YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the mandatory attribute: Primary5Y Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("primary5Y", "", "uint16")); if (value != nil) { @@ -7253,7 +7263,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write the default mandatory attribute: Primary5Y Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -7269,7 +7279,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributePrimary5YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read back the mandatory attribute: Primary5Y Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("primary5Y", "", "uint16")); if (value != nil) { @@ -7294,7 +7304,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributePrimary5IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the mandatory attribute: Primary5Intensity Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("primary5Intensity", "", "uint8")); NextTest(); @@ -7312,7 +7322,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributePrimary6XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the mandatory attribute: Primary6X Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("primary6X", "", "uint16")); if (value != nil) { @@ -7340,7 +7350,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write the default mandatory attribute: Primary6X Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -7356,7 +7366,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributePrimary6XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read back the mandatory attribute: Primary6X Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("primary6X", "", "uint16")); if (value != nil) { @@ -7381,7 +7391,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributePrimary6YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the mandatory attribute: Primary6Y Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("primary6Y", "", "uint16")); if (value != nil) { @@ -7409,7 +7419,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write the default mandatory attribute: Primary6Y Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -7425,7 +7435,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributePrimary6YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read back the mandatory attribute: Primary6Y Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("primary6Y", "", "uint16")); if (value != nil) { @@ -7450,7 +7460,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { [cluster readAttributePrimary6IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the mandatory attribute: Primary6Intensity Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("primary6Intensity", "", "uint8")); NextTest(); @@ -7473,7 +7483,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("whitePointX", "", "uint16")); if (value != nil) { @@ -7506,7 +7516,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -7528,7 +7538,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -7555,7 +7565,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("whitePointY", "", "uint16")); if (value != nil) { @@ -7588,7 +7598,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -7610,7 +7620,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -7637,7 +7647,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorPointRX", "", "uint16")); if (value != nil) { @@ -7670,7 +7680,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -7692,7 +7702,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -7719,7 +7729,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorPointRY", "", "uint16")); if (value != nil) { @@ -7752,7 +7762,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -7774,7 +7784,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -7801,7 +7811,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorPointRIntensity", "", "uint8")); NextTest(); @@ -7827,7 +7837,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -7849,7 +7859,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -7876,7 +7886,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorPointGX", "", "uint16")); if (value != nil) { @@ -7909,7 +7919,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -7931,7 +7941,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -7958,7 +7968,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorPointGY", "", "uint16")); if (value != nil) { @@ -7991,7 +8001,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -8013,7 +8023,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -8040,7 +8050,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorPointGIntensity", "", "uint8")); NextTest(); @@ -8066,7 +8076,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -8088,7 +8098,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -8115,7 +8125,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorPointBX", "", "uint16")); if (value != nil) { @@ -8148,7 +8158,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -8170,7 +8180,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -8197,7 +8207,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorPointBY", "", "uint16")); if (value != nil) { @@ -8230,7 +8240,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -8252,7 +8262,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -8279,7 +8289,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorPointBIntensity", "", "uint8")); NextTest(); @@ -8305,7 +8315,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -8327,7 +8337,7 @@ class Test_TC_CC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -8677,7 +8687,7 @@ class Test_TC_CC_3_1 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn on light for color control tests Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -8694,7 +8704,7 @@ class Test_TC_CC_3_1 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is true after on command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -8716,7 +8726,7 @@ class Test_TC_CC_3_1 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads CurrentHue attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -8748,7 +8758,7 @@ class Test_TC_CC_3_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Move to hue shortest distance command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -8773,7 +8783,7 @@ class Test_TC_CC_3_1 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current hue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -8806,7 +8816,7 @@ class Test_TC_CC_3_1 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current hue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -8839,7 +8849,7 @@ class Test_TC_CC_3_1 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current hue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -8871,7 +8881,7 @@ class Test_TC_CC_3_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Move to hue longest distance command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -8896,7 +8906,7 @@ class Test_TC_CC_3_1 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current hue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -8929,7 +8939,7 @@ class Test_TC_CC_3_1 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current hue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -8962,7 +8972,7 @@ class Test_TC_CC_3_1 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current hue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -8994,7 +9004,7 @@ class Test_TC_CC_3_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Move to hue up command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -9019,7 +9029,7 @@ class Test_TC_CC_3_1 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current hue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -9052,7 +9062,7 @@ class Test_TC_CC_3_1 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current hue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -9085,7 +9095,7 @@ class Test_TC_CC_3_1 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current hue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -9117,7 +9127,7 @@ class Test_TC_CC_3_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Move to hue down command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -9142,7 +9152,7 @@ class Test_TC_CC_3_1 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current hue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -9175,7 +9185,7 @@ class Test_TC_CC_3_1 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current hue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -9208,7 +9218,7 @@ class Test_TC_CC_3_1 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current hue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -9233,7 +9243,7 @@ class Test_TC_CC_3_1 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn off light that we turned on Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -9250,7 +9260,7 @@ class Test_TC_CC_3_1 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is false after off command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -9600,7 +9610,7 @@ class Test_TC_CC_3_2 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn on light for color control tests Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -9617,7 +9627,7 @@ class Test_TC_CC_3_2 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is true after on command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -9639,7 +9649,7 @@ class Test_TC_CC_3_2 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads CurrentHue attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -9670,7 +9680,7 @@ class Test_TC_CC_3_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Move hue up command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -9695,7 +9705,7 @@ class Test_TC_CC_3_2 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current hue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -9728,7 +9738,7 @@ class Test_TC_CC_3_2 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current hue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -9761,7 +9771,7 @@ class Test_TC_CC_3_2 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current hue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -9792,7 +9802,7 @@ class Test_TC_CC_3_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Move hue stop command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -9817,7 +9827,7 @@ class Test_TC_CC_3_2 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current hue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -9850,7 +9860,7 @@ class Test_TC_CC_3_2 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current hue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -9883,7 +9893,7 @@ class Test_TC_CC_3_2 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current hue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -9914,7 +9924,7 @@ class Test_TC_CC_3_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Move hue down command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -9939,7 +9949,7 @@ class Test_TC_CC_3_2 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current hue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -9972,7 +9982,7 @@ class Test_TC_CC_3_2 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current hue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -10005,7 +10015,7 @@ class Test_TC_CC_3_2 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current hue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -10036,7 +10046,7 @@ class Test_TC_CC_3_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Move hue stop command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -10061,7 +10071,7 @@ class Test_TC_CC_3_2 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current hue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -10094,7 +10104,7 @@ class Test_TC_CC_3_2 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current hue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -10127,7 +10137,7 @@ class Test_TC_CC_3_2 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current hue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -10152,7 +10162,7 @@ class Test_TC_CC_3_2 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn off light that we turned on Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -10169,7 +10179,7 @@ class Test_TC_CC_3_2 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is false after off command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -10353,7 +10363,7 @@ class Test_TC_CC_3_3 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn on light for color control tests Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -10370,7 +10380,7 @@ class Test_TC_CC_3_3 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is true after on command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -10392,7 +10402,7 @@ class Test_TC_CC_3_3 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads CurrentHue attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -10424,7 +10434,7 @@ class Test_TC_CC_3_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Step hue up command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -10449,7 +10459,7 @@ class Test_TC_CC_3_3 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Over TransitionTime,Read CurrentHue attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -10481,7 +10491,7 @@ class Test_TC_CC_3_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Step hue down command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -10506,7 +10516,7 @@ class Test_TC_CC_3_3 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Over TransitionTime,Read CurrentHue attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -10531,7 +10541,7 @@ class Test_TC_CC_3_3 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn off light that we turned on Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -10548,7 +10558,7 @@ class Test_TC_CC_3_3 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is false after off command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -10742,7 +10752,7 @@ class Test_TC_CC_4_1 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn on light for color control tests Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -10759,7 +10769,7 @@ class Test_TC_CC_4_1 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is true after on command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -10781,7 +10791,7 @@ class Test_TC_CC_4_1 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check Saturation attribute value matched before any change Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -10812,7 +10822,7 @@ class Test_TC_CC_4_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Move to saturation command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -10837,7 +10847,7 @@ class Test_TC_CC_4_1 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current saturation attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -10870,7 +10880,7 @@ class Test_TC_CC_4_1 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current saturation attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -10903,7 +10913,7 @@ class Test_TC_CC_4_1 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current saturation attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -10928,7 +10938,7 @@ class Test_TC_CC_4_1 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn off light that we turned on Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -10945,7 +10955,7 @@ class Test_TC_CC_4_1 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is false after off command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -11400,7 +11410,7 @@ class Test_TC_CC_4_2 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn on light for color control tests Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -11417,7 +11427,7 @@ class Test_TC_CC_4_2 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is true after on command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -11439,7 +11449,7 @@ class Test_TC_CC_4_2 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check Saturation attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -11470,7 +11480,7 @@ class Test_TC_CC_4_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Move saturation up command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -11495,7 +11505,7 @@ class Test_TC_CC_4_2 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current saturation attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -11528,7 +11538,7 @@ class Test_TC_CC_4_2 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current saturation attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -11561,7 +11571,7 @@ class Test_TC_CC_4_2 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current saturation attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -11592,7 +11602,7 @@ class Test_TC_CC_4_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Move saturation down command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -11617,7 +11627,7 @@ class Test_TC_CC_4_2 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current saturation attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -11650,7 +11660,7 @@ class Test_TC_CC_4_2 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current saturation attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -11683,7 +11693,7 @@ class Test_TC_CC_4_2 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current saturation attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -11714,7 +11724,7 @@ class Test_TC_CC_4_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Move saturation up command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -11739,7 +11749,7 @@ class Test_TC_CC_4_2 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current saturation attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -11772,7 +11782,7 @@ class Test_TC_CC_4_2 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current saturation attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -11805,7 +11815,7 @@ class Test_TC_CC_4_2 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current saturation attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -11836,7 +11846,7 @@ class Test_TC_CC_4_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Move saturation stop command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -11861,7 +11871,7 @@ class Test_TC_CC_4_2 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current saturation attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -11894,7 +11904,7 @@ class Test_TC_CC_4_2 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current saturation attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -11927,7 +11937,7 @@ class Test_TC_CC_4_2 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current saturation attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -11958,7 +11968,7 @@ class Test_TC_CC_4_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Move saturation down command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -11983,7 +11993,7 @@ class Test_TC_CC_4_2 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current saturation attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -12016,7 +12026,7 @@ class Test_TC_CC_4_2 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current saturation attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -12049,7 +12059,7 @@ class Test_TC_CC_4_2 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current saturation attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -12080,7 +12090,7 @@ class Test_TC_CC_4_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Move saturation stop command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -12105,7 +12115,7 @@ class Test_TC_CC_4_2 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current saturation attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -12138,7 +12148,7 @@ class Test_TC_CC_4_2 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current saturation attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -12171,7 +12181,7 @@ class Test_TC_CC_4_2 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current saturation attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -12196,7 +12206,7 @@ class Test_TC_CC_4_2 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn off light that we turned on Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -12213,7 +12223,7 @@ class Test_TC_CC_4_2 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is false after off command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -12397,7 +12407,7 @@ class Test_TC_CC_4_3 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn on light for color control tests Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -12414,7 +12424,7 @@ class Test_TC_CC_4_3 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is true after on command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -12436,7 +12446,7 @@ class Test_TC_CC_4_3 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads CurrentSaturation attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -12468,7 +12478,7 @@ class Test_TC_CC_4_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Step saturation up command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -12493,7 +12503,7 @@ class Test_TC_CC_4_3 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Over TransitionTime,Read CurrentSaturation attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -12525,7 +12535,7 @@ class Test_TC_CC_4_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Step saturation down command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -12550,7 +12560,7 @@ class Test_TC_CC_4_3 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Over TransitionTime,Reads CurrentSaturation attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -12575,7 +12585,7 @@ class Test_TC_CC_4_3 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn off light that we turned on Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -12592,7 +12602,7 @@ class Test_TC_CC_4_3 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is false after off command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -12771,7 +12781,7 @@ class Test_TC_CC_4_4 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn on light for color control tests Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -12788,7 +12798,7 @@ class Test_TC_CC_4_4 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is true after on command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -12810,7 +12820,7 @@ class Test_TC_CC_4_4 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current hue attribute value matched before any change Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -12835,7 +12845,7 @@ class Test_TC_CC_4_4 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check Saturation attribute value matched before any change Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -12867,7 +12877,7 @@ class Test_TC_CC_4_4 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Move To current hue and saturation command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -12892,7 +12902,7 @@ class Test_TC_CC_4_4 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current hue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -12917,7 +12927,7 @@ class Test_TC_CC_4_4 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current saturation attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -12942,7 +12952,7 @@ class Test_TC_CC_4_4 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn off light that we turned on Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -12959,7 +12969,7 @@ class Test_TC_CC_4_4 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is false after off command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -13138,7 +13148,7 @@ class Test_TC_CC_5_1 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn on light for color control tests Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -13155,7 +13165,7 @@ class Test_TC_CC_5_1 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is true after on command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -13177,7 +13187,7 @@ class Test_TC_CC_5_1 : public TestCommandBridge { [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current x attribute value matched before any change Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentX", "", "uint16")); if (value != nil) { @@ -13202,7 +13212,7 @@ class Test_TC_CC_5_1 : public TestCommandBridge { [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current y attribute value matched before any change Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentY", "", "uint16")); if (value != nil) { @@ -13234,7 +13244,7 @@ class Test_TC_CC_5_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Move to Color command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -13259,7 +13269,7 @@ class Test_TC_CC_5_1 : public TestCommandBridge { [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current x attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentX", "", "uint16")); if (value != nil) { @@ -13284,7 +13294,7 @@ class Test_TC_CC_5_1 : public TestCommandBridge { [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current y attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentY", "", "uint16")); if (value != nil) { @@ -13309,7 +13319,7 @@ class Test_TC_CC_5_1 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn off light that we turned on Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -13326,7 +13336,7 @@ class Test_TC_CC_5_1 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is false after off command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -13528,7 +13538,7 @@ class Test_TC_CC_5_2 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn on light for color control tests Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -13545,7 +13555,7 @@ class Test_TC_CC_5_2 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is true after on command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -13567,7 +13577,7 @@ class Test_TC_CC_5_2 : public TestCommandBridge { [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current x attribute value matched before any change Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentX", "", "uint16")); if (value != nil) { @@ -13592,7 +13602,7 @@ class Test_TC_CC_5_2 : public TestCommandBridge { [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current y attribute value matched before any change Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentY", "", "uint16")); if (value != nil) { @@ -13623,7 +13633,7 @@ class Test_TC_CC_5_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Move Color command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -13648,7 +13658,7 @@ class Test_TC_CC_5_2 : public TestCommandBridge { [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current x attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentX", "", "uint16")); if (value != nil) { @@ -13673,7 +13683,7 @@ class Test_TC_CC_5_2 : public TestCommandBridge { [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current y attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentY", "", "uint16")); if (value != nil) { @@ -13702,7 +13712,7 @@ class Test_TC_CC_5_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Stop Move Step command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -13719,7 +13729,7 @@ class Test_TC_CC_5_2 : public TestCommandBridge { [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current x attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentX", "", "uint16")); if (value != nil) { @@ -13744,7 +13754,7 @@ class Test_TC_CC_5_2 : public TestCommandBridge { [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current y attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentY", "", "uint16")); if (value != nil) { @@ -13769,7 +13779,7 @@ class Test_TC_CC_5_2 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn off light that we turned on Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -13786,7 +13796,7 @@ class Test_TC_CC_5_2 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is false after off command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -13965,7 +13975,7 @@ class Test_TC_CC_5_3 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn on light for color control tests Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -13982,7 +13992,7 @@ class Test_TC_CC_5_3 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is true after on command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -14004,7 +14014,7 @@ class Test_TC_CC_5_3 : public TestCommandBridge { [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current x attribute value matched before any change Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentX", "", "uint16")); if (value != nil) { @@ -14029,7 +14039,7 @@ class Test_TC_CC_5_3 : public TestCommandBridge { [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current y attribute value matched before any change Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentY", "", "uint16")); if (value != nil) { @@ -14061,7 +14071,7 @@ class Test_TC_CC_5_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Step Color command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -14086,7 +14096,7 @@ class Test_TC_CC_5_3 : public TestCommandBridge { [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current x attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentX", "", "uint16")); if (value != nil) { @@ -14111,7 +14121,7 @@ class Test_TC_CC_5_3 : public TestCommandBridge { [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current y attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentY", "", "uint16")); if (value != nil) { @@ -14136,7 +14146,7 @@ class Test_TC_CC_5_3 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn off light that we turned on Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -14153,7 +14163,7 @@ class Test_TC_CC_5_3 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is false after off command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -14316,7 +14326,7 @@ class Test_TC_CC_6_1 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn on light for color control tests Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -14333,7 +14343,7 @@ class Test_TC_CC_6_1 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is true after on command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -14355,7 +14365,7 @@ class Test_TC_CC_6_1 : public TestCommandBridge { [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read current color temprature Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorTemperature", "", "uint16")); if (value != nil) { @@ -14386,7 +14396,7 @@ class Test_TC_CC_6_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Move To Color Temperature command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -14411,7 +14421,7 @@ class Test_TC_CC_6_1 : public TestCommandBridge { [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read current color temprature Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorTemperature", "", "uint16")); if (value != nil) { @@ -14436,7 +14446,7 @@ class Test_TC_CC_6_1 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn off light that we turned on Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -14453,7 +14463,7 @@ class Test_TC_CC_6_1 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is false after off command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -14805,7 +14815,7 @@ class Test_TC_CC_6_2 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn on light for color control tests Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -14822,7 +14832,7 @@ class Test_TC_CC_6_2 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is true after on command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -14844,7 +14854,7 @@ class Test_TC_CC_6_2 : public TestCommandBridge { [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read current color temprature Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorTemperature", "", "uint16")); if (value != nil) { @@ -14877,7 +14887,7 @@ class Test_TC_CC_6_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Move up color temperature command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -14902,7 +14912,7 @@ class Test_TC_CC_6_2 : public TestCommandBridge { [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read current color temprature attribute from DUT several times Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorTemperature", "", "uint16")); if (value != nil) { @@ -14935,7 +14945,7 @@ class Test_TC_CC_6_2 : public TestCommandBridge { [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read current color temprature attribute from DUT several times Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorTemperature", "", "uint16")); if (value != nil) { @@ -14968,7 +14978,7 @@ class Test_TC_CC_6_2 : public TestCommandBridge { [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read current color temprature attribute from DUT several times Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorTemperature", "", "uint16")); if (value != nil) { @@ -15001,7 +15011,7 @@ class Test_TC_CC_6_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Move down color temperature command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -15026,7 +15036,7 @@ class Test_TC_CC_6_2 : public TestCommandBridge { [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read current color temprature attribute from DUT several times Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorTemperature", "", "uint16")); if (value != nil) { @@ -15059,7 +15069,7 @@ class Test_TC_CC_6_2 : public TestCommandBridge { [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read current color temprature attribute from DUT several times Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorTemperature", "", "uint16")); if (value != nil) { @@ -15092,7 +15102,7 @@ class Test_TC_CC_6_2 : public TestCommandBridge { [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read current color temprature attribute from DUT several times Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorTemperature", "", "uint16")); if (value != nil) { @@ -15125,7 +15135,7 @@ class Test_TC_CC_6_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Move up color temperature command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -15150,7 +15160,7 @@ class Test_TC_CC_6_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Stop Color Temperature command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -15175,7 +15185,7 @@ class Test_TC_CC_6_2 : public TestCommandBridge { [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read current color temprature attribute from DUT several times Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorTemperature", "", "uint16")); if (value != nil) { @@ -15208,7 +15218,7 @@ class Test_TC_CC_6_2 : public TestCommandBridge { [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read current color temprature attribute from DUT several times Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorTemperature", "", "uint16")); if (value != nil) { @@ -15241,7 +15251,7 @@ class Test_TC_CC_6_2 : public TestCommandBridge { [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read current color temprature attribute from DUT several times Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorTemperature", "", "uint16")); if (value != nil) { @@ -15274,7 +15284,7 @@ class Test_TC_CC_6_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Move down color temperature command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -15299,7 +15309,7 @@ class Test_TC_CC_6_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Stop Color Temperature command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -15324,7 +15334,7 @@ class Test_TC_CC_6_2 : public TestCommandBridge { [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read current color temprature attribute from DUT several times Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorTemperature", "", "uint16")); if (value != nil) { @@ -15357,7 +15367,7 @@ class Test_TC_CC_6_2 : public TestCommandBridge { [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read current color temprature attribute from DUT several times Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorTemperature", "", "uint16")); if (value != nil) { @@ -15390,7 +15400,7 @@ class Test_TC_CC_6_2 : public TestCommandBridge { [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read current color temprature attribute from DUT several times Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorTemperature", "", "uint16")); if (value != nil) { @@ -15415,7 +15425,7 @@ class Test_TC_CC_6_2 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn off light that we turned on Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -15432,7 +15442,7 @@ class Test_TC_CC_6_2 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is false after off command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -15672,7 +15682,7 @@ class Test_TC_CC_6_3 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn on light for color control tests Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -15689,7 +15699,7 @@ class Test_TC_CC_6_3 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is true after on command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -15711,7 +15721,7 @@ class Test_TC_CC_6_3 : public TestCommandBridge { [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read current color temprature Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorTemperature", "", "uint16")); if (value != nil) { @@ -15745,7 +15755,7 @@ class Test_TC_CC_6_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Step up color temperature command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -15770,7 +15780,7 @@ class Test_TC_CC_6_3 : public TestCommandBridge { [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read current color temprature Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorTemperature", "", "uint16")); if (value != nil) { @@ -15803,7 +15813,7 @@ class Test_TC_CC_6_3 : public TestCommandBridge { [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read current color temprature Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorTemperature", "", "uint16")); if (value != nil) { @@ -15836,7 +15846,7 @@ class Test_TC_CC_6_3 : public TestCommandBridge { [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read current color temprature Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorTemperature", "", "uint16")); if (value != nil) { @@ -15870,7 +15880,7 @@ class Test_TC_CC_6_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Step down color temperature command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -15895,7 +15905,7 @@ class Test_TC_CC_6_3 : public TestCommandBridge { [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read current color temprature Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorTemperature", "", "uint16")); if (value != nil) { @@ -15928,7 +15938,7 @@ class Test_TC_CC_6_3 : public TestCommandBridge { [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read current color temprature Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorTemperature", "", "uint16")); if (value != nil) { @@ -15961,7 +15971,7 @@ class Test_TC_CC_6_3 : public TestCommandBridge { [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read current color temprature Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorTemperature", "", "uint16")); if (value != nil) { @@ -15986,7 +15996,7 @@ class Test_TC_CC_6_3 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn off light that we turned on Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -16003,7 +16013,7 @@ class Test_TC_CC_6_3 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is false after off command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -16361,7 +16371,7 @@ class Test_TC_CC_7_1 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn on light for color control tests Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -16378,7 +16388,7 @@ class Test_TC_CC_7_1 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is true after on command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -16407,7 +16417,7 @@ class Test_TC_CC_7_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Enhanced Move To Hue command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -16424,7 +16434,7 @@ class Test_TC_CC_7_1 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check EnhancedCurrentHue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); if (value != nil) { @@ -16456,7 +16466,7 @@ class Test_TC_CC_7_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Enhanced Move To Hue command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -16481,7 +16491,7 @@ class Test_TC_CC_7_1 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check EnhancedCurrentHue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); if (value != nil) { @@ -16514,7 +16524,7 @@ class Test_TC_CC_7_1 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check EnhancedCurrentHue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); if (value != nil) { @@ -16547,7 +16557,7 @@ class Test_TC_CC_7_1 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check EnhancedCurrentHue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); if (value != nil) { @@ -16579,7 +16589,7 @@ class Test_TC_CC_7_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Enhanced Move To Hue command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -16604,7 +16614,7 @@ class Test_TC_CC_7_1 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check EnhancedCurrentHue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); if (value != nil) { @@ -16637,7 +16647,7 @@ class Test_TC_CC_7_1 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check EnhancedCurrentHue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); if (value != nil) { @@ -16670,7 +16680,7 @@ class Test_TC_CC_7_1 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check EnhancedCurrentHue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); if (value != nil) { @@ -16702,7 +16712,7 @@ class Test_TC_CC_7_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Enhanced Move To Hue command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -16727,7 +16737,7 @@ class Test_TC_CC_7_1 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check EnhancedCurrentHue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); if (value != nil) { @@ -16760,7 +16770,7 @@ class Test_TC_CC_7_1 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check EnhancedCurrentHue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); if (value != nil) { @@ -16793,7 +16803,7 @@ class Test_TC_CC_7_1 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check EnhancedCurrentHue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); if (value != nil) { @@ -16825,7 +16835,7 @@ class Test_TC_CC_7_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Enhanced Move To Hue command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -16850,7 +16860,7 @@ class Test_TC_CC_7_1 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check EnhancedCurrentHue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); if (value != nil) { @@ -16883,7 +16893,7 @@ class Test_TC_CC_7_1 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check EnhancedCurrentHue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); if (value != nil) { @@ -16916,7 +16926,7 @@ class Test_TC_CC_7_1 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check EnhancedCurrentHue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); if (value != nil) { @@ -16941,7 +16951,7 @@ class Test_TC_CC_7_1 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn off light that we turned on Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -16958,7 +16968,7 @@ class Test_TC_CC_7_1 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is false after off command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -17234,7 +17244,7 @@ class Test_TC_CC_7_2 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn on light for color control tests Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -17251,7 +17261,7 @@ class Test_TC_CC_7_2 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is true after on command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -17273,7 +17283,7 @@ class Test_TC_CC_7_2 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check EnhancedCurrentHue attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); if (value != nil) { @@ -17304,7 +17314,7 @@ class Test_TC_CC_7_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Enhanced Move Hue Up command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -17329,7 +17339,7 @@ class Test_TC_CC_7_2 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check EnhancedCurrentHue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); if (value != nil) { @@ -17362,7 +17372,7 @@ class Test_TC_CC_7_2 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check EnhancedCurrentHue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); if (value != nil) { @@ -17395,7 +17405,7 @@ class Test_TC_CC_7_2 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check EnhancedCurrentHue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); if (value != nil) { @@ -17426,7 +17436,7 @@ class Test_TC_CC_7_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Enhanced Move Hue Stop command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -17443,7 +17453,7 @@ class Test_TC_CC_7_2 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check EnhancedCurrentHue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); if (value != nil) { @@ -17474,7 +17484,7 @@ class Test_TC_CC_7_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Enhanced Move Hue Down command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -17499,7 +17509,7 @@ class Test_TC_CC_7_2 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check EnhancedCurrentHue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); if (value != nil) { @@ -17532,7 +17542,7 @@ class Test_TC_CC_7_2 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check EnhancedCurrentHue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); if (value != nil) { @@ -17565,7 +17575,7 @@ class Test_TC_CC_7_2 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check EnhancedCurrentHue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); if (value != nil) { @@ -17596,7 +17606,7 @@ class Test_TC_CC_7_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Enhanced Move Hue Stop command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -17613,7 +17623,7 @@ class Test_TC_CC_7_2 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check EnhancedCurrentHue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); if (value != nil) { @@ -17638,7 +17648,7 @@ class Test_TC_CC_7_2 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn off light that we turned on Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -17655,7 +17665,7 @@ class Test_TC_CC_7_2 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is false after off command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -17839,7 +17849,7 @@ class Test_TC_CC_7_3 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn on light for color control tests Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -17856,7 +17866,7 @@ class Test_TC_CC_7_3 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is true after on command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -17878,7 +17888,7 @@ class Test_TC_CC_7_3 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads EnhancedCurrentHue attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); if (value != nil) { @@ -17910,7 +17920,7 @@ class Test_TC_CC_7_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Enhanced Step Hue Up command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -17935,7 +17945,7 @@ class Test_TC_CC_7_3 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Over TransitionTime,Read EnhancedCurrentHue attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); if (value != nil) { @@ -17967,7 +17977,7 @@ class Test_TC_CC_7_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Enhanced Step Hue Down command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -17992,7 +18002,7 @@ class Test_TC_CC_7_3 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Over TransitionTime,Read EnhancedCurrentHue attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); if (value != nil) { @@ -18017,7 +18027,7 @@ class Test_TC_CC_7_3 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn off light that we turned on Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -18034,7 +18044,7 @@ class Test_TC_CC_7_3 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is false after off command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -18198,7 +18208,7 @@ class Test_TC_CC_7_4 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn on light for color control tests Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -18215,7 +18225,7 @@ class Test_TC_CC_7_4 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is true after on command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -18237,7 +18247,7 @@ class Test_TC_CC_7_4 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads EnhancedCurrentHue attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); if (value != nil) { @@ -18269,7 +18279,7 @@ class Test_TC_CC_7_4 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Enhanced move to hue and saturation command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -18294,7 +18304,7 @@ class Test_TC_CC_7_4 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check EnhancedCurrentHue attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); if (value != nil) { @@ -18319,7 +18329,7 @@ class Test_TC_CC_7_4 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn off light that we turned on Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -18336,7 +18346,7 @@ class Test_TC_CC_7_4 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is false after off command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -18709,7 +18719,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn on light for color control tests Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -18726,7 +18736,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is true after on command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -18754,7 +18764,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Move hue up command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -18771,7 +18781,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads CurrentHue attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -18800,7 +18810,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Stop Move Step command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -18817,7 +18827,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads CurrentHue attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -18850,7 +18860,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current hue attribute value matched the value sent by the last attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); if (value != nil) { @@ -18881,7 +18891,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Move saturation up command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -18898,7 +18908,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check Saturation attribute value matched the value sent by the last command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -18927,7 +18937,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Stop Move Step command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -18944,7 +18954,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads CurrentSaturation attribute from DUT. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -18977,7 +18987,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check Saturation attribute value matched the value sent by the last attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); if (value != nil) { @@ -19008,7 +19018,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Move Color command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -19025,7 +19035,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads CurrentX attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentX", "", "uint16")); if (value != nil) { @@ -19050,7 +19060,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads CurrentY attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentY", "", "uint16")); if (value != nil) { @@ -19079,7 +19089,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Stop Move Step command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -19096,7 +19106,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads CurrentX attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentX", "", "uint16")); if (value != nil) { @@ -19121,7 +19131,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads CurrentY attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentY", "", "uint16")); if (value != nil) { @@ -19154,7 +19164,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current x attribute value matched the value sent by the last attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentX", "", "uint16")); if (value != nil) { @@ -19179,7 +19189,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check current y attribute value matched the value sent by the last attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentY", "", "uint16")); if (value != nil) { @@ -19212,7 +19222,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Move up color temperature command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -19229,7 +19239,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads current color temprature from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorTemperature", "", "uint16")); if (value != nil) { @@ -19258,7 +19268,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Stop Move Step command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -19275,7 +19285,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads current color temprature from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorTemperature", "", "uint16")); if (value != nil) { @@ -19308,7 +19318,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads current color attribute value matched the value sent by the last attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorTemperature", "", "uint16")); if (value != nil) { @@ -19339,7 +19349,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Enhanced Move Hue Up command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -19356,7 +19366,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads EnhancedCurrentHue attribute value from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); if (value != nil) { @@ -19385,7 +19395,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Stop Move Step command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -19402,7 +19412,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads EnhancedCurrentHue attribute value from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); if (value != nil) { @@ -19435,7 +19445,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check EnhancedCurrentHue attribute value matched the value sent by the last attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); if (value != nil) { @@ -19460,7 +19470,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn off light that we turned on Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -19477,7 +19487,7 @@ class Test_TC_CC_8_1 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is false after off command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -20147,7 +20157,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Precondition : Turn on light for color control tests Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -20164,7 +20174,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is true after on command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -20195,7 +20205,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Sends ColorLoopSet Command - Set all Attributes Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -20212,7 +20222,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { [cluster readAttributeColorLoopActiveWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopActive attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -20243,7 +20253,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Sends ColorLoopSet Command - Set all Attributes Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -20260,7 +20270,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { [cluster readAttributeColorLoopDirectionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopDirection attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -20291,7 +20301,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Sends ColorLoopSet Command - Set all Attributes Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -20308,7 +20318,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { [cluster readAttributeColorLoopTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopTime attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -20339,7 +20349,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Sends ColorLoopSet Command - Set all Attributes Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -20357,7 +20367,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { readAttributeColorLoopStartEnhancedHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopStartEnhancedHue attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -20388,7 +20398,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Sends ColorLoopSet Command - Set all Attributes Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -20405,7 +20415,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { [cluster readAttributeColorLoopActiveWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopActive attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -20428,7 +20438,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read EnhancedCurrentHue attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); { @@ -20451,7 +20461,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { readAttributeColorLoopStoredEnhancedHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopStoredEnhancedHue attribute from DUT. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -20482,7 +20492,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Sends ColorLoopSet Command - Set all Attributes Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -20499,7 +20509,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { [cluster readAttributeColorLoopActiveWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopActive attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -20523,7 +20533,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { readAttributeColorLoopStoredEnhancedHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopStoredEnhancedHue attribute from DUT. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorLoopStoredEnhancedHue", "", "uint16")); { @@ -20545,7 +20555,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read EnhancedCurrentHue attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -20576,7 +20586,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Sends ColorLoopSet Command - Set all Attributes Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -20593,7 +20603,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { [cluster readAttributeColorLoopDirectionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopDirection attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -20624,7 +20634,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Sends ColorLoopSet Command - Set all Attributes Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -20641,7 +20651,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { [cluster readAttributeColorLoopActiveWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopActive attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -20664,7 +20674,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read EnhancedCurrentHue attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); { @@ -20687,7 +20697,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { readAttributeColorLoopStoredEnhancedHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopStoredEnhancedHue attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -20718,7 +20728,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Sends ColorLoopSet Command - Set all Attributes Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -20735,7 +20745,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { [cluster readAttributeColorLoopActiveWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopActive attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -20759,7 +20769,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { readAttributeColorLoopStoredEnhancedHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopStoredEnhancedHue attribute from DUT. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorLoopStoredEnhancedHue", "", "uint16")); { @@ -20781,7 +20791,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read EnhancedCurrentHue attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -20810,7 +20820,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Enhanced Move To Hue command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -20835,7 +20845,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read EnhancedCurrentHue attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -20866,7 +20876,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Sends ColorLoopSet Command - Set all Attributes Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -20883,7 +20893,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { [cluster readAttributeColorLoopDirectionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopDirection attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -20914,7 +20924,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Sends ColorLoopSet Command - Set all Attributes Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -20931,7 +20941,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { [cluster readAttributeColorLoopActiveWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopActive attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -20954,7 +20964,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read EnhancedCurrentHue attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); { @@ -20977,7 +20987,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { readAttributeColorLoopStoredEnhancedHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopStoredEnhancedHue attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -21008,7 +21018,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Sends ColorLoopSet Command - Set all Attributes Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -21025,7 +21035,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { [cluster readAttributeColorLoopActiveWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopActive attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -21049,7 +21059,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { readAttributeColorLoopStoredEnhancedHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopStoredEnhancedHue attribute from DUT. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorLoopStoredEnhancedHue", "", "uint16")); { @@ -21071,7 +21081,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read EnhancedCurrentHue attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -21102,7 +21112,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Sends ColorLoopSet Command - Set all Attributes Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -21119,7 +21129,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { [cluster readAttributeColorLoopDirectionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopDirection attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -21150,7 +21160,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Sends ColorLoopSet Command - Set all Attributes Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -21167,7 +21177,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { [cluster readAttributeColorLoopActiveWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopActive attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -21190,7 +21200,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read EnhancedCurrentHue attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); { @@ -21213,7 +21223,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { readAttributeColorLoopStoredEnhancedHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopStoredEnhancedHue attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -21244,7 +21254,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Sends ColorLoopSet Command - Set all Attributes Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -21261,7 +21271,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { [cluster readAttributeColorLoopActiveWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopActive attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -21285,7 +21295,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { readAttributeColorLoopStoredEnhancedHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopStoredEnhancedHue attribute from DUT. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorLoopStoredEnhancedHue", "", "uint16")); { @@ -21307,7 +21317,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read EnhancedCurrentHue attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -21329,7 +21339,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn Off light for color control tests Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -21346,7 +21356,7 @@ class Test_TC_CC_9_1 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is false after off command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -21646,7 +21656,7 @@ class Test_TC_CC_9_2 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Precondition: Turn on light for color control tests Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -21663,7 +21673,7 @@ class Test_TC_CC_9_2 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Precondition: Check on/off attribute value is true after on command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -21694,7 +21704,7 @@ class Test_TC_CC_9_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Sends ColorLoopSet Command - Set all Attributes Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -21711,7 +21721,7 @@ class Test_TC_CC_9_2 : public TestCommandBridge { [cluster readAttributeColorLoopActiveWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopActive attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -21733,7 +21743,7 @@ class Test_TC_CC_9_2 : public TestCommandBridge { [cluster readAttributeColorLoopDirectionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopDirection attribute from DUT. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -21755,7 +21765,7 @@ class Test_TC_CC_9_2 : public TestCommandBridge { [cluster readAttributeColorLoopTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopTime attribute from DUT. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -21778,7 +21788,7 @@ class Test_TC_CC_9_2 : public TestCommandBridge { readAttributeColorLoopStartEnhancedHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopStartEnhancedHue attribute from DUT. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -21801,7 +21811,7 @@ class Test_TC_CC_9_2 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read EnhancedCurrentHue attribute from DUT. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); { @@ -21832,7 +21842,7 @@ class Test_TC_CC_9_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Color Loop Set Command - Set all Attributes Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -21849,7 +21859,7 @@ class Test_TC_CC_9_2 : public TestCommandBridge { [cluster readAttributeColorLoopActiveWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopActive attribute from DUT. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -21872,7 +21882,7 @@ class Test_TC_CC_9_2 : public TestCommandBridge { readAttributeColorLoopStoredEnhancedHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopStoredEnhancedHue attribute from DUT. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -21903,7 +21913,7 @@ class Test_TC_CC_9_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Color Loop Set Command - Start Color Loop Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -21920,7 +21930,7 @@ class Test_TC_CC_9_2 : public TestCommandBridge { [cluster readAttributeColorLoopDirectionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopDirection attribute from DUT. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -21951,7 +21961,7 @@ class Test_TC_CC_9_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Color Loop Set Command - Start Color Loop Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -21968,7 +21978,7 @@ class Test_TC_CC_9_2 : public TestCommandBridge { [cluster readAttributeColorLoopActiveWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopActive attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -21992,7 +22002,7 @@ class Test_TC_CC_9_2 : public TestCommandBridge { readAttributeColorLoopStoredEnhancedHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopStoredEnhancedHue attribute from DUT. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorLoopStoredEnhancedHue", "", "uint16")); { @@ -22014,7 +22024,7 @@ class Test_TC_CC_9_2 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read EnhancedCurrentHue attribute from DUT. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -22036,7 +22046,7 @@ class Test_TC_CC_9_2 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn off light for color control tests Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -22053,7 +22063,7 @@ class Test_TC_CC_9_2 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is false after off command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -22353,7 +22363,7 @@ class Test_TC_CC_9_3 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Precondition: Turn on light for color control tests Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -22370,7 +22380,7 @@ class Test_TC_CC_9_3 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Precondition: Check on/off attribute value is true after on command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -22401,7 +22411,7 @@ class Test_TC_CC_9_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Sends ColorLoopSet Command - Set all Attributes Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -22418,7 +22428,7 @@ class Test_TC_CC_9_3 : public TestCommandBridge { [cluster readAttributeColorLoopActiveWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopActive attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -22440,7 +22450,7 @@ class Test_TC_CC_9_3 : public TestCommandBridge { [cluster readAttributeColorLoopDirectionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopDirection attribute from DUT. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -22462,7 +22472,7 @@ class Test_TC_CC_9_3 : public TestCommandBridge { [cluster readAttributeColorLoopTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopTime attribute from DUT. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -22485,7 +22495,7 @@ class Test_TC_CC_9_3 : public TestCommandBridge { readAttributeColorLoopStartEnhancedHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopStartEnhancedHue attribute from DUT. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -22516,7 +22526,7 @@ class Test_TC_CC_9_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Color Loop Set Command - Set all Attributes Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -22533,7 +22543,7 @@ class Test_TC_CC_9_3 : public TestCommandBridge { [cluster readAttributeColorLoopActiveWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopActive attribute from DUT. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -22556,7 +22566,7 @@ class Test_TC_CC_9_3 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read EnhancedCurrentHue attribute from DUT. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); { @@ -22579,7 +22589,7 @@ class Test_TC_CC_9_3 : public TestCommandBridge { readAttributeColorLoopStoredEnhancedHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopStoredEnhancedHue attribute from DUT. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -22610,7 +22620,7 @@ class Test_TC_CC_9_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Color Loop Set Command - Start Color Loop Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -22627,7 +22637,7 @@ class Test_TC_CC_9_3 : public TestCommandBridge { [cluster readAttributeColorLoopTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopTime attribute from DUT. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -22658,7 +22668,7 @@ class Test_TC_CC_9_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Color Loop Set Command - Start Color Loop Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -22675,7 +22685,7 @@ class Test_TC_CC_9_3 : public TestCommandBridge { [cluster readAttributeColorLoopActiveWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopActive attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -22699,7 +22709,7 @@ class Test_TC_CC_9_3 : public TestCommandBridge { readAttributeColorLoopStoredEnhancedHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read ColorLoopStoredEnhancedHue attribute from DUT. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorLoopStoredEnhancedHue", "", "uint16")); { @@ -22721,7 +22731,7 @@ class Test_TC_CC_9_3 : public TestCommandBridge { [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read EnhancedCurrentHue attribute from DUT. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -22743,7 +22753,7 @@ class Test_TC_CC_9_3 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn off light for color control tests Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -22760,7 +22770,7 @@ class Test_TC_CC_9_3 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is false after off command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -23008,7 +23018,7 @@ class Test_TC_DM_1_1 : public TestCommandBridge { [cluster readAttributeDataModelRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Query Data Model Revision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("dataModelRevision", "", "uint16")); NextTest(); @@ -23026,7 +23036,7 @@ class Test_TC_DM_1_1 : public TestCommandBridge { [cluster readAttributeVendorNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Query Vendor Name Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("vendorName", "", "string")); VerifyOrReturn(CheckConstraintMaxLength("vendorName", [value length], 32)); @@ -23045,7 +23055,7 @@ class Test_TC_DM_1_1 : public TestCommandBridge { [cluster readAttributeVendorIDWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Query VendorID Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("vendorID", "", "uint16")); NextTest(); @@ -23063,7 +23073,7 @@ class Test_TC_DM_1_1 : public TestCommandBridge { [cluster readAttributeProductNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Query Product Name Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("productName", "", "string")); VerifyOrReturn(CheckConstraintMaxLength("productName", [value length], 32)); @@ -23082,7 +23092,7 @@ class Test_TC_DM_1_1 : public TestCommandBridge { [cluster readAttributeProductIDWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Query ProductID Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("productID", "", "uint16")); NextTest(); @@ -23100,7 +23110,7 @@ class Test_TC_DM_1_1 : public TestCommandBridge { [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Query Node Label Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("nodeLabel", "", "string")); VerifyOrReturn(CheckConstraintMaxLength("nodeLabel", [value length], 32)); @@ -23119,7 +23129,7 @@ class Test_TC_DM_1_1 : public TestCommandBridge { [cluster readAttributeLocationWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Query User Location Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("location", "", "string")); VerifyOrReturn(CheckConstraintFormat("location", "", "ISO 3166-1 alpha-2")); @@ -23139,7 +23149,7 @@ class Test_TC_DM_1_1 : public TestCommandBridge { [cluster readAttributeHardwareVersionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Query HardwareVersion Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("hardwareVersion", "", "uint16")); NextTest(); @@ -23157,7 +23167,7 @@ class Test_TC_DM_1_1 : public TestCommandBridge { [cluster readAttributeHardwareVersionStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Query HardwareVersionString Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("hardwareVersionString", "", "string")); VerifyOrReturn(CheckConstraintMinLength("hardwareVersionString", [value length], 1)); @@ -23177,7 +23187,7 @@ class Test_TC_DM_1_1 : public TestCommandBridge { [cluster readAttributeSoftwareVersionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Query SoftwareVersion Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("softwareVersion", "", "uint32")); NextTest(); @@ -23195,7 +23205,7 @@ class Test_TC_DM_1_1 : public TestCommandBridge { [cluster readAttributeSoftwareVersionStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Query SoftwareVersionString Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("softwareVersionString", "", "string")); VerifyOrReturn(CheckConstraintFormat("softwareVersionString", "", "ASCII")); @@ -23221,7 +23231,7 @@ class Test_TC_DM_1_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("manufacturingDate", "", "string")); VerifyOrReturn(CheckConstraintFormat("manufacturingDate", "", "ISO 8601")); @@ -23247,7 +23257,7 @@ class Test_TC_DM_1_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("partNumber", "", "string")); VerifyOrReturn(CheckConstraintMaxLength("partNumber", [value length], 32)); @@ -23271,7 +23281,7 @@ class Test_TC_DM_1_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("productURL", "", "string")); VerifyOrReturn(CheckConstraintFormat("productURL", "", "RFC3986")); @@ -23296,7 +23306,7 @@ class Test_TC_DM_1_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("productLabel", "", "string")); VerifyOrReturn(CheckConstraintMaxLength("productLabel", [value length], 64)); @@ -23320,7 +23330,7 @@ class Test_TC_DM_1_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("serialNumber", "", "string")); VerifyOrReturn(CheckConstraintMaxLength("serialNumber", [value length], 32)); @@ -23344,7 +23354,7 @@ class Test_TC_DM_1_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("localConfigDisabled", "", "boolean")); NextTest(); @@ -23367,7 +23377,7 @@ class Test_TC_DM_1_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("reachable", "", "boolean")); NextTest(); @@ -23390,7 +23400,7 @@ class Test_TC_DM_1_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("uniqueID", "", "string")); VerifyOrReturn(CheckConstraintMaxLength("uniqueID", [value length], 32)); @@ -23515,7 +23525,7 @@ class Test_TC_DM_3_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxNetworks", "", "uint8")); NextTest(); @@ -23540,7 +23550,7 @@ class Test_TC_DM_3_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("networks", "", "list")); NextTest(); @@ -23676,7 +23686,7 @@ class Test_TC_DM_2_2 : public TestCommandBridge { completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Query fabrics list Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -23703,7 +23713,7 @@ class Test_TC_DM_2_2 : public TestCommandBridge { [cluster readAttributeSupportedFabricsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Query Supported Fabrics Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -23728,7 +23738,7 @@ class Test_TC_DM_2_2 : public TestCommandBridge { [cluster readAttributeCommissionedFabricsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Query Commissioned Fabrics Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -23753,7 +23763,7 @@ class Test_TC_DM_2_2 : public TestCommandBridge { [cluster readAttributeTrustedRootCertificatesWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Query User Trusted Root Certificates Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("trustedRootCertificates", "", "list")); NextTest(); @@ -23894,7 +23904,7 @@ class Test_TC_EMR_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -23918,7 +23928,7 @@ class Test_TC_EMR_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute constraints: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); NextTest(); @@ -23943,7 +23953,7 @@ class Test_TC_EMR_1_1 : public TestCommandBridge { NSLog( @"write the default values to mandatory global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -23961,7 +23971,7 @@ class Test_TC_EMR_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"reads back global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -23985,7 +23995,7 @@ class Test_TC_EMR_1_1 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AttributeList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("attributeList", "", "list")); NextTest(); @@ -24153,7 +24163,7 @@ class Test_TC_ETHDIAG_1_1 : public TestCommandBridge { [cluster readAttributePHYRateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read PHYRate attribute constraints Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("PHYRate", "", "enum8")); if (value != nil) { @@ -24180,7 +24190,7 @@ class Test_TC_ETHDIAG_1_1 : public TestCommandBridge { [cluster readAttributeFullDuplexWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read FullDuplex attribute constraints Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("fullDuplex", "", "bool")); NextTest(); @@ -24200,7 +24210,7 @@ class Test_TC_ETHDIAG_1_1 : public TestCommandBridge { [cluster readAttributePacketRxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read PacketRxCount attribute constraints Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("packetRxCount", "", "uint64")); NextTest(); @@ -24220,7 +24230,7 @@ class Test_TC_ETHDIAG_1_1 : public TestCommandBridge { [cluster readAttributePacketTxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read PacketTxCount attribute constraints Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("packetTxCount", "", "uint64")); NextTest(); @@ -24240,7 +24250,7 @@ class Test_TC_ETHDIAG_1_1 : public TestCommandBridge { [cluster readAttributeTxErrCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read TxErrCount attribute constraints Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("txErrCount", "", "uint64")); NextTest(); @@ -24260,7 +24270,7 @@ class Test_TC_ETHDIAG_1_1 : public TestCommandBridge { [cluster readAttributeCollisionCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read CollisionCount attribute constraints Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("collisionCount", "", "uint64")); NextTest(); @@ -24280,7 +24290,7 @@ class Test_TC_ETHDIAG_1_1 : public TestCommandBridge { [cluster readAttributeOverrunCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read OverrunCount attribute constraints Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("overrunCount", "", "uint64")); NextTest(); @@ -24300,7 +24310,7 @@ class Test_TC_ETHDIAG_1_1 : public TestCommandBridge { [cluster readAttributeCarrierDetectWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read CarrierDetect attribute constraints Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("carrierDetect", "", "bool")); NextTest(); @@ -24320,7 +24330,7 @@ class Test_TC_ETHDIAG_1_1 : public TestCommandBridge { [cluster readAttributeTimeSinceResetWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read TimeSinceReset attribute constraints Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("timeSinceReset", "", "uint64")); NextTest(); @@ -24584,7 +24594,7 @@ class Test_TC_FLW_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -24606,7 +24616,7 @@ class Test_TC_FLW_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute constraints: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); NextTest(); @@ -24629,7 +24639,7 @@ class Test_TC_FLW_1_1 : public TestCommandBridge { NSLog( @"write the default values to mandatory global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -24645,7 +24655,7 @@ class Test_TC_FLW_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"reads back global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -24667,7 +24677,7 @@ class Test_TC_FLW_1_1 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AttributeList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("attributeList", "", "list")); NextTest(); @@ -24695,7 +24705,7 @@ class Test_TC_FLW_1_1 : public TestCommandBridge { [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AcceptedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("acceptedCommandList", "", "list")); NextTest(); @@ -24713,7 +24723,7 @@ class Test_TC_FLW_1_1 : public TestCommandBridge { [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: GeneratedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("generatedCommandList", "", "list")); NextTest(); @@ -24917,7 +24927,7 @@ class Test_TC_FLW_2_1 : public TestCommandBridge { [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: MeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("measuredValue", "", "uint16")); NextTest(); @@ -24935,7 +24945,7 @@ class Test_TC_FLW_2_1 : public TestCommandBridge { [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: MinMeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("minMeasuredValue", "", "uint16")); NextTest(); @@ -24953,7 +24963,7 @@ class Test_TC_FLW_2_1 : public TestCommandBridge { [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: MaxMeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxMeasuredValue", "", "uint16")); NextTest(); @@ -24970,13 +24980,14 @@ class Test_TC_FLW_2_1 : public TestCommandBridge { id measuredValueArgument; measuredValueArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster writeAttributeMeasuredValueWithValue:measuredValueArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"write the default value to optional attribute: MeasuredValue Error: %@", err); + [cluster + writeAttributeMeasuredValueWithValue:measuredValueArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"write the default value to optional attribute: MeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + NextTest(); + }]; return CHIP_NO_ERROR; } @@ -24989,13 +25000,14 @@ class Test_TC_FLW_2_1 : public TestCommandBridge { id minMeasuredValueArgument; minMeasuredValueArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster writeAttributeMinMeasuredValueWithValue:minMeasuredValueArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"write the default value to optional attribute: MinMeasuredValue Error: %@", err); + [cluster + writeAttributeMinMeasuredValueWithValue:minMeasuredValueArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"write the default value to optional attribute: MinMeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + NextTest(); + }]; return CHIP_NO_ERROR; } @@ -25008,13 +25020,14 @@ class Test_TC_FLW_2_1 : public TestCommandBridge { id maxMeasuredValueArgument; maxMeasuredValueArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster writeAttributeMaxMeasuredValueWithValue:maxMeasuredValueArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"write the default value to optional attribute: MaxMeasuredValue Error: %@", err); + [cluster + writeAttributeMaxMeasuredValueWithValue:maxMeasuredValueArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"write the default value to optional attribute: MaxMeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + NextTest(); + }]; return CHIP_NO_ERROR; } @@ -25028,7 +25041,7 @@ class Test_TC_FLW_2_1 : public TestCommandBridge { [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: MeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("measuredValue", "", "uint16")); NextTest(); @@ -25046,7 +25059,7 @@ class Test_TC_FLW_2_1 : public TestCommandBridge { [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: MinMeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("minMeasuredValue", "", "uint16")); NextTest(); @@ -25064,7 +25077,7 @@ class Test_TC_FLW_2_1 : public TestCommandBridge { [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: MaxMeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxMeasuredValue", "", "uint16")); NextTest(); @@ -25087,7 +25100,7 @@ class Test_TC_FLW_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -25114,7 +25127,7 @@ class Test_TC_FLW_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("tolerance", "", "uint16")); if (value != nil) { @@ -25147,7 +25160,7 @@ class Test_TC_FLW_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -25168,7 +25181,7 @@ class Test_TC_FLW_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -25289,7 +25302,7 @@ class Test_TC_FLW_2_2 : public TestCommandBridge { [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: MeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("measuredValue", "", "uint16")); NextTest(); @@ -25307,7 +25320,7 @@ class Test_TC_FLW_2_2 : public TestCommandBridge { [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: MeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("measuredValue", "", "uint16")); NextTest(); @@ -25447,7 +25460,7 @@ class Test_TC_GC_1_1 : public TestCommandBridge { [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"TH1 reads the BreadCrumb Attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -25474,7 +25487,7 @@ class Test_TC_GC_1_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"TH1 writes the BreadCrumb attribute as 1 to the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -25493,7 +25506,7 @@ class Test_TC_GC_1_1 : public TestCommandBridge { [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"TH1 reads the BreadCrumb attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -25517,7 +25530,7 @@ class Test_TC_GC_1_1 : public TestCommandBridge { [cluster readAttributeRegulatoryConfigWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"TH1 reads the RegulatoryConfig attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("regulatoryConfig", [value unsignedCharValue], 0)); @@ -25543,7 +25556,7 @@ class Test_TC_GC_1_1 : public TestCommandBridge { [cluster readAttributeLocationCapabilityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"TH1 reads the LocationCapability attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("locationCapability", [value unsignedCharValue], 0)); @@ -25713,7 +25726,7 @@ class Test_TC_I_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"TH reads the ClusterRevision attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -25735,7 +25748,7 @@ class Test_TC_I_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute constraints : ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); NextTest(); @@ -25753,7 +25766,7 @@ class Test_TC_I_1_1 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AttributeList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -25782,7 +25795,7 @@ class Test_TC_I_1_1 : public TestCommandBridge { [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AcceptedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -25808,7 +25821,7 @@ class Test_TC_I_1_1 : public TestCommandBridge { [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: GeneratedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -25951,7 +25964,7 @@ class Test_TC_I_2_1 : public TestCommandBridge { [cluster readAttributeIdentifyTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"TH reads the IdentifyTime attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("identifyTime", "", "uint16")); NextTest(); @@ -25969,7 +25982,7 @@ class Test_TC_I_2_1 : public TestCommandBridge { [cluster readAttributeIdentifyTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"TH reads the IdentifyType attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("identifyType", "", "enum8")); if (value != nil) { @@ -26248,7 +26261,7 @@ class Test_TC_I_2_3 : public TestCommandBridge { @"the effect variant field set to 0x00 default Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -26280,7 +26293,7 @@ class Test_TC_I_2_3 : public TestCommandBridge { @"the effect variant field set to 0x00 default Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -26312,7 +26325,7 @@ class Test_TC_I_2_3 : public TestCommandBridge { @"effect variant field set to 0x00 default Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -26344,7 +26357,7 @@ class Test_TC_I_2_3 : public TestCommandBridge { @"change and the effect variant field set to 0x00 default Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -26376,7 +26389,7 @@ class Test_TC_I_2_3 : public TestCommandBridge { @"the effect variant field set to 0x00 default Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -26408,7 +26421,7 @@ class Test_TC_I_2_3 : public TestCommandBridge { @"effect and the effect variant field set to 0x00 default Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -26441,7 +26454,7 @@ class Test_TC_I_2_3 : public TestCommandBridge { @"the effect variant field set to 0x00 default Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -26473,7 +26486,7 @@ class Test_TC_I_2_3 : public TestCommandBridge { @"and the effect variant field set to 0x00 default Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -26506,7 +26519,7 @@ class Test_TC_I_2_3 : public TestCommandBridge { @"the effect variant field set to 0x42 unknown Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -26538,7 +26551,7 @@ class Test_TC_I_2_3 : public TestCommandBridge { @"and the effect variant field set to 0x00 default Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -26712,7 +26725,7 @@ class Test_TC_ILL_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -26736,7 +26749,7 @@ class Test_TC_ILL_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute constraints : ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); NextTest(); @@ -26756,7 +26769,7 @@ class Test_TC_ILL_1_1 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AttributeList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -26800,7 +26813,7 @@ class Test_TC_ILL_1_1 : public TestCommandBridge { [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AcceptedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -26825,7 +26838,7 @@ class Test_TC_ILL_1_1 : public TestCommandBridge { [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: GeneratedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -26973,7 +26986,7 @@ class Test_TC_ILL_2_1 : public TestCommandBridge { [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"TH reads MinMeasuredValue attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("minMeasuredValue", "", "uint16")); if (value != nil) { @@ -27000,7 +27013,7 @@ class Test_TC_ILL_2_1 : public TestCommandBridge { [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"TH reads MaxMeasuredValue attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxMeasuredValue", "", "uint16")); if (value != nil) { @@ -27027,7 +27040,7 @@ class Test_TC_ILL_2_1 : public TestCommandBridge { [cluster readAttributeToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"TH reads Tolerance attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("tolerance", "", "uint16")); if (value != nil) { @@ -27054,7 +27067,7 @@ class Test_TC_ILL_2_1 : public TestCommandBridge { [cluster readAttributeLightSensorTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"TH reads LightSensorType attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("lightSensorType", "", "enum8")); NextTest(); @@ -27209,7 +27222,7 @@ class Test_TC_LVL_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -27231,7 +27244,7 @@ class Test_TC_LVL_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute constraints : ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); NextTest(); @@ -27249,7 +27262,7 @@ class Test_TC_LVL_1_1 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AttributeList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -27296,7 +27309,7 @@ class Test_TC_LVL_1_1 : public TestCommandBridge { [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AcceptedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -27327,7 +27340,7 @@ class Test_TC_LVL_1_1 : public TestCommandBridge { [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the optional global attribute: FeatureMap Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -27545,7 +27558,7 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Reset level to 254 Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -27570,7 +27583,7 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the CurrentLevel attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -27593,7 +27606,7 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { [cluster readAttributeRemainingTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the RemainingTime attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -27616,7 +27629,7 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { [cluster readAttributeMinLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the MinLevel attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -27639,7 +27652,7 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { [cluster readAttributeMaxLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the MaxLevel attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxLevel", "", "uint8")); NextTest(); @@ -27657,7 +27670,7 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { [cluster readAttributeCurrentFrequencyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the CurrentFrequency attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -27680,7 +27693,7 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { [cluster readAttributeMinFrequencyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the MinFrequency attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -27703,7 +27716,7 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { [cluster readAttributeMaxFrequencyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the MaxFrequency attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -27726,7 +27739,7 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { [cluster readAttributeOnOffTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the OnOffTransitionTime attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -27749,7 +27762,7 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { [cluster readAttributeOnLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the OnLevel attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("onLevel", "", "uint8")); NextTest(); @@ -27767,7 +27780,7 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { [cluster readAttributeOnTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the OnTransitionTime attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("onTransitionTime", "", "uint16")); NextTest(); @@ -27785,7 +27798,7 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { [cluster readAttributeOffTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the OffTransitionTime attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("offTransitionTime", "", "uint16")); NextTest(); @@ -27803,7 +27816,7 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { [cluster readAttributeDefaultMoveRateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the DefaultMoveRate attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("defaultMoveRate", "", "uint8")); NextTest(); @@ -27821,7 +27834,7 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { [cluster readAttributeOptionsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the Options attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -28034,7 +28047,7 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { [cluster readAttributeOnOffTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the OnOffTransitionTime attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -28060,7 +28073,7 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"writes the OnOffTransitionTime attribute on the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -28077,7 +28090,7 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { [cluster readAttributeOnOffTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the OnOffTransitionTime attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -28103,7 +28116,7 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"writes default value of OnOffTransitionTime attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -28123,7 +28136,7 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"writes the OnLevel attribute on the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -28140,7 +28153,7 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { [cluster readAttributeOnLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the OnLevel attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -28167,7 +28180,7 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Writes the OnTransitionTime attribute on the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -28184,7 +28197,7 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { [cluster readAttributeOnTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the OnTransitionTime attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -28211,7 +28224,7 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Writes the OffTransitionTime attribute on the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -28228,7 +28241,7 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { [cluster readAttributeOffTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the OffTransitionTime attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -28252,7 +28265,7 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { [cluster readAttributeDefaultMoveRateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the DefaultMoveRate attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -28279,7 +28292,7 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Writes the DefaultMoveRate attribute on the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -28296,7 +28309,7 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { [cluster readAttributeDefaultMoveRateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the DefaultMoveRate attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -28323,7 +28336,7 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"writes the StartUpCurrentLevel attribute on the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -28340,7 +28353,7 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { [cluster readAttributeStartUpCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"reads the StartUpCurrentLevel attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -28554,7 +28567,7 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"reads CurrentLevel attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentLevel", "", "uint8")); NextTest(); @@ -28572,7 +28585,7 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { [cluster readAttributeMinLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the MinLevel attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("minLevel", "", "uint8")); NextTest(); @@ -28590,7 +28603,7 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { [cluster readAttributeMaxLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the MaxLevel attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxLevel", "", "uint8")); NextTest(); @@ -28614,7 +28627,7 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"sends a Move to level command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -28639,7 +28652,7 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"reads CurrentLevel attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -28667,7 +28680,7 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"sends a Move to level command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -28692,7 +28705,7 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"reads CurrentLevel attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -28714,7 +28727,7 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { [cluster readAttributeOnOffTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"reads On Off Transition Time attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("onOffTransitionTime", "", "uint16")); NextTest(); @@ -28738,7 +28751,7 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"sends a Move to level command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -28763,7 +28776,7 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"reads CurrentLevel attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -28791,7 +28804,7 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Reset level to 254 Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -29021,7 +29034,7 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { [cluster readAttributeMaxLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"reads max level attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxLevel", "", "uint8")); { @@ -29049,7 +29062,7 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"sends a Move up command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -29085,7 +29098,7 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"reads CurrentLevel attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -29108,7 +29121,7 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { [cluster readAttributeMinLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"reads min level attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("minLevel", "", "uint8")); { @@ -29136,7 +29149,7 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"sends a Move down command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -29172,7 +29185,7 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"reads CurrentLevel attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -29202,7 +29215,7 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { [cluster readAttributeDefaultMoveRateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"reads default move rate attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("defaultMoveRate", "", "uint8")); { @@ -29230,7 +29243,7 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"sends a Move up command at default move rate Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -29255,7 +29268,7 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"reads CurrentLevel attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("currentLevel", value, 255)); @@ -29292,7 +29305,7 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Reset level to 254 Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -29493,7 +29506,7 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Sending on command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -29517,7 +29530,7 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Precondition: DUT level is set to its lowest point Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -29543,7 +29556,7 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads current level attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentLevel", "", "uint8")); { @@ -29572,7 +29585,7 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Sends step up command to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -29597,7 +29610,7 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads current level attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("currentLevel", value, CurrentlevelValue)); @@ -29625,7 +29638,7 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Sends a Step down command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -29650,7 +29663,7 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads current level attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -29678,7 +29691,7 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Reset level to 254 Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -29703,7 +29716,7 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Sending off command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -29882,7 +29895,7 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Sending on command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -29905,7 +29918,7 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Precondition: set DUT to lowest point Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -29931,7 +29944,7 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads CurrentLevel attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("currentLevel", [value unsignedCharValue], 0)); @@ -29964,7 +29977,7 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Sends a move up command to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -29993,7 +30006,7 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Sends stop command to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -30010,7 +30023,7 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads CurrentLevel attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("currentLevel", value, CurrentLevelValue)); @@ -30037,7 +30050,7 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Reset level to 254 Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -30062,7 +30075,7 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Sending off command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -30218,7 +30231,7 @@ class Test_TC_MC_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -30241,7 +30254,7 @@ class Test_TC_MC_1_1 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AttributeList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -30278,7 +30291,7 @@ class Test_TC_MC_1_1 : public TestCommandBridge { [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AcceptedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -30302,7 +30315,7 @@ class Test_TC_MC_1_1 : public TestCommandBridge { [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: GeneratedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -30489,7 +30502,7 @@ class Test_TC_MC_1_2 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -30511,7 +30524,7 @@ class Test_TC_MC_1_2 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute constraints: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); NextTest(); @@ -30529,7 +30542,7 @@ class Test_TC_MC_1_2 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AttributeList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -30567,7 +30580,7 @@ class Test_TC_MC_1_2 : public TestCommandBridge { [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AcceptedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -30591,7 +30604,7 @@ class Test_TC_MC_1_2 : public TestCommandBridge { [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: GeneratedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -30785,7 +30798,7 @@ class Test_TC_MC_1_3 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -30809,7 +30822,7 @@ class Test_TC_MC_1_3 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute constraints: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); NextTest(); @@ -30829,7 +30842,7 @@ class Test_TC_MC_1_3 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AttributeList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -30871,7 +30884,7 @@ class Test_TC_MC_1_3 : public TestCommandBridge { [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AcceptedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -30899,7 +30912,7 @@ class Test_TC_MC_1_3 : public TestCommandBridge { [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: GeneratedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -31084,7 +31097,7 @@ class Test_TC_MC_1_4 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -31106,7 +31119,7 @@ class Test_TC_MC_1_4 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute constraints: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); NextTest(); @@ -31124,7 +31137,7 @@ class Test_TC_MC_1_4 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AttributeList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -31164,7 +31177,7 @@ class Test_TC_MC_1_4 : public TestCommandBridge { [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AcceptedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -31191,7 +31204,7 @@ class Test_TC_MC_1_4 : public TestCommandBridge { [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: GeneratedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -31374,7 +31387,7 @@ class Test_TC_MC_1_5 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -31396,7 +31409,7 @@ class Test_TC_MC_1_5 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute constraints: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); NextTest(); @@ -31414,7 +31427,7 @@ class Test_TC_MC_1_5 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AttributeList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -31453,7 +31466,7 @@ class Test_TC_MC_1_5 : public TestCommandBridge { [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AcceptedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -31476,7 +31489,7 @@ class Test_TC_MC_1_5 : public TestCommandBridge { [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: GeneratedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -31668,7 +31681,7 @@ class Test_TC_MC_1_6 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -31690,7 +31703,7 @@ class Test_TC_MC_1_6 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute constraints: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); NextTest(); @@ -31708,7 +31721,7 @@ class Test_TC_MC_1_6 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AttributeList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -31749,7 +31762,7 @@ class Test_TC_MC_1_6 : public TestCommandBridge { [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AcceptedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("acceptedCommandList", "", "list")); NextTest(); @@ -31767,7 +31780,7 @@ class Test_TC_MC_1_6 : public TestCommandBridge { [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: GeneratedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("generatedCommandList", "", "list")); NextTest(); @@ -31942,7 +31955,7 @@ class Test_TC_MC_1_7 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -31964,7 +31977,7 @@ class Test_TC_MC_1_7 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute constraints: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); NextTest(); @@ -31982,7 +31995,7 @@ class Test_TC_MC_1_7 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AttributeList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -32017,7 +32030,7 @@ class Test_TC_MC_1_7 : public TestCommandBridge { [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AcceptedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -32051,7 +32064,7 @@ class Test_TC_MC_1_7 : public TestCommandBridge { [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: GeneratedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -32244,7 +32257,7 @@ class Test_TC_MC_1_8 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -32266,7 +32279,7 @@ class Test_TC_MC_1_8 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute constraints: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); NextTest(); @@ -32284,7 +32297,7 @@ class Test_TC_MC_1_8 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AttributeList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -32324,7 +32337,7 @@ class Test_TC_MC_1_8 : public TestCommandBridge { [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AcceptedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -32348,7 +32361,7 @@ class Test_TC_MC_1_8 : public TestCommandBridge { [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: GeneratedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -32537,7 +32550,7 @@ class Test_TC_MC_1_9 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -32559,7 +32572,7 @@ class Test_TC_MC_1_9 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute constraints: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); NextTest(); @@ -32577,7 +32590,7 @@ class Test_TC_MC_1_9 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AttributeList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -32616,7 +32629,7 @@ class Test_TC_MC_1_9 : public TestCommandBridge { [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AcceptedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -32640,7 +32653,7 @@ class Test_TC_MC_1_9 : public TestCommandBridge { [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: GeneratedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -32835,7 +32848,7 @@ class Test_TC_MC_1_10 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -32859,7 +32872,7 @@ class Test_TC_MC_1_10 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute constraints: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); NextTest(); @@ -32879,7 +32892,7 @@ class Test_TC_MC_1_10 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AttributeList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -32926,7 +32939,7 @@ class Test_TC_MC_1_10 : public TestCommandBridge { [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AcceptedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -32953,7 +32966,7 @@ class Test_TC_MC_1_10 : public TestCommandBridge { [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: GeneratedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -33147,7 +33160,7 @@ class Test_TC_MC_1_11 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -33169,7 +33182,7 @@ class Test_TC_MC_1_11 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute constraints: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); NextTest(); @@ -33187,7 +33200,7 @@ class Test_TC_MC_1_11 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AttributeList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -33226,7 +33239,7 @@ class Test_TC_MC_1_11 : public TestCommandBridge { [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AcceptedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -33250,7 +33263,7 @@ class Test_TC_MC_1_11 : public TestCommandBridge { [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: GeneratedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -33438,7 +33451,7 @@ class Test_TC_MC_1_12 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -33460,7 +33473,7 @@ class Test_TC_MC_1_12 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute constraints: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); NextTest(); @@ -33478,7 +33491,7 @@ class Test_TC_MC_1_12 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AttributeList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -33515,7 +33528,7 @@ class Test_TC_MC_1_12 : public TestCommandBridge { [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AcceptedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -33541,7 +33554,7 @@ class Test_TC_MC_1_12 : public TestCommandBridge { [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: GeneratedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -33667,7 +33680,7 @@ class Test_TC_MC_2_1 : public TestCommandBridge { [cluster sleepWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Put the device into low power mode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -33937,7 +33950,7 @@ class Test_TC_MC_3_1 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Select Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -33957,7 +33970,7 @@ class Test_TC_MC_3_1 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Up Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -33977,7 +33990,7 @@ class Test_TC_MC_3_1 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Down Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -33997,7 +34010,7 @@ class Test_TC_MC_3_1 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Left Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -34017,7 +34030,7 @@ class Test_TC_MC_3_1 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Right Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -34037,7 +34050,7 @@ class Test_TC_MC_3_1 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send RightUp Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -34057,7 +34070,7 @@ class Test_TC_MC_3_1 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send RightDown Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -34077,7 +34090,7 @@ class Test_TC_MC_3_1 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send LeftUp Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -34097,7 +34110,7 @@ class Test_TC_MC_3_1 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send LeftDown Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -34117,7 +34130,7 @@ class Test_TC_MC_3_1 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send RootMenu Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -34137,7 +34150,7 @@ class Test_TC_MC_3_1 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send SetupMenu Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -34157,7 +34170,7 @@ class Test_TC_MC_3_1 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send ContentsMenu Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -34177,7 +34190,7 @@ class Test_TC_MC_3_1 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send FavoriteMenu Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -34197,7 +34210,7 @@ class Test_TC_MC_3_1 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Exit Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -34217,7 +34230,7 @@ class Test_TC_MC_3_1 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Invalid Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -34343,7 +34356,7 @@ class Test_TC_MC_3_2 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send RootMenu Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -34363,7 +34376,7 @@ class Test_TC_MC_3_2 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send SetupMenu Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -34567,7 +34580,7 @@ class Test_TC_MC_3_3 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Numbers1 Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -34587,7 +34600,7 @@ class Test_TC_MC_3_3 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Numbers2 Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -34607,7 +34620,7 @@ class Test_TC_MC_3_3 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Numbers3 Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -34627,7 +34640,7 @@ class Test_TC_MC_3_3 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Numbers4 Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -34647,7 +34660,7 @@ class Test_TC_MC_3_3 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Numbers5 Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -34667,7 +34680,7 @@ class Test_TC_MC_3_3 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Numbers6 Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -34687,7 +34700,7 @@ class Test_TC_MC_3_3 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Numbers7 Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -34707,7 +34720,7 @@ class Test_TC_MC_3_3 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Numbers8 Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -34727,7 +34740,7 @@ class Test_TC_MC_3_3 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Numbers9 Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -34942,7 +34955,7 @@ class Test_TC_MC_3_4 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send RootMenu Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -34962,7 +34975,7 @@ class Test_TC_MC_3_4 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send RootMenu Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -34982,7 +34995,7 @@ class Test_TC_MC_3_4 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send RootMenu Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -35002,7 +35015,7 @@ class Test_TC_MC_3_4 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send RootMenu Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -35022,7 +35035,7 @@ class Test_TC_MC_3_4 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send RootMenu Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -35042,7 +35055,7 @@ class Test_TC_MC_3_4 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send RootMenu Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -35062,7 +35075,7 @@ class Test_TC_MC_3_4 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send RootMenu Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -35082,7 +35095,7 @@ class Test_TC_MC_3_4 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send RootMenu Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -35102,7 +35115,7 @@ class Test_TC_MC_3_4 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send RootMenu Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -35122,7 +35135,7 @@ class Test_TC_MC_3_4 : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send RootMenu Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -35233,7 +35246,7 @@ class Test_TC_MC_3_5 : public TestCommandBridge { [cluster readAttributeCatalogListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read CatalogList attribute. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("catalogList", "", "list")); NextTest(); @@ -35853,7 +35866,7 @@ class Test_TC_MC_5_1 : public TestCommandBridge { [cluster readAttributeChannelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the ChannelList attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("channelList", "", "list")); NextTest(); @@ -36209,7 +36222,7 @@ class Test_TC_MC_6_1 : public TestCommandBridge { [cluster readAttributeCurrentStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the playback state attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -36404,7 +36417,7 @@ class Test_TC_MC_6_2 : public TestCommandBridge { [cluster readAttributeCurrentStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the CurrentState attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -36759,7 +36772,7 @@ class Test_TC_MC_6_4 : public TestCommandBridge { [cluster readAttributePlaybackSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the PlaybackSpeed attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -36789,7 +36802,7 @@ class Test_TC_MC_6_4 : public TestCommandBridge { [cluster readAttributeCurrentStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the CurrentState attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -36829,7 +36842,7 @@ class Test_TC_MC_6_4 : public TestCommandBridge { [cluster readAttributeCurrentStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the CurrentState attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -37138,7 +37151,7 @@ class Test_TC_MC_8_1 : public TestCommandBridge { [cluster readAttributeCurrentTargetWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the CurrentTarget attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentTarget", "", "uint8")); NextTest(); @@ -37156,7 +37169,7 @@ class Test_TC_MC_8_1 : public TestCommandBridge { [cluster readAttributeTargetListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the TargetList attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("targetList", "", "list")); NextTest(); @@ -37318,7 +37331,7 @@ class Test_TC_MC_9_1 : public TestCommandBridge { [cluster readAttributeVendorNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the VendorName attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("vendorName", "", "string")); VerifyOrReturn(CheckConstraintMaxLength("vendorName", [value length], 32)); @@ -37339,7 +37352,7 @@ class Test_TC_MC_9_1 : public TestCommandBridge { [cluster readAttributeVendorIDWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the VendorID attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("vendorID", "", "vendor-id")); NextTest(); @@ -37359,7 +37372,7 @@ class Test_TC_MC_9_1 : public TestCommandBridge { [cluster readAttributeApplicationNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the ApplicationName attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("applicationName", "", "string")); VerifyOrReturn(CheckConstraintMaxLength("applicationName", [value length], 256)); @@ -37380,7 +37393,7 @@ class Test_TC_MC_9_1 : public TestCommandBridge { [cluster readAttributeProductIDWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the ProductID attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("productID", "", "uint16")); NextTest(); @@ -37400,7 +37413,7 @@ class Test_TC_MC_9_1 : public TestCommandBridge { [cluster readAttributeStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the Status attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -37424,7 +37437,7 @@ class Test_TC_MC_9_1 : public TestCommandBridge { [cluster readAttributeApplicationVersionWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the ApplicationVersion attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("applicationVersion", "", "string")); VerifyOrReturn(CheckConstraintMaxLength("applicationVersion", [value length], 32)); @@ -37542,7 +37555,7 @@ class Test_TC_MC_10_1 : public TestCommandBridge { [cluster readAttributeAcceptHeaderWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"TH reads the AcceptHeader attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("acceptHeader", "", "list")); NextTest(); @@ -37561,7 +37574,7 @@ class Test_TC_MC_10_1 : public TestCommandBridge { readAttributeSupportedStreamingProtocolsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"TH reads the SupportedStreamingProtocols attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("supportedStreamingProtocols", "", "map32")); NextTest(); @@ -37692,7 +37705,7 @@ class Test_TC_MOD_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"TH reads the ClusterRevision attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -37715,7 +37728,7 @@ class Test_TC_MOD_1_1 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"TH reads the AttributeList attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("attributeList", "", "list")); NextTest(); @@ -37733,7 +37746,7 @@ class Test_TC_MOD_1_1 : public TestCommandBridge { [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AcceptedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("acceptedCommandList", "", "list")); NextTest(); @@ -37751,7 +37764,7 @@ class Test_TC_MOD_1_1 : public TestCommandBridge { [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: GeneratedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("generatedCommandList", "", "list")); NextTest(); @@ -37987,7 +38000,7 @@ class Test_TC_MF_1_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"TH_CR1 opens a commissioning window on DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -38009,7 +38022,7 @@ class Test_TC_MF_1_3 : public TestCommandBridge { @"Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -38026,7 +38039,7 @@ class Test_TC_MF_1_3 : public TestCommandBridge { [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"TH_CR1 reads the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -38072,7 +38085,7 @@ class Test_TC_MF_1_3 : public TestCommandBridge { completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Query fabrics list Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -38102,7 +38115,7 @@ class Test_TC_MF_1_3 : public TestCommandBridge { completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Query fabrics list Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -38134,7 +38147,7 @@ class Test_TC_MF_1_3 : public TestCommandBridge { @"Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -38151,7 +38164,7 @@ class Test_TC_MF_1_3 : public TestCommandBridge { [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"TH_CR1 reads the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -38180,7 +38193,7 @@ class Test_TC_MF_1_3 : public TestCommandBridge { @"Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -38197,7 +38210,7 @@ class Test_TC_MF_1_3 : public TestCommandBridge { [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"TH_CR2 reads the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -38429,7 +38442,7 @@ class Test_TC_MF_1_4 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"TH_CR1 opens a commissioning window on DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -38451,7 +38464,7 @@ class Test_TC_MF_1_4 : public TestCommandBridge { @"Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -38468,7 +38481,7 @@ class Test_TC_MF_1_4 : public TestCommandBridge { [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"TH_CR1 reads the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("nodeLabel", "", "string")); VerifyOrReturn(CheckConstraintMaxLength("nodeLabel", [value length], 32)); @@ -38509,7 +38522,7 @@ class Test_TC_MF_1_4 : public TestCommandBridge { completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Query fabrics list Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -38539,7 +38552,7 @@ class Test_TC_MF_1_4 : public TestCommandBridge { completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Query fabrics list Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -38569,7 +38582,7 @@ class Test_TC_MF_1_4 : public TestCommandBridge { @"Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -38586,7 +38599,7 @@ class Test_TC_MF_1_4 : public TestCommandBridge { [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"TH_CR1 reads the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("nodeLabel", "", "string")); VerifyOrReturn(CheckConstraintMaxLength("nodeLabel", [value length], 32)); @@ -38610,7 +38623,7 @@ class Test_TC_MF_1_4 : public TestCommandBridge { @"Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -38627,7 +38640,7 @@ class Test_TC_MF_1_4 : public TestCommandBridge { [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"TH_CR1 reads the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("nodeLabel", "", "string")); VerifyOrReturn(CheckConstraintMaxLength("nodeLabel", [value length], 32)); @@ -38862,7 +38875,7 @@ class Test_TC_MF_1_5 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"TH_CR1 opens a new commissioning window on DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -38934,7 +38947,7 @@ class Test_TC_MF_1_5 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"TH_CR1 opens a new commissioning window on DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -38953,7 +38966,7 @@ class Test_TC_MF_1_5 : public TestCommandBridge { [cluster revokeCommissioningWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"TH_CR1 revokes the commissioning window on DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -38981,7 +38994,7 @@ class Test_TC_MF_1_5 : public TestCommandBridge { [cluster revokeCommissioningWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"TH_CR1 revokes the commissioning window on DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_FAILURE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_FAILURE)); NextTest(); }]; @@ -39000,7 +39013,7 @@ class Test_TC_MF_1_5 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"TH_CR1 writes the mandatory attribute NodeLabel of DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -39017,7 +39030,7 @@ class Test_TC_MF_1_5 : public TestCommandBridge { [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"TH_CR1 read the mandatory attribute NodeLabel of DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -39053,7 +39066,7 @@ class Test_TC_MF_1_5 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"TH_CR1 opens a new commissioning window on DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -39317,7 +39330,7 @@ class Test_TC_MF_1_6 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"TH_CR1 opens a commissioning window on DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -39380,7 +39393,7 @@ class Test_TC_MF_1_6 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"TH_CR1 opens a commissioning window on DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -39399,7 +39412,7 @@ class Test_TC_MF_1_6 : public TestCommandBridge { [cluster revokeCommissioningWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"TH_CR1 revokes the commissioning window on DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -39427,7 +39440,7 @@ class Test_TC_MF_1_6 : public TestCommandBridge { [cluster revokeCommissioningWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"TH_CR1 revokes the commissioning window on DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_FAILURE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_FAILURE)); NextTest(); }]; @@ -39446,7 +39459,7 @@ class Test_TC_MF_1_6 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"TH_CR1 writes the mandatory attribute NodeLabel of DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -39463,7 +39476,7 @@ class Test_TC_MF_1_6 : public TestCommandBridge { [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"TH_CR1 read the mandatory attribute NodeLabel of DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -39490,7 +39503,7 @@ class Test_TC_MF_1_6 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"TH_CR1 opens a commissioning window on DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -39796,7 +39809,7 @@ class Test_TC_MF_1_15 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"TH_CR1 opens a commissioning window on DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -39835,7 +39848,7 @@ class Test_TC_MF_1_15 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"TH_CR1 opens a commissioning window on DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -39874,7 +39887,7 @@ class Test_TC_MF_1_15 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"TH_CR1 opens a commissioning window on DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -39905,7 +39918,7 @@ class Test_TC_MF_1_15 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"TH_CR1 opens a new commissioning window on DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_FAILURE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_FAILURE)); NextTest(); }]; @@ -39926,7 +39939,7 @@ class Test_TC_MF_1_15 : public TestCommandBridge { completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"TH_CR1 reads the list of Fabrics on DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -40001,7 +40014,7 @@ class Test_TC_MF_1_15 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"TH_CR1 re-opens new commissioning window on DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -40032,7 +40045,7 @@ class Test_TC_MF_1_15 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"TH_CR3 opens a new commissioning window on DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_FAILURE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_FAILURE)); NextTest(); }]; @@ -40053,7 +40066,7 @@ class Test_TC_MF_1_15 : public TestCommandBridge { completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"TH_CR1 reads the list of Fabrics on DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -40128,7 +40141,7 @@ class Test_TC_MF_1_15 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"TH_CR1 opens a new commissioning window on DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -40159,7 +40172,7 @@ class Test_TC_MF_1_15 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"TH_CR2 opens a new commissioning window on DUT_CE Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_FAILURE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_FAILURE)); NextTest(); }]; @@ -40337,7 +40350,7 @@ class Test_TC_OCC_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -40361,7 +40374,7 @@ class Test_TC_OCC_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute constraints: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); NextTest(); @@ -40386,7 +40399,7 @@ class Test_TC_OCC_1_1 : public TestCommandBridge { NSLog( @"write the default values to mandatory global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -40404,7 +40417,7 @@ class Test_TC_OCC_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"reads back global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -40428,7 +40441,7 @@ class Test_TC_OCC_1_1 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AttributeList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("attributeList", "", "list")); NextTest(); @@ -40458,7 +40471,7 @@ class Test_TC_OCC_1_1 : public TestCommandBridge { [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AcceptedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("acceptedCommandList", "", "list")); NextTest(); @@ -40478,7 +40491,7 @@ class Test_TC_OCC_1_1 : public TestCommandBridge { [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: GeneratedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("generatedCommandList", "", "list")); NextTest(); @@ -40659,7 +40672,7 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { [cluster readAttributeOccupancyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads mandatory attribute constrains: Occupancy Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("occupancy", "", "map8")); if (value != nil) { @@ -40689,7 +40702,7 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Writes the respective default value to mandatory attribute: Occupancy Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -40707,7 +40720,7 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { [cluster readAttributeOccupancyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back mandatory attribute: Occupancy Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -40731,7 +40744,7 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { [cluster readAttributeOccupancySensorTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads mandatory attribute constrains: OccupancySensorType Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("occupancySensorType", "", "enum8")); if (value != nil) { @@ -40763,7 +40776,8 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { @"OccupancySensorType Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn( + CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -40781,7 +40795,7 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { [cluster readAttributeOccupancySensorTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back mandatory attribute: OccupancySensorType Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -40806,7 +40820,7 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { readAttributeOccupancySensorTypeBitmapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads mandatory attribute constrains: OccupancySensorTypeBitmap Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("occupancySensorTypeBitmap", "", "map8")); if (value != nil) { @@ -40838,7 +40852,8 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { @"OccupancySensorTypeBitmap Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue( + "status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -40857,7 +40872,7 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { readAttributeOccupancySensorTypeBitmapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back mandatory attribute: OccupancySensorTypeBitmap Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -40989,7 +41004,7 @@ class Test_TC_OCC_2_2 : public TestCommandBridge { [cluster readAttributeOccupancyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads Occupancy attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -41016,7 +41031,7 @@ class Test_TC_OCC_2_2 : public TestCommandBridge { [cluster readAttributeOccupancyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back Occupancy attribute from DUT after few seconds Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -41178,7 +41193,7 @@ class Test_TC_OO_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -41201,7 +41216,7 @@ class Test_TC_OO_1_1 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AttributeList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -41239,7 +41254,7 @@ class Test_TC_OO_1_1 : public TestCommandBridge { [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AcceptedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -41268,7 +41283,7 @@ class Test_TC_OO_1_1 : public TestCommandBridge { [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: GeneratedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -41291,7 +41306,7 @@ class Test_TC_OO_1_1 : public TestCommandBridge { [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the optional global attribute: FeatureMap Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -41434,7 +41449,7 @@ class Test_TC_OO_2_1 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: OnOff Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("onOff", "", "bool")); NextTest(); @@ -41457,7 +41472,7 @@ class Test_TC_OO_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("globalSceneControl", "", "bool")); NextTest(); @@ -41480,7 +41495,7 @@ class Test_TC_OO_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("onTime", "", "uint16")); NextTest(); @@ -41503,7 +41518,7 @@ class Test_TC_OO_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("offWaitTime", "", "uint16")); NextTest(); @@ -41526,7 +41541,7 @@ class Test_TC_OO_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("startUpOnOff", "", "enum8")); NextTest(); @@ -41769,7 +41784,7 @@ class Test_TC_OO_2_2 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Send Off Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -41786,7 +41801,7 @@ class Test_TC_OO_2_2 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is false after off command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -41808,7 +41823,7 @@ class Test_TC_OO_2_2 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Send On Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -41825,7 +41840,7 @@ class Test_TC_OO_2_2 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is true after on command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -41847,7 +41862,7 @@ class Test_TC_OO_2_2 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Send On Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -41864,7 +41879,7 @@ class Test_TC_OO_2_2 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is true after on command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -41886,7 +41901,7 @@ class Test_TC_OO_2_2 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Send Off Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -41903,7 +41918,7 @@ class Test_TC_OO_2_2 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is false after off command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -41925,7 +41940,7 @@ class Test_TC_OO_2_2 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Send Off Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -41942,7 +41957,7 @@ class Test_TC_OO_2_2 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is false after off command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -41964,7 +41979,7 @@ class Test_TC_OO_2_2 : public TestCommandBridge { [cluster toggleWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Send Toggle Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -41989,7 +42004,7 @@ class Test_TC_OO_2_2 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is true after toggle command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -42011,7 +42026,7 @@ class Test_TC_OO_2_2 : public TestCommandBridge { [cluster toggleWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Send Toggle Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -42036,7 +42051,7 @@ class Test_TC_OO_2_2 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is false after toggle command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -42076,7 +42091,7 @@ class Test_TC_OO_2_2 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Reset Off Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -42093,7 +42108,7 @@ class Test_TC_OO_2_2 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check on/off attribute value is false after off command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -42694,7 +42709,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Send On Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -42719,7 +42734,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OnOff attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -42741,7 +42756,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeGlobalSceneControlWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads GlobalSceneControl attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -42763,7 +42778,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Send On Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -42788,7 +42803,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OnOff attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -42810,7 +42825,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeGlobalSceneControlWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads GlobalSceneControl attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -42832,7 +42847,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Send On Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -42857,7 +42872,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OnOff attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -42879,7 +42894,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeGlobalSceneControlWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads GlobalSceneControl attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -42901,7 +42916,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeOnTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OnTime attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -42923,7 +42938,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeOffWaitTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OffWaitTime attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -42945,7 +42960,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Send On Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -42962,7 +42977,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OnOff attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -42984,7 +42999,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeOnTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OnTime attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -43006,7 +43021,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeOffWaitTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OffWaitTime attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -43028,7 +43043,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Send Off Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -43045,7 +43060,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OnOff attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -43067,7 +43082,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeOnTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OnTime attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -43089,7 +43104,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OnOff attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -43111,7 +43126,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeOnTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OnTime attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -43133,7 +43148,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeOffWaitTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OffWaitTime attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -43155,7 +43170,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Send On Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -43172,7 +43187,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeOnTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OnTime attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -43194,7 +43209,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeOffWaitTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OffWaitTime attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -43216,7 +43231,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Send Off Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -43233,7 +43248,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OnOff attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -43255,7 +43270,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeOnTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OnTime attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -43277,7 +43292,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OnOff attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -43299,7 +43314,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeOnTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OnTime attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -43321,7 +43336,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Send On Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -43338,7 +43353,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OnOff attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -43360,7 +43375,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeOnTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OnTime attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -43382,7 +43397,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeOffWaitTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OffWaitTime attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -43404,7 +43419,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Send Off Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -43421,7 +43436,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OnOff attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -43443,7 +43458,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeOnTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OnTime attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -43465,7 +43480,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OnOff attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -43487,7 +43502,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeOnTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OnTime attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -43509,7 +43524,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeOffWaitTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OffWaitTime attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -43531,7 +43546,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OnOff attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -43553,7 +43568,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeOnTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OnTime attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -43575,7 +43590,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster readAttributeOffWaitTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads OffWaitTime attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -43597,7 +43612,7 @@ class Test_TC_OO_2_3 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Send Off Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -43874,7 +43889,7 @@ class Test_TC_OO_2_4 : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"TH sends On command to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -43894,7 +43909,7 @@ class Test_TC_OO_2_4 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"TH writes a value of 0 to StartUpOnOff attribute of DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -43911,7 +43926,7 @@ class Test_TC_OO_2_4 : public TestCommandBridge { [cluster readAttributeStartUpOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"TH reads the StartUpOnOff attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -43949,7 +43964,7 @@ class Test_TC_OO_2_4 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"TH reads the OnOff attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -43974,7 +43989,7 @@ class Test_TC_OO_2_4 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"TH writes a value of 1 to StartUpOnOff attribute of DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -44006,7 +44021,7 @@ class Test_TC_OO_2_4 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"TH reads the OnOff attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -44031,7 +44046,7 @@ class Test_TC_OO_2_4 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"TH writes a value of 2 to StartUpOnOff attribute of DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -44063,7 +44078,7 @@ class Test_TC_OO_2_4 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"TH reads the OnOff attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -44100,7 +44115,7 @@ class Test_TC_OO_2_4 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"TH reads the OnOff attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -44125,7 +44140,7 @@ class Test_TC_OO_2_4 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"TH writes NULL to StartUpOnOff attribute of DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -44157,7 +44172,7 @@ class Test_TC_OO_2_4 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"TH reads the OnOff attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -44179,7 +44194,7 @@ class Test_TC_OO_2_4 : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"TH sends Off command to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -44211,7 +44226,7 @@ class Test_TC_OO_2_4 : public TestCommandBridge { [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"TH reads the OnOff attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -44377,7 +44392,7 @@ class Test_TC_PS_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -44399,7 +44414,7 @@ class Test_TC_PS_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute constraints: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); NextTest(); @@ -44417,7 +44432,7 @@ class Test_TC_PS_1_1 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AttributeList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -44461,7 +44476,7 @@ class Test_TC_PS_1_1 : public TestCommandBridge { [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AcceptedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -44484,7 +44499,7 @@ class Test_TC_PS_1_1 : public TestCommandBridge { [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: GeneratedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -44507,7 +44522,7 @@ class Test_TC_PS_1_1 : public TestCommandBridge { [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the optional global attribute: FeatureMap Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -44642,7 +44657,7 @@ class Test_TC_PS_2_1 : public TestCommandBridge { [cluster readAttributeStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Test Harness Client reads Status attribute from Server DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("status", "", "enum8")); if (value != nil) { @@ -44667,7 +44682,7 @@ class Test_TC_PS_2_1 : public TestCommandBridge { [cluster readAttributeOrderWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Test Harness Client reads Order attribute from Server DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("order", "", "uint8")); NextTest(); @@ -44685,7 +44700,7 @@ class Test_TC_PS_2_1 : public TestCommandBridge { [cluster readAttributeDescriptionWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Test Harness Client reads Description attribute from Server DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("description", "", "string")); NextTest(); @@ -44703,7 +44718,7 @@ class Test_TC_PS_2_1 : public TestCommandBridge { [cluster readAttributeBatteryChargeLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Test Harness Client reads BatChargeLevel from Server DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("batteryChargeLevel", "", "enum8")); if (value != nil) { @@ -44900,7 +44915,7 @@ class Test_TC_PRS_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -44924,7 +44939,7 @@ class Test_TC_PRS_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute constraints: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); NextTest(); @@ -44949,7 +44964,7 @@ class Test_TC_PRS_1_1 : public TestCommandBridge { NSLog( @"Write the default values to mandatory global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -44967,7 +44982,7 @@ class Test_TC_PRS_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -44991,7 +45006,7 @@ class Test_TC_PRS_1_1 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global mandatory attribute constraints: AttributeList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("attributeList", "", "list")); NextTest(); @@ -45199,7 +45214,7 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the mandatory attribute constraints: MeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("measuredValue", "", "int16")); NextTest(); @@ -45218,13 +45233,14 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { id measuredValueArgument; measuredValueArgument = [NSNumber numberWithShort:0]; - [cluster writeAttributeMeasuredValueWithValue:measuredValueArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write the default values to mandatory attribute: MeasuredValue Error: %@", err); + [cluster + writeAttributeMeasuredValueWithValue:measuredValueArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write the default values to mandatory attribute: MeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + NextTest(); + }]; return CHIP_NO_ERROR; } @@ -45240,7 +45256,7 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back mandatory attribute: MeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -45265,7 +45281,7 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the mandatory attribute constraints: MinMeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("minMeasuredValue", "", "int16")); NextTest(); @@ -45289,7 +45305,7 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write the default values to mandatory attribute: MinMeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -45307,7 +45323,7 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back mandatory attribute: MinMeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -45332,7 +45348,7 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the mandatory attribute constraints: MaxMeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxMeasuredValue", "", "int16")); NextTest(); @@ -45356,7 +45372,7 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write the default values to mandatory attribute: MaxMeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -45374,7 +45390,7 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads back mandatory attribute: MaxMeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -45548,7 +45564,7 @@ class Test_TC_PCC_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute constraints: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); NextTest(); @@ -45573,7 +45589,7 @@ class Test_TC_PCC_1_1 : public TestCommandBridge { NSLog( @"write the default values to mandatory global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -45591,7 +45607,7 @@ class Test_TC_PCC_1_1 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AttributeList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("attributeList", "", "list")); NextTest(); @@ -45611,7 +45627,7 @@ class Test_TC_PCC_1_1 : public TestCommandBridge { [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AcceptedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("acceptedCommandList", "", "list")); NextTest(); @@ -45631,7 +45647,7 @@ class Test_TC_PCC_1_1 : public TestCommandBridge { [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: GeneratedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("generatedCommandList", "", "list")); NextTest(); @@ -45651,7 +45667,7 @@ class Test_TC_PCC_1_1 : public TestCommandBridge { [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the optional global attribute: FeatureMap Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -45675,7 +45691,7 @@ class Test_TC_PCC_1_1 : public TestCommandBridge { [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the optional global attribute: FeatureMap Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("featureMap", "", "map32")); NextTest(); @@ -45698,7 +45714,7 @@ class Test_TC_PCC_1_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"write the default values to optional global attribute: FeatureMap Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -45716,7 +45732,7 @@ class Test_TC_PCC_1_1 : public TestCommandBridge { [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"reads back optional global attribute: FeatureMap Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -46169,7 +46185,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { [cluster readAttributeMaxPressureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: MaxPressure Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxPressure", "", "int16")); NextTest(); @@ -46189,7 +46205,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { [cluster readAttributeMaxSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: MaxSpeed Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxSpeed", "", "uint16")); NextTest(); @@ -46209,7 +46225,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { [cluster readAttributeMaxFlowWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: MaxFlow Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxFlow", "", "uint16")); NextTest(); @@ -46229,7 +46245,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { [cluster readAttributeEffectiveOperationModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: EffectiveOperationMode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("effectiveOperationMode", "", "enum8")); NextTest(); @@ -46249,7 +46265,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { [cluster readAttributeEffectiveControlModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: EffectiveControlMode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("effectiveControlMode", "", "enum8")); NextTest(); @@ -46269,7 +46285,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { [cluster readAttributeCapacityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: Capacity Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("capacity", "", "int16")); NextTest(); @@ -46289,7 +46305,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { [cluster readAttributeMaxPressureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: MaxPressure Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxPressure", "", "int16")); NextTest(); @@ -46309,7 +46325,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { [cluster readAttributeMaxSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: MaxSpeed Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxSpeed", "", "uint16")); NextTest(); @@ -46329,7 +46345,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { [cluster readAttributeMaxFlowWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: MaxFlow Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxFlow", "", "uint16")); NextTest(); @@ -46349,7 +46365,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { [cluster readAttributeEffectiveOperationModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: EffectiveOperationMode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("effectiveOperationMode", "", "enum8")); NextTest(); @@ -46369,7 +46385,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { [cluster readAttributeEffectiveControlModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: EffectiveControlMode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("effectiveControlMode", "", "enum8")); NextTest(); @@ -46389,7 +46405,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { [cluster readAttributeCapacityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: Capacity Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("capacity", "", "int16")); NextTest(); @@ -46414,7 +46430,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("minConstPressure", "", "int16")); NextTest(); @@ -46439,7 +46455,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxConstPressure", "", "int16")); NextTest(); @@ -46464,7 +46480,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("minCompPressure", "", "int16")); NextTest(); @@ -46489,7 +46505,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxCompPressure", "", "int16")); NextTest(); @@ -46514,7 +46530,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("minConstSpeed", "", "uint16")); NextTest(); @@ -46539,7 +46555,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxConstSpeed", "", "uint16")); NextTest(); @@ -46564,7 +46580,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("minConstFlow", "", "uint16")); NextTest(); @@ -46589,7 +46605,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxConstFlow", "", "uint16")); NextTest(); @@ -46614,7 +46630,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("minConstTemp", "", "int16")); if (value != nil) { @@ -46643,7 +46659,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxConstTemp", "", "int16")); if (value != nil) { @@ -46672,7 +46688,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -46701,7 +46717,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("pumpStatus", "", "map16")); NextTest(); @@ -46726,7 +46742,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("speed", "", "uint16")); NextTest(); @@ -46751,7 +46767,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -46781,7 +46797,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("lifetimeRunningHours", "", "uint24")); NextTest(); @@ -46806,7 +46822,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("power", "", "uint24")); NextTest(); @@ -46831,7 +46847,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -46861,7 +46877,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("lifetimeEnergyConsumed", "", "uint32")); NextTest(); @@ -46889,7 +46905,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -46913,7 +46929,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("minConstPressure", "", "int16")); NextTest(); @@ -46938,7 +46954,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxConstPressure", "", "int16")); NextTest(); @@ -46963,7 +46979,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("minCompPressure", "", "int16")); NextTest(); @@ -46988,7 +47004,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxCompPressure", "", "int16")); NextTest(); @@ -47013,7 +47029,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("minConstSpeed", "", "uint16")); NextTest(); @@ -47038,7 +47054,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxConstSpeed", "", "uint16")); NextTest(); @@ -47063,7 +47079,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("minConstFlow", "", "uint16")); NextTest(); @@ -47088,7 +47104,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxConstFlow", "", "uint16")); NextTest(); @@ -47113,7 +47129,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("minConstTemp", "", "int16")); if (value != nil) { @@ -47145,7 +47161,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxConstTemp", "", "int16")); if (value != nil) { @@ -47177,7 +47193,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -47206,7 +47222,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("pumpStatus", "", "map16")); NextTest(); @@ -47231,7 +47247,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("speed", "", "uint16")); NextTest(); @@ -47251,7 +47267,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { [cluster readAttributeLifetimeRunningHoursWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the optional attribute: LifetimeRunningHours Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -47281,7 +47297,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("lifetimeRunningHours", "", "uint24")); NextTest(); @@ -47306,7 +47322,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("power", "", "uint24")); NextTest(); @@ -47331,7 +47347,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -47361,7 +47377,7 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("lifetimeEnergyConsumed", "", "uint32")); NextTest(); @@ -47535,7 +47551,7 @@ class Test_TC_PCC_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write 1 to the OperationMode attribute to DUT: OperationMode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -47554,7 +47570,7 @@ class Test_TC_PCC_2_2 : public TestCommandBridge { [cluster readAttributeEffectiveOperationModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the attribute: EffectiveOperationMode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -47581,7 +47597,7 @@ class Test_TC_PCC_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write 2 to the OperationMode attribute to DUT: OperationMode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -47600,7 +47616,7 @@ class Test_TC_PCC_2_2 : public TestCommandBridge { [cluster readAttributeEffectiveOperationModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the attribute: EffectiveOperationMode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -47627,7 +47643,7 @@ class Test_TC_PCC_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write 3 to the OperationMode attribute to DUT: OperationMode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -47646,7 +47662,7 @@ class Test_TC_PCC_2_2 : public TestCommandBridge { [cluster readAttributeEffectiveOperationModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the attribute: EffectiveOperationMode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -47912,7 +47928,7 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write 0 to the OperationMode attribute to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -47931,7 +47947,7 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { [cluster readAttributeEffectiveOperationModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the attribute: EffectiveOperationMode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -47958,7 +47974,7 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write 0 to the ControlMode attribute to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -47977,7 +47993,7 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { [cluster readAttributeEffectiveControlModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the attribute: EffectiveControlMode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -48004,7 +48020,7 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write 1 to the ControlMode attribute to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -48023,7 +48039,7 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { [cluster readAttributeEffectiveControlModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the attribute: EffectiveControlMode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -48050,7 +48066,7 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write 2 to the ControlMode attribute to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -48069,7 +48085,7 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { [cluster readAttributeEffectiveControlModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the attribute: EffectiveControlMode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -48096,7 +48112,7 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write 3 to the ControlMode attribute to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -48115,7 +48131,7 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { [cluster readAttributeEffectiveControlModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the attribute: EffectiveControlMode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -48142,7 +48158,7 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write 5 to the ControlMode attribute to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -48161,7 +48177,7 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { [cluster readAttributeEffectiveControlModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the attribute: EffectiveControlMode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -48188,7 +48204,7 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write 7 to the ControlMode attribute to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -48207,7 +48223,7 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { [cluster readAttributeEffectiveControlModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the attribute: EffectiveControlMode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -48403,7 +48419,7 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write 1 to the LifetimeRunningHours attribute to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -48422,7 +48438,7 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { [cluster readAttributeLifetimeRunningHoursWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the attribute: LifetimeRunningHours Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -48450,7 +48466,7 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write 2 to the LifetimeRunningHours attribute to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -48469,7 +48485,7 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { [cluster readAttributeLifetimeRunningHoursWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the attribute: LifetimeRunningHours Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -48497,7 +48513,7 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write 3 to the LifetimeRunningHours attribute to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -48516,7 +48532,7 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { [cluster readAttributeLifetimeRunningHoursWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the attribute: LifetimeRunningHours Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -48544,7 +48560,7 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write 1 to the LifetimeEnergyConsumed attribute to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -48563,7 +48579,7 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { [cluster readAttributeLifetimeEnergyConsumedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the attribute: LifetimeEnergyConsumed Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -48591,7 +48607,7 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write 2 to the LifetimeEnergyConsumed attribute to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -48610,7 +48626,7 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { [cluster readAttributeLifetimeEnergyConsumedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the attribute: LifetimeEnergyConsumed Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -48638,7 +48654,7 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write 3 to the LifetimeEnergyConsumed attribute to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -48657,7 +48673,7 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { [cluster readAttributeLifetimeEnergyConsumedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads the attribute: LifetimeEnergyConsumed Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -48795,7 +48811,7 @@ class Test_TC_PSCFG_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"TH reads the ClusterRevision attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -48819,7 +48835,7 @@ class Test_TC_PSCFG_1_1 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"TH reads the AttributeList attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("attributeList", "", "list")); NextTest(); @@ -48839,7 +48855,7 @@ class Test_TC_PSCFG_1_1 : public TestCommandBridge { [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"TH reads the AcceptedCommandList attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("acceptedCommandList", "", "list")); NextTest(); @@ -48859,7 +48875,7 @@ class Test_TC_PSCFG_1_1 : public TestCommandBridge { [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"TH reads the GeneratedCommandList attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("generatedCommandList", "", "list")); NextTest(); @@ -49038,7 +49054,7 @@ class Test_TC_RH_1_1 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AttributeList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -49076,7 +49092,7 @@ class Test_TC_RH_1_1 : public TestCommandBridge { [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AcceptedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -49101,7 +49117,7 @@ class Test_TC_RH_1_1 : public TestCommandBridge { [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: GeneratedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -49253,7 +49269,7 @@ class Test_TC_RH_2_1 : public TestCommandBridge { [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads constraints of attribute: MeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("measuredValue", "", "int16")); if (value != nil) { @@ -49280,7 +49296,7 @@ class Test_TC_RH_2_1 : public TestCommandBridge { [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads constraints of attribute: MinMeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("minMeasuredValue", "", "int16")); if (value != nil) { @@ -49307,7 +49323,7 @@ class Test_TC_RH_2_1 : public TestCommandBridge { [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads constraints of attribute: MaxMeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxMeasuredValue", "", "int16")); if (value != nil) { @@ -49339,7 +49355,7 @@ class Test_TC_RH_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("tolerance", "", "uint16")); if (value != nil) { @@ -49480,7 +49496,7 @@ class Test_TC_RH_2_2 : public TestCommandBridge { [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads constraints of attribute: MinMeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("minMeasuredValue", "", "int16")); if (value != nil) { @@ -49507,7 +49523,7 @@ class Test_TC_RH_2_2 : public TestCommandBridge { [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads MeasuredValue attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("measuredValue", "", "int16")); if (value != nil) { @@ -49534,7 +49550,7 @@ class Test_TC_RH_2_2 : public TestCommandBridge { [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the mandatory attribute: MeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("measuredValue", "", "uint16")); NextTest(); @@ -49679,7 +49695,7 @@ class Test_TC_SWTCH_2_1 : public TestCommandBridge { [cluster readAttributeNumberOfPositionsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read NumberOfPositions attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -49701,7 +49717,7 @@ class Test_TC_SWTCH_2_1 : public TestCommandBridge { [cluster readAttributeNumberOfPositionsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read NumberOfPositions attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("numberOfPositions", "", "uint8")); if (value != nil) { @@ -49723,7 +49739,7 @@ class Test_TC_SWTCH_2_1 : public TestCommandBridge { [cluster readAttributeCurrentPositionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read CurrentPosition attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -49745,7 +49761,7 @@ class Test_TC_SWTCH_2_1 : public TestCommandBridge { [cluster readAttributeCurrentPositionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read CurrentPosition attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentPosition", "", "uint8")); if (value != nil) { @@ -49767,7 +49783,7 @@ class Test_TC_SWTCH_2_1 : public TestCommandBridge { [cluster readAttributeMultiPressMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read MultiPressMax attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -49789,7 +49805,7 @@ class Test_TC_SWTCH_2_1 : public TestCommandBridge { [cluster readAttributeMultiPressMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read MultiPressMax attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("multiPressMax", "", "uint8")); if (value != nil) { @@ -50171,7 +50187,7 @@ class Test_TC_SWTCH_2_2 : public TestCommandBridge { [cluster readAttributeCurrentPositionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read CurrentPosition attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -50217,7 +50233,7 @@ class Test_TC_SWTCH_2_2 : public TestCommandBridge { [cluster readAttributeCurrentPositionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read CurrentPosition attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -50650,7 +50666,7 @@ class Test_TC_TM_1_1 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AttributeList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -50823,7 +50839,7 @@ class Test_TC_TM_2_1 : public TestCommandBridge { [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: MeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("measuredValue", "", "int16")); NextTest(); @@ -50843,7 +50859,7 @@ class Test_TC_TM_2_1 : public TestCommandBridge { [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: MinMeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("minMeasuredValue", "", "int16")); if (value != nil) { @@ -50870,7 +50886,7 @@ class Test_TC_TM_2_1 : public TestCommandBridge { [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: MaxMeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxMeasuredValue", "", "int16")); if (value != nil) { @@ -50902,7 +50918,7 @@ class Test_TC_TM_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("tolerance", "", "uint16")); if (value != nil) { @@ -51050,7 +51066,7 @@ class Test_TC_TM_2_2 : public TestCommandBridge { [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: MinMeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("minMeasuredValue", "", "int16")); if (value != nil) { @@ -51077,7 +51093,7 @@ class Test_TC_TM_2_2 : public TestCommandBridge { [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: MaxMeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxMeasuredValue", "", "int16")); if (value != nil) { @@ -51104,7 +51120,7 @@ class Test_TC_TM_2_2 : public TestCommandBridge { [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads MeasuredValue attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("measuredValue", "", "uint16")); NextTest(); @@ -51124,7 +51140,7 @@ class Test_TC_TM_2_2 : public TestCommandBridge { [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the mandatory attribute: MeasuredValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("measuredValue", "", "uint16")); NextTest(); @@ -51248,7 +51264,7 @@ class Test_TC_TSTAT_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute constraints: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); NextTest(); @@ -51266,7 +51282,7 @@ class Test_TC_TSTAT_1_1 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AttributeList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("attributeList", "", "list")); NextTest(); @@ -51284,7 +51300,7 @@ class Test_TC_TSTAT_1_1 : public TestCommandBridge { [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the optional global attribute constraints: FeatureMap Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("featureMap", "", "map32")); NextTest(); @@ -51521,7 +51537,7 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { [cluster readAttributeLocalTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads constraints of mandatory attributes from DUT: LocalTemperature Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("localTemperature", "", "int16")); NextTest(); @@ -51539,7 +51555,7 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { [cluster readAttributeAbsMinHeatSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads constraints of mandatory attributes from DUT: AbsMinHeatSetpointLimit Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("absMinHeatSetpointLimit", "", "int16")); if (value != nil) { @@ -51564,7 +51580,7 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { [cluster readAttributeAbsMaxHeatSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads constraints of mandatory attributes from DUT: AbsMaxHeatSetpointLimit Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("absMaxHeatSetpointLimit", "", "int16")); if (value != nil) { @@ -51594,7 +51610,7 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("absMinCoolSetpointLimit", "", "int16")); if (value != nil) { @@ -51624,7 +51640,7 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("absMaxCoolSetpointLimit", "", "int16")); if (value != nil) { @@ -51654,7 +51670,7 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("occupiedCoolingSetpoint", "", "int16")); if (value != nil) { @@ -51679,7 +51695,7 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { [cluster readAttributeOccupiedHeatingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads constraints of mandatory attributes from DUT: OccupiedHeatingSetpoint Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("occupiedHeatingSetpoint", "", "int16")); if (value != nil) { @@ -51704,7 +51720,7 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { [cluster readAttributeMinHeatSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads constraints of mandatory attributes from DUT: MinHeatSetpointLimit Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("minHeatSetpointLimit", "", "int16")); if (value != nil) { @@ -51729,7 +51745,7 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { [cluster readAttributeMaxHeatSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads constraints of mandatory attributes from DUT: MaxHeatSetpointLimit Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxHeatSetpointLimit", "", "int16")); if (value != nil) { @@ -51759,7 +51775,7 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("minCoolSetpointLimit", "", "int16")); if (value != nil) { @@ -51789,7 +51805,7 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxCoolSetpointLimit", "", "int16")); if (value != nil) { @@ -51815,7 +51831,7 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { readAttributeControlSequenceOfOperationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads constraints of mandatory attributes from DUT: ControlSequenceOfOperation Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("controlSequenceOfOperation", "", "enum8")); if (value != nil) { @@ -51840,7 +51856,7 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { [cluster readAttributeSystemModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads constraints of mandatory attributes from DUT: SystemMode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("systemMode", "", "enum8")); if (value != nil) { @@ -51870,7 +51886,7 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("minSetpointDeadBand", "", "int8")); if (value != nil) { @@ -51900,7 +51916,7 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("startOfWeek", "", "enum8")); if (value != nil) { @@ -51931,7 +51947,7 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("numberOfWeeklyTransitions", "", "uint8")); NextTest(); @@ -51954,7 +51970,7 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("numberOfDailyTransitions", "", "uint8")); NextTest(); @@ -52648,7 +52664,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -52688,7 +52704,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -52710,7 +52726,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -52742,7 +52758,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -52769,7 +52785,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -52787,7 +52803,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { NSLog(@"Reads OccupiedHeatingSetpoint attribute from Server DUT and verifies that the value is within range Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -52822,7 +52838,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"OccupiedHeatingSetpoint attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -52839,7 +52855,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { [cluster readAttributeOccupiedHeatingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads it back again to confirm the successful write of OccupiedHeatingSetpoint attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -52866,7 +52882,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -52888,7 +52904,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -52906,7 +52922,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { NSLog( @"Reads MinHeatSetpointLimit attribute from Server DUT and verifies that the value is within range Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -52941,7 +52957,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -52958,7 +52974,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { [cluster readAttributeMinHeatSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads it back again to confirm the successful write of MinHeatSetpointLimit attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -52985,7 +53001,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -53007,7 +53023,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -53025,7 +53041,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { NSLog( @"Reads MaxHeatSetpointLimit attribute from Server DUT and verifies that the value is within range Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -53060,7 +53076,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -53077,7 +53093,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { [cluster readAttributeMaxHeatSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads it back again to confirm the successful write of MaxHeatSetpointLimit attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -53104,7 +53120,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -53126,7 +53142,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -53149,7 +53165,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -53189,7 +53205,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -53211,7 +53227,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -53243,7 +53259,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -53270,7 +53286,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -53293,7 +53309,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -53333,7 +53349,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -53355,7 +53371,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -53387,7 +53403,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -53414,7 +53430,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -53436,7 +53452,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"MinHeatSetpointLimit attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -53458,7 +53474,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"MinHeatSetpointLimit attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -53480,7 +53496,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"MaxHeatSetpointLimit attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -53502,7 +53518,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"MaxHeatSetpointLimit attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -53529,7 +53545,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -53556,7 +53572,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -53583,7 +53599,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -53610,7 +53626,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -53628,7 +53644,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { readAttributeControlSequenceOfOperationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads ControlSequenceOfOperation from Server DUT and verifies that the value is valid Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -53663,7 +53679,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { @"valid value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -53681,7 +53697,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { readAttributeControlSequenceOfOperationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read it back again to confirm the successful write Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -53706,7 +53722,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Sets OccupiedHeatingSetpoint to default value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -53726,7 +53742,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Sets OccupiedHeatingSetpoint to default value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -53751,7 +53767,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -53776,7 +53792,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -53801,7 +53817,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -53821,7 +53837,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Sets OccupiedHeatingSetpoint to default value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -53846,7 +53862,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -53866,7 +53882,7 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Sets OccupiedHeatingSetpoint to default value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -54031,7 +54047,7 @@ class Test_TC_TSUIC_1_1 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AttributeList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -54068,7 +54084,7 @@ class Test_TC_TSUIC_1_1 : public TestCommandBridge { [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AcceptedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -54092,7 +54108,7 @@ class Test_TC_TSUIC_1_1 : public TestCommandBridge { [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: GeneratedCommandList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -54243,7 +54259,7 @@ class Test_TC_TSUIC_2_1 : public TestCommandBridge { [cluster readAttributeTemperatureDisplayModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: TemperatureDisplayMode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -54266,7 +54282,7 @@ class Test_TC_TSUIC_2_1 : public TestCommandBridge { [cluster readAttributeTemperatureDisplayModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: TemperatureDisplayMode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("temperatureDisplayMode", "", "enum8")); if (value != nil) { @@ -54292,7 +54308,7 @@ class Test_TC_TSUIC_2_1 : public TestCommandBridge { [cluster readAttributeKeypadLockoutWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: KeypadLockout Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -54315,7 +54331,7 @@ class Test_TC_TSUIC_2_1 : public TestCommandBridge { [cluster readAttributeKeypadLockoutWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: KeypadLockout Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("keypadLockout", "", "enum8")); if (value != nil) { @@ -54342,7 +54358,7 @@ class Test_TC_TSUIC_2_1 : public TestCommandBridge { readAttributeScheduleProgrammingVisibilityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the optional attribute: ScheduleProgrammingVisibility Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -54366,7 +54382,7 @@ class Test_TC_TSUIC_2_1 : public TestCommandBridge { readAttributeScheduleProgrammingVisibilityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the optional attribute: ScheduleProgrammingVisibility Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("scheduleProgrammingVisibility", "", "enum8")); if (value != nil) { @@ -54628,7 +54644,7 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Writes a value of 0 to TemperatureDisplayMode attribute of DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -54650,7 +54666,7 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Writes a value of 1 to TemperatureDisplayMode attribute of DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -54673,7 +54689,8 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { @"DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn( + CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; @@ -54693,7 +54710,7 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Writes a value of 0 to KeypadLockout attribute of DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -54714,7 +54731,7 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Writes a value of 1 to KeypadLockout attribute of DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -54735,7 +54752,7 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Writes a value of 2 to KeypadLockout attribute of DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -54756,7 +54773,7 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Writes a value of 3 to KeypadLockout attribute of DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -54777,7 +54794,7 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Writes a value of 4 to KeypadLockout attribute of DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -54798,7 +54815,7 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Writes a value of 5 to KeypadLockout attribute of DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -54819,7 +54836,7 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Writes a value of greater than 5 to KeypadLockout attribute of DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; @@ -54841,7 +54858,7 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { @"DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -54864,7 +54881,7 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { @"DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -54881,16 +54898,16 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { id scheduleProgrammingVisibilityArgument; scheduleProgrammingVisibilityArgument = [NSNumber numberWithUnsignedChar:2]; - [cluster - writeAttributeScheduleProgrammingVisibilityWithValue:scheduleProgrammingVisibilityArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Writes a value of greater than 1 to ScheduleProgrammingVisibility " - @"attribute of DUT Error: %@", - err); + [cluster writeAttributeScheduleProgrammingVisibilityWithValue:scheduleProgrammingVisibilityArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Writes a value of greater than 1 to ScheduleProgrammingVisibility " + @"attribute of DUT Error: %@", + err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); - NextTest(); - }]; + VerifyOrReturn(CheckValue( + "status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + NextTest(); + }]; return CHIP_NO_ERROR; } @@ -55005,7 +55022,7 @@ class Test_TC_DIAG_TH_NW_1_1 : public TestCommandBridge { [cluster resetCountsWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Sends ResetCounts command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -55024,7 +55041,7 @@ class Test_TC_DIAG_TH_NW_1_1 : public TestCommandBridge { [cluster readAttributeOverrunCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the Overruncount attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -55841,7 +55858,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeChannelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: Channel Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("channel", "", "uint16")); NextTest(); @@ -55861,7 +55878,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeNetworkNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: NetworkName Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("networkName", "", "string")); VerifyOrReturn(CheckConstraintMaxLength("networkName", [value length], 16)); @@ -55882,7 +55899,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributePanIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: PanId Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("panId", "", "uint16")); NextTest(); @@ -55902,7 +55919,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeExtendedPanIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: ExtendedPanId Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("extendedPanId", "", "uint64")); NextTest(); @@ -55922,7 +55939,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeOverrunCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: OverrunCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("overrunCount", "", "uint64")); NextTest(); @@ -55942,7 +55959,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributePartitionIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read PartitionId attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -55966,7 +55983,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributePartitionIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: PartitionId Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("partitionId", "", "uint32")); NextTest(); @@ -55986,7 +56003,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeWeightingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read Weighting attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -56010,7 +56027,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeWeightingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: weighting Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("weighting", "", "uint8")); NextTest(); @@ -56030,7 +56047,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeDataVersionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read DataVersion attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -56054,7 +56071,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeDataVersionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: DataVersion Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("dataVersion", "", "uint8")); NextTest(); @@ -56074,7 +56091,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeStableDataVersionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read StableDataVersion attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -56098,7 +56115,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeStableDataVersionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: StableDataVersion Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("stableDataVersion", "", "uint8")); NextTest(); @@ -56118,7 +56135,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeLeaderRouterIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read LeaderRouterId attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -56142,7 +56159,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeLeaderRouterIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: LeaderRouterId Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("leaderRouterId", "", "uint8")); NextTest(); @@ -56162,7 +56179,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeDetachedRoleCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read DetachedRoleCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -56186,7 +56203,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeDetachedRoleCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: DetachedRoleCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("detachedRoleCount", "", "uint16")); NextTest(); @@ -56206,7 +56223,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeChildRoleCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read ChildRoleCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -56230,7 +56247,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeChildRoleCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: ChildRoleCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("childRoleCount", "", "uint16")); NextTest(); @@ -56250,7 +56267,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRouterRoleCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read RouterRoleCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -56274,7 +56291,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRouterRoleCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: RouterRoleCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("routerRoleCount", "", "uint16")); NextTest(); @@ -56294,7 +56311,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeLeaderRoleCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read LeaderRoleCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -56318,7 +56335,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeLeaderRoleCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: LeaderRoleCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("leaderRoleCount", "", "uint16")); NextTest(); @@ -56338,7 +56355,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeAttachAttemptCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read AttachAttemptCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -56362,7 +56379,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeAttachAttemptCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: AttachAttemptCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("attachAttemptCount", "", "uint16")); NextTest(); @@ -56382,7 +56399,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributePartitionIdChangeCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read PartitionIdChangeCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -56406,7 +56423,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributePartitionIdChangeCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: PartitionIdChangeCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("partitionIdChangeCount", "", "uint16")); NextTest(); @@ -56427,7 +56444,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read BetterPartitionAttachAttemptCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -56452,7 +56469,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: BetterPartitionAttachAttemptCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("betterPartitionAttachAttemptCount", "", "uint16")); NextTest(); @@ -56472,7 +56489,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeParentChangeCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read ParentChangeCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -56496,7 +56513,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeParentChangeCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: ParentChangeCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("parentChangeCount", "", "uint16")); NextTest(); @@ -56516,7 +56533,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeTxTotalCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read TxTotalCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -56540,7 +56557,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeTxTotalCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: TxTotalCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("txTotalCount", "", "uint32")); NextTest(); @@ -56560,7 +56577,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeTxUnicastCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read TxUnicastCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -56584,7 +56601,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeTxUnicastCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: TxUnicastCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("txUnicastCount", "", "uint32")); NextTest(); @@ -56604,7 +56621,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeTxBroadcastCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read TxBroadcastCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -56628,7 +56645,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeTxBroadcastCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: TxBroadcastCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("txBroadcastCount", "", "uint32")); NextTest(); @@ -56648,7 +56665,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeTxNoAckRequestedCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read TxNoAckRequestedCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -56672,7 +56689,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeTxNoAckRequestedCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: TxNoAckRequestedCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("txNoAckRequestedCount", "", "uint32")); NextTest(); @@ -56692,7 +56709,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeTxDataCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read TxDataCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -56716,7 +56733,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeTxDataCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: TxDataCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("txDataCount", "", "uint32")); NextTest(); @@ -56736,7 +56753,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeTxDataPollCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read TxDataPollCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -56760,7 +56777,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeTxDataPollCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: TxDataPollCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("txDataPollCount", "", "uint32")); NextTest(); @@ -56780,7 +56797,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeTxBeaconCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read TxBeaconCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -56804,7 +56821,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeTxBeaconCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: TxBeaconCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("txBeaconCount", "", "uint32")); NextTest(); @@ -56824,7 +56841,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeTxBeaconRequestCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read TxBeaconRequestCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -56848,7 +56865,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeTxBeaconRequestCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: TxBeaconRequestCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("txBeaconRequestCount", "", "uint32")); NextTest(); @@ -56868,7 +56885,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeTxOtherCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read TxOtherCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -56892,7 +56909,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeTxOtherCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: TxOtherCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("txOtherCount", "", "uint32")); NextTest(); @@ -56912,7 +56929,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeTxRetryCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read TxRetryCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -56936,7 +56953,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeTxRetryCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: TxRetryCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("txRetryCount", "", "uint32")); NextTest(); @@ -56957,7 +56974,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { readAttributeTxDirectMaxRetryExpiryCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read TxDirectMaxRetryExpiryCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -56982,7 +56999,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { readAttributeTxDirectMaxRetryExpiryCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: TxDirectMaxRetryExpiryCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("txDirectMaxRetryExpiryCount", "", "uint32")); NextTest(); @@ -57003,7 +57020,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { readAttributeTxIndirectMaxRetryExpiryCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read TxIndirectMaxRetryExpiryCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -57028,7 +57045,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { readAttributeTxIndirectMaxRetryExpiryCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: TxIndirectMaxRetryExpiryCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("txIndirectMaxRetryExpiryCount", "", "uint32")); NextTest(); @@ -57048,7 +57065,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeTxErrCcaCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read TxErrCcaCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -57072,7 +57089,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeTxErrCcaCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: TxErrCcaCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("txErrCcaCount", "", "uint32")); NextTest(); @@ -57092,7 +57109,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeTxErrAbortCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read TxErrAbortCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -57116,7 +57133,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeTxErrAbortCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: TxErrAbortCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("txErrAbortCount", "", "uint32")); NextTest(); @@ -57136,7 +57153,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeTxErrBusyChannelCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read TxErrBusyChannelCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -57160,7 +57177,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeTxErrBusyChannelCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: TxErrBusyChannelCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("txErrBusyChannelCount", "", "uint32")); NextTest(); @@ -57180,7 +57197,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxTotalCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read RxTotalCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -57204,7 +57221,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxTotalCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: RxTotalCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("rxTotalCount", "", "uint32")); NextTest(); @@ -57224,7 +57241,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxUnicastCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read RxUnicastCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -57248,7 +57265,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxUnicastCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: RxUnicastCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("rxUnicastCount", "", "uint32")); NextTest(); @@ -57268,7 +57285,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxBroadcastCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read RxBroadcastCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -57292,7 +57309,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxBroadcastCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: RxBroadcastCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("rxBroadcastCount", "", "uint32")); NextTest(); @@ -57312,7 +57329,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxDataCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read RxDataCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -57336,7 +57353,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxDataCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: RxDataCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("rxDataCount", "", "uint32")); NextTest(); @@ -57356,7 +57373,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxDataPollCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read RxDataPollCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -57380,7 +57397,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxDataPollCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: RxDataPollCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("rxDataPollCount", "", "uint32")); NextTest(); @@ -57400,7 +57417,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxBeaconCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read RxBeaconCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -57424,7 +57441,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxBeaconCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: RxBeaconCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("rxBeaconCount", "", "uint32")); NextTest(); @@ -57444,7 +57461,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxBeaconRequestCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read RxBeaconRequestCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -57468,7 +57485,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxBeaconRequestCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: RxBeaconRequestCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("rxBeaconRequestCount", "", "uint32")); NextTest(); @@ -57488,7 +57505,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxOtherCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read RxOtherCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -57512,7 +57529,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxOtherCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: RxOtherCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("rxOtherCount", "", "uint32")); NextTest(); @@ -57532,7 +57549,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxAddressFilteredCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read RxAddressFilteredCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -57556,7 +57573,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxAddressFilteredCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: RxAddressFilteredCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("rxAddressFilteredCount", "", "uint32")); NextTest(); @@ -57576,7 +57593,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxDestAddrFilteredCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read RxDestAddrFilteredCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -57600,7 +57617,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxDestAddrFilteredCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: RxDestAddrFilteredCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("rxDestAddrFilteredCount", "", "uint32")); NextTest(); @@ -57620,7 +57637,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxDuplicatedCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read RxDuplicatedCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -57644,7 +57661,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxDuplicatedCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: RxDuplicatedCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("rxDuplicatedCount", "", "uint32")); NextTest(); @@ -57664,7 +57681,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxErrNoFrameCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read RxErrNoFrameCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -57688,7 +57705,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxErrNoFrameCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: RxErrNoFrameCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("rxErrNoFrameCount", "", "uint32")); NextTest(); @@ -57709,7 +57726,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { readAttributeRxErrUnknownNeighborCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read RxErrUnknownNeighborCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -57734,7 +57751,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { readAttributeRxErrUnknownNeighborCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: RxErrUnknownNeighborCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("rxErrUnknownNeighborCount", "", "uint32")); NextTest(); @@ -57754,7 +57771,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxErrInvalidSrcAddrCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read RxErrInvalidScrAddrCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -57778,7 +57795,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxErrInvalidSrcAddrCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: RxErrInvalidSrcAddrCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("rxErrInvalidSrcAddrCount", "", "uint32")); NextTest(); @@ -57798,7 +57815,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxErrSecCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read RxErrSecCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -57822,7 +57839,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxErrSecCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: RxErrInvalidSrcAddrCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("rxErrSecCount", "", "uint32")); NextTest(); @@ -57842,7 +57859,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxErrFcsCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read RxErrFcsCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -57866,7 +57883,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxErrFcsCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: RxErrFcsCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("rxErrFcsCount", "", "uint32")); NextTest(); @@ -57886,7 +57903,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxErrOtherCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read RxErrOtherCount attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -57910,7 +57927,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeRxErrOtherCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: RxErrOtherCount Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("rxErrOtherCount", "", "uint32")); NextTest(); @@ -57930,7 +57947,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeActiveTimestampWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read ActiveTimestamp attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -57954,7 +57971,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeActiveTimestampWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: ActiveTimestamp Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("activeTimestamp", "", "uint64")); NextTest(); @@ -57974,7 +57991,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributePendingTimestampWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read PendingTimestamp attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -57998,7 +58015,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributePendingTimestampWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: PendingTimestamp Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("pendingTimestamp", "", "uint64")); NextTest(); @@ -58018,7 +58035,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeDelayWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read Delay attribute value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -58042,7 +58059,7 @@ class Test_TC_DIAG_TH_NW_1_2 : public TestCommandBridge { [cluster readAttributeDelayWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate constraints of attribute: delay Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("delay", "", "uint32")); NextTest(); @@ -58152,7 +58169,7 @@ class Test_TC_LC_1_2 : public TestCommandBridge { [cluster readAttributeLabelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"TH1 reads LabelList attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -58298,7 +58315,7 @@ class Test_TC_WIFIDIAG_1_1 : public TestCommandBridge { [cluster readAttributeNetworkInterfacesWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads NetworkInterface structure attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("networkInterfaces", "", "list")); NextTest(); @@ -58318,7 +58335,7 @@ class Test_TC_WIFIDIAG_1_1 : public TestCommandBridge { [cluster readAttributeSecurityTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads SecurityType attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -58342,7 +58359,7 @@ class Test_TC_WIFIDIAG_1_1 : public TestCommandBridge { [cluster readAttributeSecurityTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads SecurityType attribute constraints Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("securityType", "", "enum")); NextTest(); @@ -58362,7 +58379,7 @@ class Test_TC_WIFIDIAG_1_1 : public TestCommandBridge { [cluster readAttributeWiFiVersionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads WiFiVersion attribute constraints Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("wiFiVersion", "", "enum")); if (value != nil) { @@ -58389,7 +58406,7 @@ class Test_TC_WIFIDIAG_1_1 : public TestCommandBridge { [cluster readAttributeChannelNumberWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads ChannelNumber attribute constraints Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("channelNumber", "", "uint16")); NextTest(); @@ -58409,7 +58426,7 @@ class Test_TC_WIFIDIAG_1_1 : public TestCommandBridge { [cluster readAttributeRssiWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads RSSI attribute constraints Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("rssi", "", "int8")); if (value != nil) { @@ -58655,7 +58672,7 @@ class Test_TC_WNCV_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"2: read the global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); if (value != nil) { @@ -58685,7 +58702,7 @@ class Test_TC_WNCV_1_1 : public TestCommandBridge { NSLog(@"3a: write a value into the RO mandatory global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -58701,7 +58718,7 @@ class Test_TC_WNCV_1_1 : public TestCommandBridge { [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3b: reads back global attribute: ClusterRevision Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); if (value != nil) { @@ -58723,7 +58740,7 @@ class Test_TC_WNCV_1_1 : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read the global attribute: AttributeList Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("attributeList", "", "list")); NextTest(); @@ -58741,7 +58758,7 @@ class Test_TC_WNCV_1_1 : public TestCommandBridge { [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"2: read the global attribute: FeatureMap Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("featureMap", "", "uint32")); if (value != nil) { @@ -58769,7 +58786,7 @@ class Test_TC_WNCV_1_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"3a: write the default value to optional global attribute: FeatureMap Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -58785,7 +58802,7 @@ class Test_TC_WNCV_1_1 : public TestCommandBridge { [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3b: reads back global attribute: FeatureMap Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("featureMap", "", "uint32")); if (value != nil) { @@ -59297,7 +59314,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { [cluster readAttributeTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"2: read the RO mandatory attribute default: Type Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("type", "", "enum8")); if (value != nil) { @@ -59325,7 +59342,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"3a: write a value into the RO mandatory attribute: Type Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -59341,7 +59358,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { [cluster readAttributeTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3b: reads back the RO mandatory attribute: Type Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("type", "", "enum8")); if (value != nil) { @@ -59363,7 +59380,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { [cluster readAttributeConfigStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"2: read the RO mandatory attribute default: ConfigStatus Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("configStatus", "", "map8")); if (value != nil) { @@ -59391,7 +59408,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"3a: write a value into the RO mandatory attribute: ConfigStatus Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -59407,7 +59424,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { [cluster readAttributeConfigStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3b: reads back the RO mandatory attribute: ConfigStatus Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("configStatus", "", "map8")); if (value != nil) { @@ -59429,7 +59446,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"2: read the RO mandatory attribute default: OperationalStatus Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("operationalStatus", "", "map8")); if (value != nil) { @@ -59453,14 +59470,15 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { id operationalStatusArgument; operationalStatusArgument = [NSNumber numberWithUnsignedChar:128]; - [cluster writeAttributeOperationalStatusWithValue:operationalStatusArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"3a: write a value into the RO mandatory attribute: OperationalStatus Error: %@", - err); + [cluster + writeAttributeOperationalStatusWithValue:operationalStatusArgument + completionHandler:^(NSError * _Nullable err) { + NSLog( + @"3a: write a value into the RO mandatory attribute: OperationalStatus Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + NextTest(); + }]; return CHIP_NO_ERROR; } @@ -59474,7 +59492,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3b: reads back the RO mandatory attribute: OperationalStatus Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("operationalStatus", "", "map8")); if (value != nil) { @@ -59496,7 +59514,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { [cluster readAttributeEndProductTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"2: read the RO mandatory attribute default: EndProductType Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("endProductType", "", "enum8")); if (value != nil) { @@ -59520,13 +59538,14 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { id endProductTypeArgument; endProductTypeArgument = [NSNumber numberWithUnsignedChar:250]; - [cluster writeAttributeEndProductTypeWithValue:endProductTypeArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"3a: write a value into the RO mandatory attribute: EndProductType Error: %@", err); + [cluster + writeAttributeEndProductTypeWithValue:endProductTypeArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"3a: write a value into the RO mandatory attribute: EndProductType Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + NextTest(); + }]; return CHIP_NO_ERROR; } @@ -59540,7 +59559,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { [cluster readAttributeEndProductTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3b: reads back the RO mandatory attribute: EndProductType Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("endProductType", "", "enum8")); if (value != nil) { @@ -59562,7 +59581,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { [cluster readAttributeModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"2: read the RW mandatory attribute default: Mode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("mode", "", "map8")); if (value != nil) { @@ -59590,7 +59609,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"3a: write a value into the RW mandatory attribute:: Mode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -59607,7 +59626,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { [cluster readAttributeModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3b: reads back the RW mandatory attribute: Mode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -59630,7 +59649,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"2: read the RO optional attribute default: TargetPositionLiftPercent100ths Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("targetPositionLiftPercent100ths", "", "Percent100ths")); if (value != nil) { @@ -59656,16 +59675,16 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { id targetPositionLiftPercent100thsArgument; targetPositionLiftPercent100thsArgument = [NSNumber numberWithUnsignedShort:20000U]; - [cluster - writeAttributeTargetPositionLiftPercent100thsWithValue:targetPositionLiftPercent100thsArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"3a: write a value into the RO optional attribute: " - @"TargetPositionLiftPercent100ths Error: %@", - err); + [cluster writeAttributeTargetPositionLiftPercent100thsWithValue:targetPositionLiftPercent100thsArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"3a: write a value into the RO optional attribute: " + @"TargetPositionLiftPercent100ths Error: %@", + err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; + VerifyOrReturn(CheckValue( + "status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + NextTest(); + }]; return CHIP_NO_ERROR; } @@ -59680,7 +59699,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3b: reads back the RO optional attribute: TargetPositionLiftPercent100ths Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("targetPositionLiftPercent100ths", "", "Percent100ths")); if (value != nil) { @@ -59703,7 +59722,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"2: read the RO optional attribute default: TargetPositionTiltPercent100ths Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("targetPositionTiltPercent100ths", "", "Percent100ths")); if (value != nil) { @@ -59729,16 +59748,16 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { id targetPositionTiltPercent100thsArgument; targetPositionTiltPercent100thsArgument = [NSNumber numberWithUnsignedShort:20000U]; - [cluster - writeAttributeTargetPositionTiltPercent100thsWithValue:targetPositionTiltPercent100thsArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"3a: write a value into the RO optional attribute: " - @"TargetPositionTiltPercent100ths Error: %@", - err); + [cluster writeAttributeTargetPositionTiltPercent100thsWithValue:targetPositionTiltPercent100thsArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"3a: write a value into the RO optional attribute: " + @"TargetPositionTiltPercent100ths Error: %@", + err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; + VerifyOrReturn(CheckValue( + "status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + NextTest(); + }]; return CHIP_NO_ERROR; } @@ -59753,7 +59772,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3b: reads back the RO optional attribute: TargetPositionTiltPercent100ths Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("targetPositionTiltPercent100ths", "", "Percent100ths")); if (value != nil) { @@ -59776,7 +59795,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"2: read the RO optional attribute default: CurrentPositionLiftPercent100ths Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentPositionLiftPercent100ths", "", "Percent100ths")); if (value != nil) { @@ -59802,16 +59821,16 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { id currentPositionLiftPercent100thsArgument; currentPositionLiftPercent100thsArgument = [NSNumber numberWithUnsignedShort:20000U]; - [cluster - writeAttributeCurrentPositionLiftPercent100thsWithValue:currentPositionLiftPercent100thsArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"3a: write a value into the RO optional attribute: " - @"CurrentPositionLiftPercent100ths Error: %@", - err); + [cluster writeAttributeCurrentPositionLiftPercent100thsWithValue:currentPositionLiftPercent100thsArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"3a: write a value into the RO optional attribute: " + @"CurrentPositionLiftPercent100ths Error: %@", + err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; + VerifyOrReturn(CheckValue( + "status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + NextTest(); + }]; return CHIP_NO_ERROR; } @@ -59826,7 +59845,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3b: reads back the RO optional attribute: CurrentPositionLiftPercent100ths Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentPositionLiftPercent100ths", "", "Percent100ths")); if (value != nil) { @@ -59849,7 +59868,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"2: read the RO optional attribute default: CurrentPositionTiltPercent100ths Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentPositionTiltPercent100ths", "", "Percent100ths")); if (value != nil) { @@ -59875,16 +59894,16 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { id currentPositionTiltPercent100thsArgument; currentPositionTiltPercent100thsArgument = [NSNumber numberWithUnsignedShort:20000U]; - [cluster - writeAttributeCurrentPositionTiltPercent100thsWithValue:currentPositionTiltPercent100thsArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"3a: write a value into the RO optional attribute: " - @"CurrentPositionTiltPercent100ths Error: %@", - err); + [cluster writeAttributeCurrentPositionTiltPercent100thsWithValue:currentPositionTiltPercent100thsArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"3a: write a value into the RO optional attribute: " + @"CurrentPositionTiltPercent100ths Error: %@", + err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; + VerifyOrReturn(CheckValue( + "status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + NextTest(); + }]; return CHIP_NO_ERROR; } @@ -59899,7 +59918,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3b: reads back the RO optional attribute: CurrentPositionTiltPercent100ths Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentPositionTiltPercent100ths", "", "Percent100ths")); if (value != nil) { @@ -59921,7 +59940,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { [cluster readAttributeInstalledOpenLimitLiftWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"2: read the RO optional attribute default: InstalledOpenLimitLift Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("installedOpenLimitLift", "", "uint16")); if (value != nil) { @@ -59951,7 +59970,8 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { @"Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn( + CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -59967,7 +59987,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { [cluster readAttributeInstalledOpenLimitLiftWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3b: reads back the RO optional attribute: InstalledOpenLimitLift Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("installedOpenLimitLift", "", "uint16")); if (value != nil) { @@ -59992,7 +60012,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { [cluster readAttributeInstalledClosedLimitLiftWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"2: read the RO optional attribute default: InstalledClosedLimitLift Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("installedClosedLimitLift", "", "uint16")); if (value != nil) { @@ -60022,7 +60042,8 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { @"InstalledClosedLimitLift Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue( + "status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -60038,7 +60059,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { [cluster readAttributeInstalledClosedLimitLiftWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3b: reads back the RO optional attribute: InstalledClosedLimitLift Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("installedClosedLimitLift", "", "uint16")); if (value != nil) { @@ -60063,7 +60084,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { [cluster readAttributeInstalledOpenLimitTiltWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"2: read the RO optional attribute default: InstalledOpenLimitTilt Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("installedOpenLimitTilt", "", "uint16")); if (value != nil) { @@ -60093,7 +60114,8 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { @"Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn( + CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -60109,7 +60131,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { [cluster readAttributeInstalledOpenLimitTiltWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3b: reads back the RO optional attribute: InstalledOpenLimitTilt Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("installedOpenLimitTilt", "", "uint16")); if (value != nil) { @@ -60134,7 +60156,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { [cluster readAttributeInstalledClosedLimitTiltWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"2: read the RO optional attribute default: InstalledClosedLimitTilt Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("installedClosedLimitTilt", "", "uint16")); if (value != nil) { @@ -60164,7 +60186,8 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { @"InstalledClosedLimitTilt Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue( + "status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -60180,7 +60203,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { [cluster readAttributeInstalledClosedLimitTiltWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3b: reads back the RO optional attribute: InstalledClosedLimitTilt Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("installedClosedLimitTilt", "", "uint16")); if (value != nil) { @@ -60205,7 +60228,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { [cluster readAttributeSafetyStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"4: read the RO mandatory attribute default: SafetyStatus Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("safetyStatus", "", "map16")); if (value != nil) { @@ -60233,7 +60256,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"5a: write a value into the RO mandatory attribute: SafetyStatus Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -60249,7 +60272,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { [cluster readAttributeSafetyStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"5b: reads back the RO mandatory attribute: SafetyStatus Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("safetyStatus", "", "map16")); if (value != nil) { @@ -60271,7 +60294,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { [cluster readAttributeCurrentPositionLiftWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"4: read the RO optional attribute default: CurrentPositionLift Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentPositionLift", "", "uint16")); if (value != nil) { @@ -60301,7 +60324,8 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { NSLog(@"5a: write a value into the RO optional attribute: CurrentPositionLift Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn( + CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -60317,7 +60341,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { [cluster readAttributeCurrentPositionLiftWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"5b: reads back the RO optional attribute: CurrentPositionLift Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentPositionLift", "", "uint16")); if (value != nil) { @@ -60342,7 +60366,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { [cluster readAttributeCurrentPositionTiltWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"4: read the RO optional attribute default: CurrentPositionTilt Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentPositionTilt", "", "uint16")); if (value != nil) { @@ -60372,7 +60396,8 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { NSLog(@"5a: write a value into the RO optional attribute: CurrentPositionTilt Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + VerifyOrReturn( + CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); }]; @@ -60388,7 +60413,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { [cluster readAttributeCurrentPositionTiltWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"5b: reads back the RO optional attribute: CurrentPositionTilt Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentPositionTilt", "", "uint16")); if (value != nil) { @@ -60414,7 +60439,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { readAttributeCurrentPositionLiftPercentageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"4: read the RO optional attribute default: CurrentPositionLiftPercentage Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentPositionLiftPercentage", "", "Percent")); if (value != nil) { @@ -60440,16 +60465,16 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { id currentPositionLiftPercentageArgument; currentPositionLiftPercentageArgument = [NSNumber numberWithUnsignedChar:200]; - [cluster - writeAttributeCurrentPositionLiftPercentageWithValue:currentPositionLiftPercentageArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"5a: write a value into the RO optional attribute: " - @"CurrentPositionLiftPercentage Error: %@", - err); + [cluster writeAttributeCurrentPositionLiftPercentageWithValue:currentPositionLiftPercentageArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"5a: write a value into the RO optional attribute: " + @"CurrentPositionLiftPercentage Error: %@", + err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; + VerifyOrReturn(CheckValue( + "status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + NextTest(); + }]; return CHIP_NO_ERROR; } @@ -60464,7 +60489,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { readAttributeCurrentPositionLiftPercentageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"5b: reads back the RO optional attribute: CurrentPositionLiftPercentage Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentPositionLiftPercentage", "", "Percent")); if (value != nil) { @@ -60487,7 +60512,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { readAttributeCurrentPositionTiltPercentageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"4: read the RO optional attribute default: CurrentPositionTiltPercentage Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentPositionTiltPercentage", "", "Percent")); if (value != nil) { @@ -60513,16 +60538,16 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { id currentPositionTiltPercentageArgument; currentPositionTiltPercentageArgument = [NSNumber numberWithUnsignedChar:200]; - [cluster - writeAttributeCurrentPositionTiltPercentageWithValue:currentPositionTiltPercentageArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"5a: write a value into the RO optional attribute: " - @"CurrentPositionTiltPercentage Error: %@", - err); + [cluster writeAttributeCurrentPositionTiltPercentageWithValue:currentPositionTiltPercentageArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"5a: write a value into the RO optional attribute: " + @"CurrentPositionTiltPercentage Error: %@", + err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); - NextTest(); - }]; + VerifyOrReturn(CheckValue( + "status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + NextTest(); + }]; return CHIP_NO_ERROR; } @@ -60537,7 +60562,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { readAttributeCurrentPositionTiltPercentageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"5b: reads back the RO optional attribute: CurrentPositionTiltPercentage Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentPositionTiltPercentage", "", "Percent")); if (value != nil) { @@ -60931,7 +60956,7 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"1a: TH set the Mode Attribute bit0 of the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -60948,7 +60973,7 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { [cluster readAttributeConfigStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"1b: TH reads ConfigStatus attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("configStatus", [value unsignedCharValue], 4)); @@ -60975,7 +61000,7 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"1c: TH clear the Mode Attribute bit0 of the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -60992,7 +61017,7 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { [cluster readAttributeConfigStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"1d: TH reads ConfigStatus attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("configStatus", [value unsignedCharValue], 0)); @@ -61019,7 +61044,7 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"2a: TH set the Mode Attribute bit1 of the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -61037,7 +61062,7 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { [cluster readAttributeConfigStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"2b: TH reads ConfigStatus attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("configStatus", [value unsignedCharValue], 0)); @@ -61064,7 +61089,7 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"2c: If (ConfigStatus bit0 == 0) TH send DownOrClose command to the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_FAILURE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_FAILURE)); NextTest(); }]; @@ -61083,7 +61108,7 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"2d: TH clear the Mode Attribute bit1 of the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -61100,7 +61125,7 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { [cluster readAttributeConfigStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"2e: TH reads ConfigStatus attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("configStatus", [value unsignedCharValue], 1)); @@ -61124,7 +61149,7 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { [cluster readAttributeModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"2f: TH reads the Mode Attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("mode", [value unsignedCharValue], 0)); @@ -61148,7 +61173,7 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"2g: TH send DownOrClose command to the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -61168,7 +61193,7 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"3a: TH set the Mode Attribute bit2 of the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -61186,7 +61211,7 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { [cluster readAttributeConfigStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3c: TH reads ConfigStatus attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("configStatus", [value unsignedCharValue], 0)); @@ -61213,7 +61238,7 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"3c: TH send DownOrClose command to the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_BUSY)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_BUSY)); NextTest(); }]; @@ -61232,7 +61257,7 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"3d: TH clear the Mode Attribute bit2 of the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -61249,7 +61274,7 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { [cluster readAttributeConfigStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3e: TH reads ConfigStatus attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("configStatus", [value unsignedCharValue], 1)); @@ -61273,7 +61298,7 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { [cluster readAttributeModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3f: TH reads the Mode Attribute from the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("mode", [value unsignedCharValue], 0)); @@ -61297,7 +61322,7 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"3g: TH send DownOrClose command to the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -61421,7 +61446,7 @@ class Test_TC_WNCV_2_4 : public TestCommandBridge { [cluster readAttributeTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads Type attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -61443,7 +61468,7 @@ class Test_TC_WNCV_2_4 : public TestCommandBridge { [cluster readAttributeTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads Type attribute constraints Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("type", "", "enum8")); if (value != nil) { @@ -61575,7 +61600,7 @@ class Test_TC_WNCV_2_5 : public TestCommandBridge { [cluster readAttributeEndProductTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads EndProductType attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -61597,7 +61622,7 @@ class Test_TC_WNCV_2_5 : public TestCommandBridge { [cluster readAttributeEndProductTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads EndProductType attribute constraints from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("endProductType", "", "enum8")); if (value != nil) { @@ -61934,7 +61959,7 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"1a: TH sends DownOrClose command to preposition the DUT in the opposite direction Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -61960,7 +61985,7 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"1c: If (PA & LF) TH reads CurrentPositionLiftPercent100ths attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentPositionLiftPercent100ths", "", "uint16")); if (value != nil) { @@ -61988,7 +62013,7 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { readAttributeCurrentPositionLiftPercentageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"1d: If (PA & LF) TH reads CurrentPositionLiftPercentage optional attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentPositionLiftPercentage", "", "uint8")); if (value != nil) { @@ -62016,7 +62041,7 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"1e: If (PA & TL) TH reads CurrentPositionTiltPercent100ths attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentPositionTiltPercent100ths", "", "uint16")); if (value != nil) { @@ -62044,7 +62069,7 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { readAttributeCurrentPositionTiltPercentageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"1f: If (PA & TL) TH reads CurrentPositionTiltPercentage optional attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentPositionTiltPercentage", "", "uint8")); if (value != nil) { @@ -62073,7 +62098,7 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { test_Test_TC_WNCV_3_1_OperationalStatus_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Report: 2: Subscribe to DUT reports on OperationalStatus attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("operationalStatus", "", "map8")); testSendClusterTest_TC_WNCV_3_1_7_WaitForReport_Fulfilled = true; @@ -62103,7 +62128,7 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"2: Subscribe to DUT reports on OperationalStatus attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (test_Test_TC_WNCV_3_1_OperationalStatus_Reported != nil) { ResponseHandler callback = test_Test_TC_WNCV_3_1_OperationalStatus_Reported; test_Test_TC_WNCV_3_1_OperationalStatus_Reported = nil; @@ -62123,7 +62148,7 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { [cluster upOrOpenWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"2a: TH sends UpOrOpen command to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -62149,7 +62174,7 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"2c: If (PA & LF) TH reads TargetPositionLiftPercent100ths attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -62180,7 +62205,7 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { test_Test_TC_WNCV_3_1_OperationalStatus_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3a1: Verify DUT reports OperationalStatus attribute to TH after a UpOrOpen Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("operationalStatus", "", "map8")); if (value != nil) { @@ -62214,7 +62239,7 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3b: If (PA & LF) TH reads CurrentPositionLiftPercent100ths attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentPositionLiftPercent100ths", "", "uint16")); if (value != nil) { @@ -62242,7 +62267,7 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { readAttributeCurrentPositionLiftPercentageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3c: If (PA & LF) TH reads CurrentPositionLiftPercentage optional attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentPositionLiftPercentage", "", "uint8")); if (value != nil) { @@ -62270,7 +62295,7 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3d: If (PA & TL) TH reads CurrentPositionTiltPercent100ths attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentPositionTiltPercent100ths", "", "uint16")); if (value != nil) { @@ -62298,7 +62323,7 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { readAttributeCurrentPositionTiltPercentageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3e: If (PA & LF) TH reads CurrentPositionTiltPercentage optional attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentPositionTiltPercentage", "", "uint8")); if (value != nil) { @@ -62325,7 +62350,7 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { [cluster stopMotionWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"4a: TH sends a StopMotion command to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -62350,7 +62375,7 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"4c: Verify DUT update OperationalStatus attribute to TH after a StopMotion Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -62381,7 +62406,7 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"5b: If (PA & LF) TH reads TargetPositionLiftPercent100ths attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("targetPositionLiftPercent100ths", "", "uint16")); if (value != nil) { @@ -62409,7 +62434,7 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"5c: If (PA & TL) TH reads TargetPositionTiltPercent100ths attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("targetPositionTiltPercent100ths", "", "uint16")); if (value != nil) { @@ -62748,7 +62773,7 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { [cluster upOrOpenWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"1a: TH sends UpOrOpen command to preposition the DUT in the opposite direction Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -62774,7 +62799,7 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"1c: If (PA & LF) TH reads CurrentPositionLiftPercent100ths attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentPositionLiftPercent100ths", "", "uint16")); if (value != nil) { @@ -62802,7 +62827,7 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { readAttributeCurrentPositionLiftPercentageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"1d: If (PA & LF) TH reads CurrentPositionLiftPercentage optional attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentPositionLiftPercentage", "", "uint8")); if (value != nil) { @@ -62830,7 +62855,7 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"1e: If (PA & TL) TH reads CurrentPositionTiltPercent100ths attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentPositionTiltPercent100ths", "", "uint16")); if (value != nil) { @@ -62858,7 +62883,7 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { readAttributeCurrentPositionTiltPercentageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"1f: If (PA & TL) TH reads CurrentPositionTiltPercentage optional attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentPositionTiltPercentage", "", "uint8")); if (value != nil) { @@ -62887,7 +62912,7 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { test_Test_TC_WNCV_3_2_OperationalStatus_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Report: 2: Subscribe to DUT reports on OperationalStatus attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("operationalStatus", "", "map8")); testSendClusterTest_TC_WNCV_3_2_7_WaitForReport_Fulfilled = true; @@ -62917,7 +62942,7 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"2: Subscribe to DUT reports on OperationalStatus attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (test_Test_TC_WNCV_3_2_OperationalStatus_Reported != nil) { ResponseHandler callback = test_Test_TC_WNCV_3_2_OperationalStatus_Reported; test_Test_TC_WNCV_3_2_OperationalStatus_Reported = nil; @@ -62937,7 +62962,7 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"2a: TH sends DownOrClose command to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -62963,7 +62988,7 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"2c: If (PA & LF) TH reads TargetPositionLiftPercent100ths attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -62994,7 +63019,7 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { test_Test_TC_WNCV_3_2_OperationalStatus_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3a: Verify DUT reports OperationalStatus attribute to TH after a DownOrClose Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("operationalStatus", "", "map8")); if (value != nil) { @@ -63028,7 +63053,7 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3b: If (PA & LF) TH reads CurrentPositionLiftPercent100ths attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentPositionLiftPercent100ths", "", "uint16")); if (value != nil) { @@ -63056,7 +63081,7 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { readAttributeCurrentPositionLiftPercentageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3c: If (PA & LF) TH reads CurrentPositionLiftPercentage optional attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentPositionLiftPercentage", "", "uint8")); if (value != nil) { @@ -63084,7 +63109,7 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3d: If (PA & TL) TH reads CurrentPositionTiltPercent100ths attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentPositionTiltPercent100ths", "", "uint16")); if (value != nil) { @@ -63112,7 +63137,7 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { readAttributeCurrentPositionTiltPercentageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3e: If (PA & LF) TH reads CurrentPositionTiltPercentage optional attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentPositionTiltPercentage", "", "uint8")); if (value != nil) { @@ -63139,7 +63164,7 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { [cluster stopMotionWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"4a: TH sends a StopMotion command to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -63164,7 +63189,7 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"4c: Verify DUT update OperationalStatus attribute to TH after a StopMotion Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -63195,7 +63220,7 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"5b: If (PA & LF) TH reads TargetPositionLiftPercent100ths attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("targetPositionLiftPercent100ths", "", "uint16")); if (value != nil) { @@ -63223,7 +63248,7 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"5c: If (PA & TL) TH reads TargetPositionTiltPercent100ths attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("targetPositionTiltPercent100ths", "", "uint16")); if (value != nil) { @@ -63466,7 +63491,7 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"1a: TH sends DownOrClose command to preposition the DUT in the opposite direction Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -63491,7 +63516,7 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { [cluster upOrOpenWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"1c: TH sends UpOrOpen command to preposition the DUT in the opposite direction Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -63518,7 +63543,7 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { test_Test_TC_WNCV_3_3_OperationalStatus_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Report: 2: Subscribe to DUT reports on OperationalStatus attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("operationalStatus", "", "map8")); testSendClusterTest_TC_WNCV_3_3_5_WaitForReport_Fulfilled = true; @@ -63548,7 +63573,7 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"2: Subscribe to DUT reports on OperationalStatus attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (test_Test_TC_WNCV_3_3_OperationalStatus_Reported != nil) { ResponseHandler callback = test_Test_TC_WNCV_3_3_OperationalStatus_Reported; test_Test_TC_WNCV_3_3_OperationalStatus_Reported = nil; @@ -63568,7 +63593,7 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { [cluster stopMotionWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"2a: TH sends a StopMotion command to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -63593,7 +63618,7 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { test_Test_TC_WNCV_3_3_OperationalStatus_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"2c: Verify DUT reports OperationalStatus attribute to TH after a StopMotion Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -63623,7 +63648,7 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"2e: TH reads OperationalStatus attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -63647,7 +63672,7 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3a: If (PA & LF) TH reads CurrentPositionLiftPercent100ths attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue( @@ -63680,7 +63705,7 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { @"CurrentPositionLiftPercent100ths from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -63709,7 +63734,7 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"4a: If (PA & TL) TH reads CurrentPositionTiltPercent100ths attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue( @@ -63742,7 +63767,7 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { @"CurrentPositionTiltPercent100ths from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -63937,7 +63962,7 @@ class Test_TC_WNCV_3_4 : public TestCommandBridge { [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"1a: TH sends DownOrClose command to preposition the DUT in the opposite direction Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -63962,7 +63987,7 @@ class Test_TC_WNCV_3_4 : public TestCommandBridge { [cluster upOrOpenWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"2a: TH sends UpOrOpen command to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -63988,7 +64013,7 @@ class Test_TC_WNCV_3_4 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3a: If (PA & LF) TH reads CurrentPositionLiftPercent100ths attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -64012,7 +64037,7 @@ class Test_TC_WNCV_3_4 : public TestCommandBridge { readAttributeCurrentPositionLiftPercentageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3b: If (PA & LF) TH reads CurrentPositionLiftPercentage optional attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -64036,7 +64061,7 @@ class Test_TC_WNCV_3_4 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3c: If (PA & TL) TH reads CurrentPositionTiltPercent100ths attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -64060,7 +64085,7 @@ class Test_TC_WNCV_3_4 : public TestCommandBridge { readAttributeCurrentPositionTiltPercentageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3d: If (PA & TL) TH reads CurrentPositionTiltPercentage optional attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -64251,7 +64276,7 @@ class Test_TC_WNCV_3_5 : public TestCommandBridge { [cluster upOrOpenWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"1a: TH sends UpOrOpen command to preposition the DUT in the opposite direction Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -64276,7 +64301,7 @@ class Test_TC_WNCV_3_5 : public TestCommandBridge { [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"2a: TH sends DownOrClose command to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -64302,7 +64327,7 @@ class Test_TC_WNCV_3_5 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3a: If (PA & LF) TH reads CurrentPositionLiftPercent100ths attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -64326,7 +64351,7 @@ class Test_TC_WNCV_3_5 : public TestCommandBridge { readAttributeCurrentPositionLiftPercentageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3b: If (PA & LF) TH reads CurrentPositionLiftPercentage optional attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -64350,7 +64375,7 @@ class Test_TC_WNCV_3_5 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3c: If (PA & TL) TH reads CurrentPositionTiltPercent100ths attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -64374,7 +64399,7 @@ class Test_TC_WNCV_3_5 : public TestCommandBridge { readAttributeCurrentPositionTiltPercentageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3d: If (PA & TL) TH reads CurrentPositionTiltPercentage optional attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -64587,7 +64612,7 @@ class Test_TC_WNCV_4_1 : public TestCommandBridge { [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"1a: TH sends DownOrClose command to preposition the DUT in the opposite direction Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -64613,7 +64638,7 @@ class Test_TC_WNCV_4_1 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"1c: If (PA & LF) TH reads CurrentPositionLiftPercent100ths attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("currentPositionLiftPercent100ths", value, 0U)); @@ -64638,7 +64663,7 @@ class Test_TC_WNCV_4_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"2a: TH sends GoToLiftPercentage command with 25 percent to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -64664,7 +64689,7 @@ class Test_TC_WNCV_4_1 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"2c: If (PA & LF) TH reads TargetPositionLiftPercent100ths attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -64695,7 +64720,7 @@ class Test_TC_WNCV_4_1 : public TestCommandBridge { [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3b: TH reads OperationalStatus attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -64721,7 +64746,7 @@ class Test_TC_WNCV_4_1 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"4a: TH sends GoToLiftPercentage command with 75.20 percent to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -64754,7 +64779,7 @@ class Test_TC_WNCV_4_1 : public TestCommandBridge { [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"5b: TH reads OperationalStatus attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -64966,7 +64991,7 @@ class Test_TC_WNCV_4_2 : public TestCommandBridge { [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"1a: TH sends DownOrClose command to preposition the DUT in the opposite direction Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -64992,7 +65017,7 @@ class Test_TC_WNCV_4_2 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"1c: If (PA & TL) TH reads CurrentPositionTiltPercent100ths attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("currentPositionTiltPercent100ths", value, 0U)); @@ -65017,7 +65042,7 @@ class Test_TC_WNCV_4_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"2a: TH sends GoToTiltPercentage command with 30 percent to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -65043,7 +65068,7 @@ class Test_TC_WNCV_4_2 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"2c: If (PA & TL) TH reads TargetPositionTiltPercent100ths attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -65074,7 +65099,7 @@ class Test_TC_WNCV_4_2 : public TestCommandBridge { [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3b: TH reads OperationalStatus attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -65100,7 +65125,7 @@ class Test_TC_WNCV_4_2 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"4a: TH sends GoToTiltPercentage command with 60.20 percent to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -65133,7 +65158,7 @@ class Test_TC_WNCV_4_2 : public TestCommandBridge { [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"5b: TH reads OperationalStatus attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -65287,7 +65312,7 @@ class Test_TC_WNCV_4_3 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"1a: If (PA_LF & LF) TH reads CurrentPositionLiftPercent100ths from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue( @@ -65320,7 +65345,7 @@ class Test_TC_WNCV_4_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"2b: TH sends GoToLiftPercentage command with BadParam to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; @@ -65340,7 +65365,7 @@ class Test_TC_WNCV_4_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"3a: TH sends GoToLiftPercentage command with 10001 to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; @@ -65360,7 +65385,7 @@ class Test_TC_WNCV_4_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"4a: TH sends GoToLiftPercentage command with 0xFFFF to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; @@ -65519,7 +65544,7 @@ class Test_TC_WNCV_4_4 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"1a: If (PA_TL & TL) TH reads CurrentPositionTiltPercent100ths from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue( @@ -65550,7 +65575,7 @@ class Test_TC_WNCV_4_4 : public TestCommandBridge { readAttributeCurrentPositionTiltPercentageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"1b: If (PA_TL & TL) TH reads CurrentPositionTiltPercentage from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn( @@ -65583,7 +65608,7 @@ class Test_TC_WNCV_4_4 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"2b: TH sends GoToTiltPercentage command with BadParam to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; @@ -65603,7 +65628,7 @@ class Test_TC_WNCV_4_4 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"3a: TH sends GoToTiltPercentage command with 10001 to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; @@ -65623,7 +65648,7 @@ class Test_TC_WNCV_4_4 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"4a: TH sends GoToTiltPercentage command with 0xFFFF to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; @@ -65855,7 +65880,7 @@ class Test_TC_WNCV_4_5 : public TestCommandBridge { [cluster upOrOpenWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"0b: TH sends UpOrOpen command to preposition the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -65876,7 +65901,7 @@ class Test_TC_WNCV_4_5 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"1a: If (PA_LF & LF) TH sends GoToLiftPercentage command with 90%% to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -65901,7 +65926,7 @@ class Test_TC_WNCV_4_5 : public TestCommandBridge { [cluster stopMotionWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"1c: TH sends StopMotion command to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -65930,7 +65955,7 @@ class Test_TC_WNCV_4_5 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"2a: If (PA_TL & TL) TH sends GoToTiltPercentage command with 90%% to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -65955,7 +65980,7 @@ class Test_TC_WNCV_4_5 : public TestCommandBridge { [cluster stopMotionWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"2c: TH sends StopMotion command to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -65982,7 +66007,7 @@ class Test_TC_WNCV_4_5 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3a: TH reads CurrentPositionLiftPercent100ths from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("currentPositionLiftPercent100ths", value, 0U)); @@ -66008,7 +66033,7 @@ class Test_TC_WNCV_4_5 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3b: TH reads CurrentPositionTiltPercent100ths from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("currentPositionTiltPercent100ths", value, 0U)); @@ -66048,7 +66073,7 @@ class Test_TC_WNCV_4_5 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3e: TH reads CurrentPositionLiftPercent100ths from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -66077,7 +66102,7 @@ class Test_TC_WNCV_4_5 : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"3f: TH reads CurrentPositionTiltPercent100ths from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -66211,7 +66236,7 @@ class TV_TargetNavigatorCluster : public TestCommandBridge { [cluster readAttributeTargetListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute Target Navigator list Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -66239,7 +66264,7 @@ class TV_TargetNavigatorCluster : public TestCommandBridge { [cluster readAttributeCurrentTargetWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute current navigator target Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -66266,7 +66291,7 @@ class TV_TargetNavigatorCluster : public TestCommandBridge { CHIPTargetNavigatorClusterNavigateTargetResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Navigate Target Request Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -66413,7 +66438,7 @@ class TV_AudioOutputCluster : public TestCommandBridge { [cluster readAttributeOutputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute Audio Output list Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -66444,7 +66469,7 @@ class TV_AudioOutputCluster : public TestCommandBridge { [cluster readAttributeCurrentOutputWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute current audio output Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -66469,7 +66494,7 @@ class TV_AudioOutputCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Select Output Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -66490,7 +66515,7 @@ class TV_AudioOutputCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Rename Output Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -66507,7 +66532,7 @@ class TV_AudioOutputCluster : public TestCommandBridge { [cluster readAttributeOutputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute Audio Output list Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -66661,7 +66686,7 @@ class TV_ApplicationLauncherCluster : public TestCommandBridge { [cluster readAttributeCatalogListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute Application Launcher list Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -66688,7 +66713,7 @@ class TV_ApplicationLauncherCluster : public TestCommandBridge { CHIPApplicationLauncherClusterApplicationEP * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute application launcher app Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -66721,7 +66746,7 @@ class TV_ApplicationLauncherCluster : public TestCommandBridge { CHIPApplicationLauncherClusterLauncherResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Launch App Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -66758,7 +66783,7 @@ class TV_ApplicationLauncherCluster : public TestCommandBridge { completionHandler:^(CHIPApplicationLauncherClusterLauncherResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Stop App Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -66795,7 +66820,7 @@ class TV_ApplicationLauncherCluster : public TestCommandBridge { completionHandler:^(CHIPApplicationLauncherClusterLauncherResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Hide App Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -66917,7 +66942,7 @@ class TV_KeypadInputCluster : public TestCommandBridge { completionHandler:^(CHIPKeypadInputClusterSendKeyResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Key Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -67049,7 +67074,7 @@ class TV_AccountLoginCluster : public TestCommandBridge { completionHandler:^(CHIPAccountLoginClusterGetSetupPINResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Get Setup PIN Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.setupPIN; @@ -67075,7 +67100,7 @@ class TV_AccountLoginCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Login Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -67092,7 +67117,7 @@ class TV_AccountLoginCluster : public TestCommandBridge { [cluster logoutWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Logout Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -67201,7 +67226,7 @@ class TV_WakeOnLanCluster : public TestCommandBridge { [cluster readAttributeMACAddressWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read mac address Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -67366,7 +67391,7 @@ class TV_ApplicationBasicCluster : public TestCommandBridge { [cluster readAttributeVendorNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute vendor name Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -67390,7 +67415,7 @@ class TV_ApplicationBasicCluster : public TestCommandBridge { [cluster readAttributeVendorIDWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute vendor id Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -67414,7 +67439,7 @@ class TV_ApplicationBasicCluster : public TestCommandBridge { [cluster readAttributeApplicationNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute application name Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -67438,7 +67463,7 @@ class TV_ApplicationBasicCluster : public TestCommandBridge { [cluster readAttributeProductIDWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute product id Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -67462,7 +67487,7 @@ class TV_ApplicationBasicCluster : public TestCommandBridge { [cluster readAttributeStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute application status Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -67487,7 +67512,7 @@ class TV_ApplicationBasicCluster : public TestCommandBridge { CHIPApplicationBasicClusterApplicationBasicApplication * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute application status Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -67514,7 +67539,7 @@ class TV_ApplicationBasicCluster : public TestCommandBridge { [cluster readAttributeApplicationVersionWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute application version Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -67538,7 +67563,7 @@ class TV_ApplicationBasicCluster : public TestCommandBridge { [cluster readAttributeAllowedVendorListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute application allowed vendor list Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -67794,7 +67819,7 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { [cluster readAttributeCurrentStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute playback state Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -67816,7 +67841,7 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { [cluster readAttributeStartTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute start time Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -67839,7 +67864,7 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { [cluster readAttributeDurationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute duration Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -67863,7 +67888,7 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIPMediaPlaybackClusterPlaybackPosition * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute position Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -67888,7 +67913,7 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { [cluster readAttributePlaybackSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute playback speed Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -67910,7 +67935,7 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { [cluster readAttributeSeekRangeEndWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute seek range end Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -67933,7 +67958,7 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { [cluster readAttributeSeekRangeStartWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute seek range start Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -67957,7 +67982,7 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Media Playback Play Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -67985,7 +68010,7 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Media Playback Pause Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -68013,7 +68038,7 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Media Playback Stop Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -68041,7 +68066,7 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Media Playback Start Over Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -68069,7 +68094,7 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Media Playback Previous Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -68097,7 +68122,7 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Media Playback Next Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -68125,7 +68150,7 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Media Playback Rewind Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -68153,7 +68178,7 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Media Playback Fast Forward Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -68184,7 +68209,7 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { completionHandler:^(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Media Playback Skip Forward Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -68212,7 +68237,7 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIPMediaPlaybackClusterPlaybackPosition * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute position after skip forward Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -68241,7 +68266,7 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { completionHandler:^(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Media Playback Skip Backward Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -68269,7 +68294,7 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIPMediaPlaybackClusterPlaybackPosition * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute position after skip backward Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -68297,7 +68322,7 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { completionHandler:^(CHIPMediaPlaybackClusterPlaybackResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Media Playback Seek Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -68325,7 +68350,7 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIPMediaPlaybackClusterPlaybackPosition * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute position after seek Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -68478,7 +68503,7 @@ class TV_ChannelCluster : public TestCommandBridge { [cluster readAttributeChannelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute Channel list Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -68530,7 +68555,7 @@ class TV_ChannelCluster : public TestCommandBridge { readAttributeLineupWithCompletionHandler:^(CHIPChannelClusterLineupInfo * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute channel lineup Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -68560,7 +68585,7 @@ class TV_ChannelCluster : public TestCommandBridge { CHIPChannelClusterChannelInfo * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute current channel Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -68593,7 +68618,7 @@ class TV_ChannelCluster : public TestCommandBridge { completionHandler:^(CHIPChannelClusterChangeChannelResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Change Channel Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -68624,7 +68649,7 @@ class TV_ChannelCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Change Channel By Number Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -68644,7 +68669,7 @@ class TV_ChannelCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Skip Channel Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -68753,7 +68778,7 @@ class TV_LowPowerCluster : public TestCommandBridge { [cluster sleepWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Sleep Input Status Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -68883,7 +68908,7 @@ class TV_ContentLauncherCluster : public TestCommandBridge { [cluster readAttributeAcceptHeaderWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute accept header list Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -68908,7 +68933,7 @@ class TV_ContentLauncherCluster : public TestCommandBridge { readAttributeSupportedStreamingProtocolsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute supported streaming protocols Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -68953,7 +68978,7 @@ class TV_ContentLauncherCluster : public TestCommandBridge { completionHandler:^(CHIPContentLauncherClusterLaunchResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Launch Content Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -69166,7 +69191,7 @@ class TV_ContentLauncherCluster : public TestCommandBridge { completionHandler:^(CHIPContentLauncherClusterLaunchResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Launch URL Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -69327,7 +69352,7 @@ class TV_MediaInputCluster : public TestCommandBridge { [cluster readAttributeInputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute media input list Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -69361,7 +69386,7 @@ class TV_MediaInputCluster : public TestCommandBridge { [cluster readAttributeCurrentInputWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read current media input Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -69386,7 +69411,7 @@ class TV_MediaInputCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Select Input Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -69403,7 +69428,7 @@ class TV_MediaInputCluster : public TestCommandBridge { [cluster hideInputStatusWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Hide Input Status Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -69420,7 +69445,7 @@ class TV_MediaInputCluster : public TestCommandBridge { [cluster showInputStatusWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Show Input Status Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -69441,7 +69466,7 @@ class TV_MediaInputCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Rename Input Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -69458,7 +69483,7 @@ class TV_MediaInputCluster : public TestCommandBridge { [cluster readAttributeInputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute media input list Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -70268,1286 +70293,1310 @@ class TestCluster : public TestCommandBridge { err = TestReadAttributeNullableBooleanTrue_182(); break; case 183: - ChipLogProgress(chipTool, " ***** Test Step 183 : Write attribute NULLABLE_BITMAP8 Max Value\n"); - err = TestWriteAttributeNullableBitmap8MaxValue_183(); + ChipLogProgress(chipTool, " ***** Test Step 183 : Read attribute NULLABLE_BOOLEAN not null\n"); + err = TestReadAttributeNullableBooleanNotNull_183(); break; case 184: - ChipLogProgress(chipTool, " ***** Test Step 184 : Read attribute NULLABLE_BITMAP8 Max Value\n"); - err = TestReadAttributeNullableBitmap8MaxValue_184(); + ChipLogProgress(chipTool, " ***** Test Step 184 : Write attribute NULLABLE_BITMAP8 Max Value\n"); + err = TestWriteAttributeNullableBitmap8MaxValue_184(); break; case 185: - ChipLogProgress(chipTool, " ***** Test Step 185 : Write attribute NULLABLE_BITMAP8 Invalid Value\n"); - err = TestWriteAttributeNullableBitmap8InvalidValue_185(); + ChipLogProgress(chipTool, " ***** Test Step 185 : Read attribute NULLABLE_BITMAP8 Max Value\n"); + err = TestReadAttributeNullableBitmap8MaxValue_185(); break; case 186: - ChipLogProgress(chipTool, " ***** Test Step 186 : Read attribute NULLABLE_BITMAP8 unchanged Value\n"); - err = TestReadAttributeNullableBitmap8UnchangedValue_186(); + ChipLogProgress(chipTool, " ***** Test Step 186 : Write attribute NULLABLE_BITMAP8 Invalid Value\n"); + err = TestWriteAttributeNullableBitmap8InvalidValue_186(); break; case 187: - ChipLogProgress(chipTool, " ***** Test Step 187 : Write attribute NULLABLE_BITMAP8 null Value\n"); - err = TestWriteAttributeNullableBitmap8NullValue_187(); + ChipLogProgress(chipTool, " ***** Test Step 187 : Read attribute NULLABLE_BITMAP8 unchanged Value\n"); + err = TestReadAttributeNullableBitmap8UnchangedValue_187(); break; case 188: - ChipLogProgress(chipTool, " ***** Test Step 188 : Read attribute NULLABLE_BITMAP8 null Value\n"); - err = TestReadAttributeNullableBitmap8NullValue_188(); + ChipLogProgress(chipTool, " ***** Test Step 188 : Write attribute NULLABLE_BITMAP8 null Value\n"); + err = TestWriteAttributeNullableBitmap8NullValue_188(); break; case 189: - ChipLogProgress(chipTool, " ***** Test Step 189 : Write attribute NULLABLE_BITMAP16 Max Value\n"); - err = TestWriteAttributeNullableBitmap16MaxValue_189(); + ChipLogProgress(chipTool, " ***** Test Step 189 : Read attribute NULLABLE_BITMAP8 null Value\n"); + err = TestReadAttributeNullableBitmap8NullValue_189(); break; case 190: - ChipLogProgress(chipTool, " ***** Test Step 190 : Read attribute NULLABLE_BITMAP16 Max Value\n"); - err = TestReadAttributeNullableBitmap16MaxValue_190(); + ChipLogProgress(chipTool, " ***** Test Step 190 : Read attribute NULLABLE_BITMAP8 not 254 Value\n"); + err = TestReadAttributeNullableBitmap8Not254Value_190(); break; case 191: - ChipLogProgress(chipTool, " ***** Test Step 191 : Write attribute NULLABLE_BITMAP16 Invalid Value\n"); - err = TestWriteAttributeNullableBitmap16InvalidValue_191(); + ChipLogProgress(chipTool, " ***** Test Step 191 : Write attribute NULLABLE_BITMAP16 Max Value\n"); + err = TestWriteAttributeNullableBitmap16MaxValue_191(); break; case 192: - ChipLogProgress(chipTool, " ***** Test Step 192 : Read attribute NULLABLE_BITMAP16 unchanged Value\n"); - err = TestReadAttributeNullableBitmap16UnchangedValue_192(); + ChipLogProgress(chipTool, " ***** Test Step 192 : Read attribute NULLABLE_BITMAP16 Max Value\n"); + err = TestReadAttributeNullableBitmap16MaxValue_192(); break; case 193: - ChipLogProgress(chipTool, " ***** Test Step 193 : Write attribute NULLABLE_BITMAP16 null Value\n"); - err = TestWriteAttributeNullableBitmap16NullValue_193(); + ChipLogProgress(chipTool, " ***** Test Step 193 : Write attribute NULLABLE_BITMAP16 Invalid Value\n"); + err = TestWriteAttributeNullableBitmap16InvalidValue_193(); break; case 194: - ChipLogProgress(chipTool, " ***** Test Step 194 : Read attribute NULLABLE_BITMAP16 null Value\n"); - err = TestReadAttributeNullableBitmap16NullValue_194(); + ChipLogProgress(chipTool, " ***** Test Step 194 : Read attribute NULLABLE_BITMAP16 unchanged Value\n"); + err = TestReadAttributeNullableBitmap16UnchangedValue_194(); break; case 195: - ChipLogProgress(chipTool, " ***** Test Step 195 : Write attribute NULLABLE_BITMAP32 Max Value\n"); - err = TestWriteAttributeNullableBitmap32MaxValue_195(); + ChipLogProgress(chipTool, " ***** Test Step 195 : Write attribute NULLABLE_BITMAP16 null Value\n"); + err = TestWriteAttributeNullableBitmap16NullValue_195(); break; case 196: - ChipLogProgress(chipTool, " ***** Test Step 196 : Read attribute NULLABLE_BITMAP32 Max Value\n"); - err = TestReadAttributeNullableBitmap32MaxValue_196(); + ChipLogProgress(chipTool, " ***** Test Step 196 : Read attribute NULLABLE_BITMAP16 null Value\n"); + err = TestReadAttributeNullableBitmap16NullValue_196(); break; case 197: - ChipLogProgress(chipTool, " ***** Test Step 197 : Write attribute NULLABLE_BITMAP32 Invalid Value\n"); - err = TestWriteAttributeNullableBitmap32InvalidValue_197(); + ChipLogProgress(chipTool, " ***** Test Step 197 : Write attribute NULLABLE_BITMAP32 Max Value\n"); + err = TestWriteAttributeNullableBitmap32MaxValue_197(); break; case 198: - ChipLogProgress(chipTool, " ***** Test Step 198 : Read attribute NULLABLE_BITMAP32 unchanged Value\n"); - err = TestReadAttributeNullableBitmap32UnchangedValue_198(); + ChipLogProgress(chipTool, " ***** Test Step 198 : Read attribute NULLABLE_BITMAP32 Max Value\n"); + err = TestReadAttributeNullableBitmap32MaxValue_198(); break; case 199: - ChipLogProgress(chipTool, " ***** Test Step 199 : Write attribute NULLABLE_BITMAP32 null Value\n"); - err = TestWriteAttributeNullableBitmap32NullValue_199(); + ChipLogProgress(chipTool, " ***** Test Step 199 : Write attribute NULLABLE_BITMAP32 Invalid Value\n"); + err = TestWriteAttributeNullableBitmap32InvalidValue_199(); break; case 200: - ChipLogProgress(chipTool, " ***** Test Step 200 : Read attribute NULLABLE_BITMAP32 null Value\n"); - err = TestReadAttributeNullableBitmap32NullValue_200(); + ChipLogProgress(chipTool, " ***** Test Step 200 : Read attribute NULLABLE_BITMAP32 unchanged Value\n"); + err = TestReadAttributeNullableBitmap32UnchangedValue_200(); break; case 201: - ChipLogProgress(chipTool, " ***** Test Step 201 : Write attribute NULLABLE_BITMAP64 Max Value\n"); - err = TestWriteAttributeNullableBitmap64MaxValue_201(); + ChipLogProgress(chipTool, " ***** Test Step 201 : Write attribute NULLABLE_BITMAP32 null Value\n"); + err = TestWriteAttributeNullableBitmap32NullValue_201(); break; case 202: - ChipLogProgress(chipTool, " ***** Test Step 202 : Read attribute NULLABLE_BITMAP64 Max Value\n"); - err = TestReadAttributeNullableBitmap64MaxValue_202(); + ChipLogProgress(chipTool, " ***** Test Step 202 : Read attribute NULLABLE_BITMAP32 null Value\n"); + err = TestReadAttributeNullableBitmap32NullValue_202(); break; case 203: - ChipLogProgress(chipTool, " ***** Test Step 203 : Write attribute NULLABLE_BITMAP64 Invalid Value\n"); - err = TestWriteAttributeNullableBitmap64InvalidValue_203(); + ChipLogProgress(chipTool, " ***** Test Step 203 : Write attribute NULLABLE_BITMAP64 Max Value\n"); + err = TestWriteAttributeNullableBitmap64MaxValue_203(); break; case 204: - ChipLogProgress(chipTool, " ***** Test Step 204 : Read attribute NULLABLE_BITMAP64 unchanged Value\n"); - err = TestReadAttributeNullableBitmap64UnchangedValue_204(); + ChipLogProgress(chipTool, " ***** Test Step 204 : Read attribute NULLABLE_BITMAP64 Max Value\n"); + err = TestReadAttributeNullableBitmap64MaxValue_204(); break; case 205: - ChipLogProgress(chipTool, " ***** Test Step 205 : Write attribute NULLABLE_BITMAP64 null Value\n"); - err = TestWriteAttributeNullableBitmap64NullValue_205(); + ChipLogProgress(chipTool, " ***** Test Step 205 : Write attribute NULLABLE_BITMAP64 Invalid Value\n"); + err = TestWriteAttributeNullableBitmap64InvalidValue_205(); break; case 206: - ChipLogProgress(chipTool, " ***** Test Step 206 : Read attribute NULLABLE_BITMAP64 null Value\n"); - err = TestReadAttributeNullableBitmap64NullValue_206(); + ChipLogProgress(chipTool, " ***** Test Step 206 : Read attribute NULLABLE_BITMAP64 unchanged Value\n"); + err = TestReadAttributeNullableBitmap64UnchangedValue_206(); break; case 207: - ChipLogProgress(chipTool, " ***** Test Step 207 : Write attribute NULLABLE_INT8U Min Value\n"); - err = TestWriteAttributeNullableInt8uMinValue_207(); + ChipLogProgress(chipTool, " ***** Test Step 207 : Write attribute NULLABLE_BITMAP64 null Value\n"); + err = TestWriteAttributeNullableBitmap64NullValue_207(); break; case 208: - ChipLogProgress(chipTool, " ***** Test Step 208 : Read attribute NULLABLE_INT8U Min Value\n"); - err = TestReadAttributeNullableInt8uMinValue_208(); + ChipLogProgress(chipTool, " ***** Test Step 208 : Read attribute NULLABLE_BITMAP64 null Value\n"); + err = TestReadAttributeNullableBitmap64NullValue_208(); break; case 209: - ChipLogProgress(chipTool, " ***** Test Step 209 : Write attribute NULLABLE_INT8U Max Value\n"); - err = TestWriteAttributeNullableInt8uMaxValue_209(); + ChipLogProgress(chipTool, " ***** Test Step 209 : Write attribute NULLABLE_INT8U Min Value\n"); + err = TestWriteAttributeNullableInt8uMinValue_209(); break; case 210: - ChipLogProgress(chipTool, " ***** Test Step 210 : Read attribute NULLABLE_INT8U Max Value\n"); - err = TestReadAttributeNullableInt8uMaxValue_210(); + ChipLogProgress(chipTool, " ***** Test Step 210 : Read attribute NULLABLE_INT8U Min Value\n"); + err = TestReadAttributeNullableInt8uMinValue_210(); break; case 211: - ChipLogProgress(chipTool, " ***** Test Step 211 : Write attribute NULLABLE_INT8U Invalid Value\n"); - err = TestWriteAttributeNullableInt8uInvalidValue_211(); + ChipLogProgress(chipTool, " ***** Test Step 211 : Write attribute NULLABLE_INT8U Max Value\n"); + err = TestWriteAttributeNullableInt8uMaxValue_211(); break; case 212: - ChipLogProgress(chipTool, " ***** Test Step 212 : Read attribute NULLABLE_INT8U unchanged Value\n"); - err = TestReadAttributeNullableInt8uUnchangedValue_212(); + ChipLogProgress(chipTool, " ***** Test Step 212 : Read attribute NULLABLE_INT8U Max Value\n"); + err = TestReadAttributeNullableInt8uMaxValue_212(); break; case 213: - ChipLogProgress(chipTool, " ***** Test Step 213 : Read attribute NULLABLE_INT8U unchanged Value with constraint\n"); - err = TestReadAttributeNullableInt8uUnchangedValueWithConstraint_213(); + ChipLogProgress(chipTool, " ***** Test Step 213 : Write attribute NULLABLE_INT8U Invalid Value\n"); + err = TestWriteAttributeNullableInt8uInvalidValue_213(); break; case 214: - ChipLogProgress(chipTool, " ***** Test Step 214 : Write attribute NULLABLE_INT8U null Value\n"); - err = TestWriteAttributeNullableInt8uNullValue_214(); + ChipLogProgress(chipTool, " ***** Test Step 214 : Read attribute NULLABLE_INT8U unchanged Value\n"); + err = TestReadAttributeNullableInt8uUnchangedValue_214(); break; case 215: - ChipLogProgress(chipTool, " ***** Test Step 215 : Read attribute NULLABLE_INT8U null Value\n"); - err = TestReadAttributeNullableInt8uNullValue_215(); + ChipLogProgress(chipTool, " ***** Test Step 215 : Read attribute NULLABLE_INT8U unchanged Value with constraint\n"); + err = TestReadAttributeNullableInt8uUnchangedValueWithConstraint_215(); break; case 216: - ChipLogProgress(chipTool, " ***** Test Step 216 : Read attribute NULLABLE_INT8U null Value & range\n"); - err = TestReadAttributeNullableInt8uNullValueRange_216(); + ChipLogProgress(chipTool, " ***** Test Step 216 : Write attribute NULLABLE_INT8U null Value\n"); + err = TestWriteAttributeNullableInt8uNullValue_216(); break; case 217: - ChipLogProgress(chipTool, " ***** Test Step 217 : Read attribute NULLABLE_INT8U null Value & not\n"); - err = TestReadAttributeNullableInt8uNullValueNot_217(); + ChipLogProgress(chipTool, " ***** Test Step 217 : Read attribute NULLABLE_INT8U null Value\n"); + err = TestReadAttributeNullableInt8uNullValue_217(); break; case 218: - ChipLogProgress(chipTool, " ***** Test Step 218 : Write attribute NULLABLE_INT8U Value\n"); - err = TestWriteAttributeNullableInt8uValue_218(); + ChipLogProgress(chipTool, " ***** Test Step 218 : Read attribute NULLABLE_INT8U null Value & range\n"); + err = TestReadAttributeNullableInt8uNullValueRange_218(); break; case 219: - ChipLogProgress(chipTool, " ***** Test Step 219 : Read attribute NULLABLE_INT8U Value in range\n"); - err = TestReadAttributeNullableInt8uValueInRange_219(); + ChipLogProgress(chipTool, " ***** Test Step 219 : Read attribute NULLABLE_INT8U null Value & not\n"); + err = TestReadAttributeNullableInt8uNullValueNot_219(); break; case 220: - ChipLogProgress(chipTool, " ***** Test Step 220 : Read attribute NULLABLE_INT8U notValue OK\n"); - err = TestReadAttributeNullableInt8uNotValueOk_220(); + ChipLogProgress(chipTool, " ***** Test Step 220 : Write attribute NULLABLE_INT8U Value\n"); + err = TestWriteAttributeNullableInt8uValue_220(); break; case 221: - ChipLogProgress(chipTool, " ***** Test Step 221 : Write attribute NULLABLE_INT16U Min Value\n"); - err = TestWriteAttributeNullableInt16uMinValue_221(); + ChipLogProgress(chipTool, " ***** Test Step 221 : Read attribute NULLABLE_INT8U Value in range\n"); + err = TestReadAttributeNullableInt8uValueInRange_221(); break; case 222: - ChipLogProgress(chipTool, " ***** Test Step 222 : Read attribute NULLABLE_INT16U Min Value\n"); - err = TestReadAttributeNullableInt16uMinValue_222(); + ChipLogProgress(chipTool, " ***** Test Step 222 : Read attribute NULLABLE_INT8U notValue OK\n"); + err = TestReadAttributeNullableInt8uNotValueOk_222(); break; case 223: - ChipLogProgress(chipTool, " ***** Test Step 223 : Write attribute NULLABLE_INT16U Max Value\n"); - err = TestWriteAttributeNullableInt16uMaxValue_223(); + ChipLogProgress(chipTool, " ***** Test Step 223 : Write attribute NULLABLE_INT16U Min Value\n"); + err = TestWriteAttributeNullableInt16uMinValue_223(); break; case 224: - ChipLogProgress(chipTool, " ***** Test Step 224 : Read attribute NULLABLE_INT16U Max Value\n"); - err = TestReadAttributeNullableInt16uMaxValue_224(); + ChipLogProgress(chipTool, " ***** Test Step 224 : Read attribute NULLABLE_INT16U Min Value\n"); + err = TestReadAttributeNullableInt16uMinValue_224(); break; case 225: - ChipLogProgress(chipTool, " ***** Test Step 225 : Write attribute NULLABLE_INT16U Invalid Value\n"); - err = TestWriteAttributeNullableInt16uInvalidValue_225(); + ChipLogProgress(chipTool, " ***** Test Step 225 : Write attribute NULLABLE_INT16U Max Value\n"); + err = TestWriteAttributeNullableInt16uMaxValue_225(); break; case 226: - ChipLogProgress(chipTool, " ***** Test Step 226 : Read attribute NULLABLE_INT16U unchanged Value\n"); - err = TestReadAttributeNullableInt16uUnchangedValue_226(); + ChipLogProgress(chipTool, " ***** Test Step 226 : Read attribute NULLABLE_INT16U Max Value\n"); + err = TestReadAttributeNullableInt16uMaxValue_226(); break; case 227: - ChipLogProgress(chipTool, " ***** Test Step 227 : Write attribute NULLABLE_INT16U null Value\n"); - err = TestWriteAttributeNullableInt16uNullValue_227(); + ChipLogProgress(chipTool, " ***** Test Step 227 : Write attribute NULLABLE_INT16U Invalid Value\n"); + err = TestWriteAttributeNullableInt16uInvalidValue_227(); break; case 228: - ChipLogProgress(chipTool, " ***** Test Step 228 : Read attribute NULLABLE_INT16U null Value\n"); - err = TestReadAttributeNullableInt16uNullValue_228(); + ChipLogProgress(chipTool, " ***** Test Step 228 : Read attribute NULLABLE_INT16U unchanged Value\n"); + err = TestReadAttributeNullableInt16uUnchangedValue_228(); break; case 229: - ChipLogProgress(chipTool, " ***** Test Step 229 : Read attribute NULLABLE_INT16U null Value & range\n"); - err = TestReadAttributeNullableInt16uNullValueRange_229(); + ChipLogProgress(chipTool, " ***** Test Step 229 : Write attribute NULLABLE_INT16U null Value\n"); + err = TestWriteAttributeNullableInt16uNullValue_229(); break; case 230: - ChipLogProgress(chipTool, " ***** Test Step 230 : Read attribute NULLABLE_INT16U null Value & not\n"); - err = TestReadAttributeNullableInt16uNullValueNot_230(); + ChipLogProgress(chipTool, " ***** Test Step 230 : Read attribute NULLABLE_INT16U null Value\n"); + err = TestReadAttributeNullableInt16uNullValue_230(); break; case 231: - ChipLogProgress(chipTool, " ***** Test Step 231 : Write attribute NULLABLE_INT16U Value\n"); - err = TestWriteAttributeNullableInt16uValue_231(); + ChipLogProgress(chipTool, " ***** Test Step 231 : Read attribute NULLABLE_INT16U null Value & range\n"); + err = TestReadAttributeNullableInt16uNullValueRange_231(); break; case 232: - ChipLogProgress(chipTool, " ***** Test Step 232 : Read attribute NULLABLE_INT16U Value in range\n"); - err = TestReadAttributeNullableInt16uValueInRange_232(); + ChipLogProgress(chipTool, " ***** Test Step 232 : Read attribute NULLABLE_INT16U null Value & not\n"); + err = TestReadAttributeNullableInt16uNullValueNot_232(); break; case 233: - ChipLogProgress(chipTool, " ***** Test Step 233 : Read attribute NULLABLE_INT16U notValue OK\n"); - err = TestReadAttributeNullableInt16uNotValueOk_233(); + ChipLogProgress(chipTool, " ***** Test Step 233 : Write attribute NULLABLE_INT16U Value\n"); + err = TestWriteAttributeNullableInt16uValue_233(); break; case 234: - ChipLogProgress(chipTool, " ***** Test Step 234 : Write attribute NULLABLE_INT32U Min Value\n"); - err = TestWriteAttributeNullableInt32uMinValue_234(); + ChipLogProgress(chipTool, " ***** Test Step 234 : Read attribute NULLABLE_INT16U Value in range\n"); + err = TestReadAttributeNullableInt16uValueInRange_234(); break; case 235: - ChipLogProgress(chipTool, " ***** Test Step 235 : Read attribute NULLABLE_INT32U Min Value\n"); - err = TestReadAttributeNullableInt32uMinValue_235(); + ChipLogProgress(chipTool, " ***** Test Step 235 : Read attribute NULLABLE_INT16U notValue OK\n"); + err = TestReadAttributeNullableInt16uNotValueOk_235(); break; case 236: - ChipLogProgress(chipTool, " ***** Test Step 236 : Write attribute NULLABLE_INT32U Max Value\n"); - err = TestWriteAttributeNullableInt32uMaxValue_236(); + ChipLogProgress(chipTool, " ***** Test Step 236 : Write attribute NULLABLE_INT32U Min Value\n"); + err = TestWriteAttributeNullableInt32uMinValue_236(); break; case 237: - ChipLogProgress(chipTool, " ***** Test Step 237 : Read attribute NULLABLE_INT32U Max Value\n"); - err = TestReadAttributeNullableInt32uMaxValue_237(); + ChipLogProgress(chipTool, " ***** Test Step 237 : Read attribute NULLABLE_INT32U Min Value\n"); + err = TestReadAttributeNullableInt32uMinValue_237(); break; case 238: - ChipLogProgress(chipTool, " ***** Test Step 238 : Write attribute NULLABLE_INT32U Invalid Value\n"); - err = TestWriteAttributeNullableInt32uInvalidValue_238(); + ChipLogProgress(chipTool, " ***** Test Step 238 : Write attribute NULLABLE_INT32U Max Value\n"); + err = TestWriteAttributeNullableInt32uMaxValue_238(); break; case 239: - ChipLogProgress(chipTool, " ***** Test Step 239 : Read attribute NULLABLE_INT32U unchanged Value\n"); - err = TestReadAttributeNullableInt32uUnchangedValue_239(); + ChipLogProgress(chipTool, " ***** Test Step 239 : Read attribute NULLABLE_INT32U Max Value\n"); + err = TestReadAttributeNullableInt32uMaxValue_239(); break; case 240: - ChipLogProgress(chipTool, " ***** Test Step 240 : Write attribute NULLABLE_INT32U null Value\n"); - err = TestWriteAttributeNullableInt32uNullValue_240(); + ChipLogProgress(chipTool, " ***** Test Step 240 : Write attribute NULLABLE_INT32U Invalid Value\n"); + err = TestWriteAttributeNullableInt32uInvalidValue_240(); break; case 241: - ChipLogProgress(chipTool, " ***** Test Step 241 : Read attribute NULLABLE_INT32U null Value\n"); - err = TestReadAttributeNullableInt32uNullValue_241(); + ChipLogProgress(chipTool, " ***** Test Step 241 : Read attribute NULLABLE_INT32U unchanged Value\n"); + err = TestReadAttributeNullableInt32uUnchangedValue_241(); break; case 242: - ChipLogProgress(chipTool, " ***** Test Step 242 : Read attribute NULLABLE_INT32U null Value & range\n"); - err = TestReadAttributeNullableInt32uNullValueRange_242(); + ChipLogProgress(chipTool, " ***** Test Step 242 : Write attribute NULLABLE_INT32U null Value\n"); + err = TestWriteAttributeNullableInt32uNullValue_242(); break; case 243: - ChipLogProgress(chipTool, " ***** Test Step 243 : Read attribute NULLABLE_INT32U null Value & not\n"); - err = TestReadAttributeNullableInt32uNullValueNot_243(); + ChipLogProgress(chipTool, " ***** Test Step 243 : Read attribute NULLABLE_INT32U null Value\n"); + err = TestReadAttributeNullableInt32uNullValue_243(); break; case 244: - ChipLogProgress(chipTool, " ***** Test Step 244 : Write attribute NULLABLE_INT32U Value\n"); - err = TestWriteAttributeNullableInt32uValue_244(); + ChipLogProgress(chipTool, " ***** Test Step 244 : Read attribute NULLABLE_INT32U null Value & range\n"); + err = TestReadAttributeNullableInt32uNullValueRange_244(); break; case 245: - ChipLogProgress(chipTool, " ***** Test Step 245 : Read attribute NULLABLE_INT32U Value in range\n"); - err = TestReadAttributeNullableInt32uValueInRange_245(); + ChipLogProgress(chipTool, " ***** Test Step 245 : Read attribute NULLABLE_INT32U null Value & not\n"); + err = TestReadAttributeNullableInt32uNullValueNot_245(); break; case 246: - ChipLogProgress(chipTool, " ***** Test Step 246 : Read attribute NULLABLE_INT32U notValue OK\n"); - err = TestReadAttributeNullableInt32uNotValueOk_246(); + ChipLogProgress(chipTool, " ***** Test Step 246 : Write attribute NULLABLE_INT32U Value\n"); + err = TestWriteAttributeNullableInt32uValue_246(); break; case 247: - ChipLogProgress(chipTool, " ***** Test Step 247 : Write attribute NULLABLE_INT64U Min Value\n"); - err = TestWriteAttributeNullableInt64uMinValue_247(); + ChipLogProgress(chipTool, " ***** Test Step 247 : Read attribute NULLABLE_INT32U Value in range\n"); + err = TestReadAttributeNullableInt32uValueInRange_247(); break; case 248: - ChipLogProgress(chipTool, " ***** Test Step 248 : Read attribute NULLABLE_INT64U Min Value\n"); - err = TestReadAttributeNullableInt64uMinValue_248(); + ChipLogProgress(chipTool, " ***** Test Step 248 : Read attribute NULLABLE_INT32U notValue OK\n"); + err = TestReadAttributeNullableInt32uNotValueOk_248(); break; case 249: - ChipLogProgress(chipTool, " ***** Test Step 249 : Write attribute NULLABLE_INT64U Max Value\n"); - err = TestWriteAttributeNullableInt64uMaxValue_249(); + ChipLogProgress(chipTool, " ***** Test Step 249 : Write attribute NULLABLE_INT64U Min Value\n"); + err = TestWriteAttributeNullableInt64uMinValue_249(); break; case 250: - ChipLogProgress(chipTool, " ***** Test Step 250 : Read attribute NULLABLE_INT64U Max Value\n"); - err = TestReadAttributeNullableInt64uMaxValue_250(); + ChipLogProgress(chipTool, " ***** Test Step 250 : Read attribute NULLABLE_INT64U Min Value\n"); + err = TestReadAttributeNullableInt64uMinValue_250(); break; case 251: - ChipLogProgress(chipTool, " ***** Test Step 251 : Write attribute NULLABLE_INT64U Invalid Value\n"); - err = TestWriteAttributeNullableInt64uInvalidValue_251(); + ChipLogProgress(chipTool, " ***** Test Step 251 : Write attribute NULLABLE_INT64U Max Value\n"); + err = TestWriteAttributeNullableInt64uMaxValue_251(); break; case 252: - ChipLogProgress(chipTool, " ***** Test Step 252 : Read attribute NULLABLE_INT64U unchanged Value\n"); - err = TestReadAttributeNullableInt64uUnchangedValue_252(); + ChipLogProgress(chipTool, " ***** Test Step 252 : Read attribute NULLABLE_INT64U Max Value\n"); + err = TestReadAttributeNullableInt64uMaxValue_252(); break; case 253: - ChipLogProgress(chipTool, " ***** Test Step 253 : Write attribute NULLABLE_INT64U null Value\n"); - err = TestWriteAttributeNullableInt64uNullValue_253(); + ChipLogProgress(chipTool, " ***** Test Step 253 : Write attribute NULLABLE_INT64U Invalid Value\n"); + err = TestWriteAttributeNullableInt64uInvalidValue_253(); break; case 254: - ChipLogProgress(chipTool, " ***** Test Step 254 : Read attribute NULLABLE_INT64U null Value\n"); - err = TestReadAttributeNullableInt64uNullValue_254(); + ChipLogProgress(chipTool, " ***** Test Step 254 : Read attribute NULLABLE_INT64U unchanged Value\n"); + err = TestReadAttributeNullableInt64uUnchangedValue_254(); break; case 255: - ChipLogProgress(chipTool, " ***** Test Step 255 : Read attribute NULLABLE_INT64U null Value & range\n"); - err = TestReadAttributeNullableInt64uNullValueRange_255(); + ChipLogProgress(chipTool, " ***** Test Step 255 : Write attribute NULLABLE_INT64U null Value\n"); + err = TestWriteAttributeNullableInt64uNullValue_255(); break; case 256: - ChipLogProgress(chipTool, " ***** Test Step 256 : Read attribute NULLABLE_INT64U null Value & not\n"); - err = TestReadAttributeNullableInt64uNullValueNot_256(); + ChipLogProgress(chipTool, " ***** Test Step 256 : Read attribute NULLABLE_INT64U null Value\n"); + err = TestReadAttributeNullableInt64uNullValue_256(); break; case 257: - ChipLogProgress(chipTool, " ***** Test Step 257 : Write attribute NULLABLE_INT64U Value\n"); - err = TestWriteAttributeNullableInt64uValue_257(); + ChipLogProgress(chipTool, " ***** Test Step 257 : Read attribute NULLABLE_INT64U null Value & range\n"); + err = TestReadAttributeNullableInt64uNullValueRange_257(); break; case 258: - ChipLogProgress(chipTool, " ***** Test Step 258 : Read attribute NULLABLE_INT64U Value in range\n"); - err = TestReadAttributeNullableInt64uValueInRange_258(); + ChipLogProgress(chipTool, " ***** Test Step 258 : Read attribute NULLABLE_INT64U null Value & not\n"); + err = TestReadAttributeNullableInt64uNullValueNot_258(); break; case 259: - ChipLogProgress(chipTool, " ***** Test Step 259 : Read attribute NULLABLE_INT64U notValue OK\n"); - err = TestReadAttributeNullableInt64uNotValueOk_259(); + ChipLogProgress(chipTool, " ***** Test Step 259 : Write attribute NULLABLE_INT64U Value\n"); + err = TestWriteAttributeNullableInt64uValue_259(); break; case 260: - ChipLogProgress(chipTool, " ***** Test Step 260 : Write attribute NULLABLE_INT8S Min Value\n"); - err = TestWriteAttributeNullableInt8sMinValue_260(); + ChipLogProgress(chipTool, " ***** Test Step 260 : Read attribute NULLABLE_INT64U Value in range\n"); + err = TestReadAttributeNullableInt64uValueInRange_260(); break; case 261: - ChipLogProgress(chipTool, " ***** Test Step 261 : Read attribute NULLABLE_INT8S Min Value\n"); - err = TestReadAttributeNullableInt8sMinValue_261(); + ChipLogProgress(chipTool, " ***** Test Step 261 : Read attribute NULLABLE_INT64U notValue OK\n"); + err = TestReadAttributeNullableInt64uNotValueOk_261(); break; case 262: - ChipLogProgress(chipTool, " ***** Test Step 262 : Write attribute NULLABLE_INT8S Invalid Value\n"); - err = TestWriteAttributeNullableInt8sInvalidValue_262(); + ChipLogProgress(chipTool, " ***** Test Step 262 : Write attribute NULLABLE_INT8S Min Value\n"); + err = TestWriteAttributeNullableInt8sMinValue_262(); break; case 263: - ChipLogProgress(chipTool, " ***** Test Step 263 : Read attribute NULLABLE_INT8S unchanged Value\n"); - err = TestReadAttributeNullableInt8sUnchangedValue_263(); + ChipLogProgress(chipTool, " ***** Test Step 263 : Read attribute NULLABLE_INT8S Min Value\n"); + err = TestReadAttributeNullableInt8sMinValue_263(); break; case 264: - ChipLogProgress(chipTool, " ***** Test Step 264 : Write attribute NULLABLE_INT8S null Value\n"); - err = TestWriteAttributeNullableInt8sNullValue_264(); + ChipLogProgress(chipTool, " ***** Test Step 264 : Write attribute NULLABLE_INT8S Invalid Value\n"); + err = TestWriteAttributeNullableInt8sInvalidValue_264(); break; case 265: - ChipLogProgress(chipTool, " ***** Test Step 265 : Read attribute NULLABLE_INT8S null Value\n"); - err = TestReadAttributeNullableInt8sNullValue_265(); + ChipLogProgress(chipTool, " ***** Test Step 265 : Read attribute NULLABLE_INT8S unchanged Value\n"); + err = TestReadAttributeNullableInt8sUnchangedValue_265(); break; case 266: - ChipLogProgress(chipTool, " ***** Test Step 266 : Read attribute NULLABLE_INT8S null Value & range\n"); - err = TestReadAttributeNullableInt8sNullValueRange_266(); + ChipLogProgress(chipTool, " ***** Test Step 266 : Write attribute NULLABLE_INT8S null Value\n"); + err = TestWriteAttributeNullableInt8sNullValue_266(); break; case 267: - ChipLogProgress(chipTool, " ***** Test Step 267 : Read attribute NULLABLE_INT8S null Value & not\n"); - err = TestReadAttributeNullableInt8sNullValueNot_267(); + ChipLogProgress(chipTool, " ***** Test Step 267 : Read attribute NULLABLE_INT8S null Value\n"); + err = TestReadAttributeNullableInt8sNullValue_267(); break; case 268: - ChipLogProgress(chipTool, " ***** Test Step 268 : Write attribute NULLABLE_INT8S Value\n"); - err = TestWriteAttributeNullableInt8sValue_268(); + ChipLogProgress(chipTool, " ***** Test Step 268 : Read attribute NULLABLE_INT8S null Value & range\n"); + err = TestReadAttributeNullableInt8sNullValueRange_268(); break; case 269: - ChipLogProgress(chipTool, " ***** Test Step 269 : Read attribute NULLABLE_INT8S Value in range\n"); - err = TestReadAttributeNullableInt8sValueInRange_269(); + ChipLogProgress(chipTool, " ***** Test Step 269 : Read attribute NULLABLE_INT8S null Value & not\n"); + err = TestReadAttributeNullableInt8sNullValueNot_269(); break; case 270: - ChipLogProgress(chipTool, " ***** Test Step 270 : Read attribute NULLABLE_INT8S notValue OK\n"); - err = TestReadAttributeNullableInt8sNotValueOk_270(); + ChipLogProgress(chipTool, " ***** Test Step 270 : Write attribute NULLABLE_INT8S Value\n"); + err = TestWriteAttributeNullableInt8sValue_270(); break; case 271: - ChipLogProgress(chipTool, " ***** Test Step 271 : Write attribute NULLABLE_INT16S Min Value\n"); - err = TestWriteAttributeNullableInt16sMinValue_271(); + ChipLogProgress(chipTool, " ***** Test Step 271 : Read attribute NULLABLE_INT8S Value in range\n"); + err = TestReadAttributeNullableInt8sValueInRange_271(); break; case 272: - ChipLogProgress(chipTool, " ***** Test Step 272 : Read attribute NULLABLE_INT16S Min Value\n"); - err = TestReadAttributeNullableInt16sMinValue_272(); + ChipLogProgress(chipTool, " ***** Test Step 272 : Read attribute NULLABLE_INT8S notValue OK\n"); + err = TestReadAttributeNullableInt8sNotValueOk_272(); break; case 273: - ChipLogProgress(chipTool, " ***** Test Step 273 : Write attribute NULLABLE_INT16S Invalid Value\n"); - err = TestWriteAttributeNullableInt16sInvalidValue_273(); + ChipLogProgress(chipTool, " ***** Test Step 273 : Write attribute NULLABLE_INT16S Min Value\n"); + err = TestWriteAttributeNullableInt16sMinValue_273(); break; case 274: - ChipLogProgress(chipTool, " ***** Test Step 274 : Read attribute NULLABLE_INT16S unchanged Value\n"); - err = TestReadAttributeNullableInt16sUnchangedValue_274(); + ChipLogProgress(chipTool, " ***** Test Step 274 : Read attribute NULLABLE_INT16S Min Value\n"); + err = TestReadAttributeNullableInt16sMinValue_274(); break; case 275: - ChipLogProgress(chipTool, " ***** Test Step 275 : Write attribute NULLABLE_INT16S null Value\n"); - err = TestWriteAttributeNullableInt16sNullValue_275(); + ChipLogProgress(chipTool, " ***** Test Step 275 : Write attribute NULLABLE_INT16S Invalid Value\n"); + err = TestWriteAttributeNullableInt16sInvalidValue_275(); break; case 276: - ChipLogProgress(chipTool, " ***** Test Step 276 : Read attribute NULLABLE_INT16S null Value\n"); - err = TestReadAttributeNullableInt16sNullValue_276(); + ChipLogProgress(chipTool, " ***** Test Step 276 : Read attribute NULLABLE_INT16S unchanged Value\n"); + err = TestReadAttributeNullableInt16sUnchangedValue_276(); break; case 277: - ChipLogProgress(chipTool, " ***** Test Step 277 : Read attribute NULLABLE_INT16S null Value & range\n"); - err = TestReadAttributeNullableInt16sNullValueRange_277(); + ChipLogProgress(chipTool, " ***** Test Step 277 : Write attribute NULLABLE_INT16S null Value\n"); + err = TestWriteAttributeNullableInt16sNullValue_277(); break; case 278: - ChipLogProgress(chipTool, " ***** Test Step 278 : Read attribute NULLABLE_INT16S null Value & not\n"); - err = TestReadAttributeNullableInt16sNullValueNot_278(); + ChipLogProgress(chipTool, " ***** Test Step 278 : Read attribute NULLABLE_INT16S null Value\n"); + err = TestReadAttributeNullableInt16sNullValue_278(); break; case 279: - ChipLogProgress(chipTool, " ***** Test Step 279 : Write attribute NULLABLE_INT16S Value\n"); - err = TestWriteAttributeNullableInt16sValue_279(); + ChipLogProgress(chipTool, " ***** Test Step 279 : Read attribute NULLABLE_INT16S null Value & range\n"); + err = TestReadAttributeNullableInt16sNullValueRange_279(); break; case 280: - ChipLogProgress(chipTool, " ***** Test Step 280 : Read attribute NULLABLE_INT16S Value in range\n"); - err = TestReadAttributeNullableInt16sValueInRange_280(); + ChipLogProgress(chipTool, " ***** Test Step 280 : Read attribute NULLABLE_INT16S null Value & not\n"); + err = TestReadAttributeNullableInt16sNullValueNot_280(); break; case 281: - ChipLogProgress(chipTool, " ***** Test Step 281 : Read attribute NULLABLE_INT16S notValue OK\n"); - err = TestReadAttributeNullableInt16sNotValueOk_281(); + ChipLogProgress(chipTool, " ***** Test Step 281 : Write attribute NULLABLE_INT16S Value\n"); + err = TestWriteAttributeNullableInt16sValue_281(); break; case 282: - ChipLogProgress(chipTool, " ***** Test Step 282 : Write attribute NULLABLE_INT32S Min Value\n"); - err = TestWriteAttributeNullableInt32sMinValue_282(); + ChipLogProgress(chipTool, " ***** Test Step 282 : Read attribute NULLABLE_INT16S Value in range\n"); + err = TestReadAttributeNullableInt16sValueInRange_282(); break; case 283: - ChipLogProgress(chipTool, " ***** Test Step 283 : Read attribute NULLABLE_INT32S Min Value\n"); - err = TestReadAttributeNullableInt32sMinValue_283(); + ChipLogProgress(chipTool, " ***** Test Step 283 : Read attribute NULLABLE_INT16S notValue OK\n"); + err = TestReadAttributeNullableInt16sNotValueOk_283(); break; case 284: - ChipLogProgress(chipTool, " ***** Test Step 284 : Write attribute NULLABLE_INT32S Invalid Value\n"); - err = TestWriteAttributeNullableInt32sInvalidValue_284(); + ChipLogProgress(chipTool, " ***** Test Step 284 : Write attribute NULLABLE_INT32S Min Value\n"); + err = TestWriteAttributeNullableInt32sMinValue_284(); break; case 285: - ChipLogProgress(chipTool, " ***** Test Step 285 : Read attribute NULLABLE_INT32S unchanged Value\n"); - err = TestReadAttributeNullableInt32sUnchangedValue_285(); + ChipLogProgress(chipTool, " ***** Test Step 285 : Read attribute NULLABLE_INT32S Min Value\n"); + err = TestReadAttributeNullableInt32sMinValue_285(); break; case 286: - ChipLogProgress(chipTool, " ***** Test Step 286 : Write attribute NULLABLE_INT32S null Value\n"); - err = TestWriteAttributeNullableInt32sNullValue_286(); + ChipLogProgress(chipTool, " ***** Test Step 286 : Write attribute NULLABLE_INT32S Invalid Value\n"); + err = TestWriteAttributeNullableInt32sInvalidValue_286(); break; case 287: - ChipLogProgress(chipTool, " ***** Test Step 287 : Read attribute NULLABLE_INT32S null Value\n"); - err = TestReadAttributeNullableInt32sNullValue_287(); + ChipLogProgress(chipTool, " ***** Test Step 287 : Read attribute NULLABLE_INT32S unchanged Value\n"); + err = TestReadAttributeNullableInt32sUnchangedValue_287(); break; case 288: - ChipLogProgress(chipTool, " ***** Test Step 288 : Read attribute NULLABLE_INT32S null Value & range\n"); - err = TestReadAttributeNullableInt32sNullValueRange_288(); + ChipLogProgress(chipTool, " ***** Test Step 288 : Write attribute NULLABLE_INT32S null Value\n"); + err = TestWriteAttributeNullableInt32sNullValue_288(); break; case 289: - ChipLogProgress(chipTool, " ***** Test Step 289 : Read attribute NULLABLE_INT32S null Value & not\n"); - err = TestReadAttributeNullableInt32sNullValueNot_289(); + ChipLogProgress(chipTool, " ***** Test Step 289 : Read attribute NULLABLE_INT32S null Value\n"); + err = TestReadAttributeNullableInt32sNullValue_289(); break; case 290: - ChipLogProgress(chipTool, " ***** Test Step 290 : Write attribute NULLABLE_INT32S Value\n"); - err = TestWriteAttributeNullableInt32sValue_290(); + ChipLogProgress(chipTool, " ***** Test Step 290 : Read attribute NULLABLE_INT32S null Value & range\n"); + err = TestReadAttributeNullableInt32sNullValueRange_290(); break; case 291: - ChipLogProgress(chipTool, " ***** Test Step 291 : Read attribute NULLABLE_INT32S Value in range\n"); - err = TestReadAttributeNullableInt32sValueInRange_291(); + ChipLogProgress(chipTool, " ***** Test Step 291 : Read attribute NULLABLE_INT32S null Value & not\n"); + err = TestReadAttributeNullableInt32sNullValueNot_291(); break; case 292: - ChipLogProgress(chipTool, " ***** Test Step 292 : Read attribute NULLABLE_INT32S notValue OK\n"); - err = TestReadAttributeNullableInt32sNotValueOk_292(); + ChipLogProgress(chipTool, " ***** Test Step 292 : Write attribute NULLABLE_INT32S Value\n"); + err = TestWriteAttributeNullableInt32sValue_292(); break; case 293: - ChipLogProgress(chipTool, " ***** Test Step 293 : Write attribute NULLABLE_INT64S Min Value\n"); - err = TestWriteAttributeNullableInt64sMinValue_293(); + ChipLogProgress(chipTool, " ***** Test Step 293 : Read attribute NULLABLE_INT32S Value in range\n"); + err = TestReadAttributeNullableInt32sValueInRange_293(); break; case 294: - ChipLogProgress(chipTool, " ***** Test Step 294 : Read attribute NULLABLE_INT64S Min Value\n"); - err = TestReadAttributeNullableInt64sMinValue_294(); + ChipLogProgress(chipTool, " ***** Test Step 294 : Read attribute NULLABLE_INT32S notValue OK\n"); + err = TestReadAttributeNullableInt32sNotValueOk_294(); break; case 295: - ChipLogProgress(chipTool, " ***** Test Step 295 : Write attribute NULLABLE_INT64S Invalid Value\n"); - err = TestWriteAttributeNullableInt64sInvalidValue_295(); + ChipLogProgress(chipTool, " ***** Test Step 295 : Write attribute NULLABLE_INT64S Min Value\n"); + err = TestWriteAttributeNullableInt64sMinValue_295(); break; case 296: - ChipLogProgress(chipTool, " ***** Test Step 296 : Read attribute NULLABLE_INT64S unchanged Value\n"); - err = TestReadAttributeNullableInt64sUnchangedValue_296(); + ChipLogProgress(chipTool, " ***** Test Step 296 : Read attribute NULLABLE_INT64S Min Value\n"); + err = TestReadAttributeNullableInt64sMinValue_296(); break; case 297: - ChipLogProgress(chipTool, " ***** Test Step 297 : Write attribute NULLABLE_INT64S null Value\n"); - err = TestWriteAttributeNullableInt64sNullValue_297(); + ChipLogProgress(chipTool, " ***** Test Step 297 : Write attribute NULLABLE_INT64S Invalid Value\n"); + err = TestWriteAttributeNullableInt64sInvalidValue_297(); break; case 298: - ChipLogProgress(chipTool, " ***** Test Step 298 : Read attribute NULLABLE_INT64S null Value\n"); - err = TestReadAttributeNullableInt64sNullValue_298(); + ChipLogProgress(chipTool, " ***** Test Step 298 : Read attribute NULLABLE_INT64S unchanged Value\n"); + err = TestReadAttributeNullableInt64sUnchangedValue_298(); break; case 299: - ChipLogProgress(chipTool, " ***** Test Step 299 : Read attribute NULLABLE_INT64S null Value & range\n"); - err = TestReadAttributeNullableInt64sNullValueRange_299(); + ChipLogProgress(chipTool, " ***** Test Step 299 : Write attribute NULLABLE_INT64S null Value\n"); + err = TestWriteAttributeNullableInt64sNullValue_299(); break; case 300: - ChipLogProgress(chipTool, " ***** Test Step 300 : Read attribute NULLABLE_INT64S null Value & not\n"); - err = TestReadAttributeNullableInt64sNullValueNot_300(); + ChipLogProgress(chipTool, " ***** Test Step 300 : Read attribute NULLABLE_INT64S null Value\n"); + err = TestReadAttributeNullableInt64sNullValue_300(); break; case 301: - ChipLogProgress(chipTool, " ***** Test Step 301 : Write attribute NULLABLE_INT64S Value\n"); - err = TestWriteAttributeNullableInt64sValue_301(); + ChipLogProgress(chipTool, " ***** Test Step 301 : Read attribute NULLABLE_INT64S null Value & range\n"); + err = TestReadAttributeNullableInt64sNullValueRange_301(); break; case 302: - ChipLogProgress(chipTool, " ***** Test Step 302 : Read attribute NULLABLE_INT64S Value in range\n"); - err = TestReadAttributeNullableInt64sValueInRange_302(); + ChipLogProgress(chipTool, " ***** Test Step 302 : Read attribute NULLABLE_INT64S null Value & not\n"); + err = TestReadAttributeNullableInt64sNullValueNot_302(); break; case 303: - ChipLogProgress(chipTool, " ***** Test Step 303 : Read attribute NULLABLE_INT64S notValue OK\n"); - err = TestReadAttributeNullableInt64sNotValueOk_303(); + ChipLogProgress(chipTool, " ***** Test Step 303 : Write attribute NULLABLE_INT64S Value\n"); + err = TestWriteAttributeNullableInt64sValue_303(); break; case 304: - ChipLogProgress(chipTool, " ***** Test Step 304 : Write attribute NULLABLE_SINGLE medium Value\n"); - err = TestWriteAttributeNullableSingleMediumValue_304(); + ChipLogProgress(chipTool, " ***** Test Step 304 : Read attribute NULLABLE_INT64S Value in range\n"); + err = TestReadAttributeNullableInt64sValueInRange_304(); break; case 305: - ChipLogProgress(chipTool, " ***** Test Step 305 : Read attribute NULLABLE_SINGLE medium Value\n"); - err = TestReadAttributeNullableSingleMediumValue_305(); + ChipLogProgress(chipTool, " ***** Test Step 305 : Read attribute NULLABLE_INT64S notValue OK\n"); + err = TestReadAttributeNullableInt64sNotValueOk_305(); break; case 306: - ChipLogProgress(chipTool, " ***** Test Step 306 : Write attribute NULLABLE_SINGLE largest Value\n"); - err = TestWriteAttributeNullableSingleLargestValue_306(); + ChipLogProgress(chipTool, " ***** Test Step 306 : Write attribute NULLABLE_SINGLE medium Value\n"); + err = TestWriteAttributeNullableSingleMediumValue_306(); break; case 307: - ChipLogProgress(chipTool, " ***** Test Step 307 : Read attribute NULLABLE_SINGLE largest Value\n"); - err = TestReadAttributeNullableSingleLargestValue_307(); + ChipLogProgress(chipTool, " ***** Test Step 307 : Read attribute NULLABLE_SINGLE medium Value\n"); + err = TestReadAttributeNullableSingleMediumValue_307(); break; case 308: - ChipLogProgress(chipTool, " ***** Test Step 308 : Write attribute NULLABLE_SINGLE smallest Value\n"); - err = TestWriteAttributeNullableSingleSmallestValue_308(); + ChipLogProgress(chipTool, " ***** Test Step 308 : Write attribute NULLABLE_SINGLE largest Value\n"); + err = TestWriteAttributeNullableSingleLargestValue_308(); break; case 309: - ChipLogProgress(chipTool, " ***** Test Step 309 : Read attribute NULLABLE_SINGLE smallest Value\n"); - err = TestReadAttributeNullableSingleSmallestValue_309(); + ChipLogProgress(chipTool, " ***** Test Step 309 : Read attribute NULLABLE_SINGLE largest Value\n"); + err = TestReadAttributeNullableSingleLargestValue_309(); break; case 310: - ChipLogProgress(chipTool, " ***** Test Step 310 : Write attribute NULLABLE_SINGLE null Value\n"); - err = TestWriteAttributeNullableSingleNullValue_310(); + ChipLogProgress(chipTool, " ***** Test Step 310 : Write attribute NULLABLE_SINGLE smallest Value\n"); + err = TestWriteAttributeNullableSingleSmallestValue_310(); break; case 311: - ChipLogProgress(chipTool, " ***** Test Step 311 : Read attribute NULLABLE_SINGLE null Value\n"); - err = TestReadAttributeNullableSingleNullValue_311(); + ChipLogProgress(chipTool, " ***** Test Step 311 : Read attribute NULLABLE_SINGLE smallest Value\n"); + err = TestReadAttributeNullableSingleSmallestValue_311(); break; case 312: - ChipLogProgress(chipTool, " ***** Test Step 312 : Write attribute NULLABLE_SINGLE 0 Value\n"); - err = TestWriteAttributeNullableSingle0Value_312(); + ChipLogProgress(chipTool, " ***** Test Step 312 : Write attribute NULLABLE_SINGLE null Value\n"); + err = TestWriteAttributeNullableSingleNullValue_312(); break; case 313: - ChipLogProgress(chipTool, " ***** Test Step 313 : Read attribute NULLABLE_SINGLE 0 Value\n"); - err = TestReadAttributeNullableSingle0Value_313(); + ChipLogProgress(chipTool, " ***** Test Step 313 : Read attribute NULLABLE_SINGLE null Value\n"); + err = TestReadAttributeNullableSingleNullValue_313(); break; case 314: - ChipLogProgress(chipTool, " ***** Test Step 314 : Write attribute NULLABLE_DOUBLE medium Value\n"); - err = TestWriteAttributeNullableDoubleMediumValue_314(); + ChipLogProgress(chipTool, " ***** Test Step 314 : Write attribute NULLABLE_SINGLE 0 Value\n"); + err = TestWriteAttributeNullableSingle0Value_314(); break; case 315: - ChipLogProgress(chipTool, " ***** Test Step 315 : Read attribute NULLABLE_DOUBLE medium Value\n"); - err = TestReadAttributeNullableDoubleMediumValue_315(); + ChipLogProgress(chipTool, " ***** Test Step 315 : Read attribute NULLABLE_SINGLE 0 Value\n"); + err = TestReadAttributeNullableSingle0Value_315(); break; case 316: - ChipLogProgress(chipTool, " ***** Test Step 316 : Write attribute NULLABLE_DOUBLE largest Value\n"); - err = TestWriteAttributeNullableDoubleLargestValue_316(); + ChipLogProgress(chipTool, " ***** Test Step 316 : Write attribute NULLABLE_DOUBLE medium Value\n"); + err = TestWriteAttributeNullableDoubleMediumValue_316(); break; case 317: - ChipLogProgress(chipTool, " ***** Test Step 317 : Read attribute NULLABLE_DOUBLE largest Value\n"); - err = TestReadAttributeNullableDoubleLargestValue_317(); + ChipLogProgress(chipTool, " ***** Test Step 317 : Read attribute NULLABLE_DOUBLE medium Value\n"); + err = TestReadAttributeNullableDoubleMediumValue_317(); break; case 318: - ChipLogProgress(chipTool, " ***** Test Step 318 : Write attribute NULLABLE_DOUBLE smallest Value\n"); - err = TestWriteAttributeNullableDoubleSmallestValue_318(); + ChipLogProgress(chipTool, " ***** Test Step 318 : Write attribute NULLABLE_DOUBLE largest Value\n"); + err = TestWriteAttributeNullableDoubleLargestValue_318(); break; case 319: - ChipLogProgress(chipTool, " ***** Test Step 319 : Read attribute NULLABLE_DOUBLE smallest Value\n"); - err = TestReadAttributeNullableDoubleSmallestValue_319(); + ChipLogProgress(chipTool, " ***** Test Step 319 : Read attribute NULLABLE_DOUBLE largest Value\n"); + err = TestReadAttributeNullableDoubleLargestValue_319(); break; case 320: - ChipLogProgress(chipTool, " ***** Test Step 320 : Write attribute NULLABLE_DOUBLE null Value\n"); - err = TestWriteAttributeNullableDoubleNullValue_320(); + ChipLogProgress(chipTool, " ***** Test Step 320 : Write attribute NULLABLE_DOUBLE smallest Value\n"); + err = TestWriteAttributeNullableDoubleSmallestValue_320(); break; case 321: - ChipLogProgress(chipTool, " ***** Test Step 321 : Read attribute NULLABLE_DOUBLE null Value\n"); - err = TestReadAttributeNullableDoubleNullValue_321(); + ChipLogProgress(chipTool, " ***** Test Step 321 : Read attribute NULLABLE_DOUBLE smallest Value\n"); + err = TestReadAttributeNullableDoubleSmallestValue_321(); break; case 322: - ChipLogProgress(chipTool, " ***** Test Step 322 : Write attribute NULLABLE_DOUBLE 0 Value\n"); - err = TestWriteAttributeNullableDouble0Value_322(); + ChipLogProgress(chipTool, " ***** Test Step 322 : Write attribute NULLABLE_DOUBLE null Value\n"); + err = TestWriteAttributeNullableDoubleNullValue_322(); break; case 323: - ChipLogProgress(chipTool, " ***** Test Step 323 : Read attribute NULLABLE_DOUBLE 0 Value\n"); - err = TestReadAttributeNullableDouble0Value_323(); + ChipLogProgress(chipTool, " ***** Test Step 323 : Read attribute NULLABLE_DOUBLE null Value\n"); + err = TestReadAttributeNullableDoubleNullValue_323(); break; case 324: - ChipLogProgress(chipTool, " ***** Test Step 324 : Write attribute NULLABLE_ENUM8 Min Value\n"); - err = TestWriteAttributeNullableEnum8MinValue_324(); + ChipLogProgress(chipTool, " ***** Test Step 324 : Write attribute NULLABLE_DOUBLE 0 Value\n"); + err = TestWriteAttributeNullableDouble0Value_324(); break; case 325: - ChipLogProgress(chipTool, " ***** Test Step 325 : Read attribute NULLABLE_ENUM8 Min Value\n"); - err = TestReadAttributeNullableEnum8MinValue_325(); + ChipLogProgress(chipTool, " ***** Test Step 325 : Read attribute NULLABLE_DOUBLE 0 Value\n"); + err = TestReadAttributeNullableDouble0Value_325(); break; case 326: - ChipLogProgress(chipTool, " ***** Test Step 326 : Write attribute NULLABLE_ENUM8 Max Value\n"); - err = TestWriteAttributeNullableEnum8MaxValue_326(); + ChipLogProgress(chipTool, " ***** Test Step 326 : Write attribute NULLABLE_ENUM8 Min Value\n"); + err = TestWriteAttributeNullableEnum8MinValue_326(); break; case 327: - ChipLogProgress(chipTool, " ***** Test Step 327 : Read attribute NULLABLE_ENUM8 Max Value\n"); - err = TestReadAttributeNullableEnum8MaxValue_327(); + ChipLogProgress(chipTool, " ***** Test Step 327 : Read attribute NULLABLE_ENUM8 Min Value\n"); + err = TestReadAttributeNullableEnum8MinValue_327(); break; case 328: - ChipLogProgress(chipTool, " ***** Test Step 328 : Write attribute NULLABLE_ENUM8 Invalid Value\n"); - err = TestWriteAttributeNullableEnum8InvalidValue_328(); + ChipLogProgress(chipTool, " ***** Test Step 328 : Write attribute NULLABLE_ENUM8 Max Value\n"); + err = TestWriteAttributeNullableEnum8MaxValue_328(); break; case 329: - ChipLogProgress(chipTool, " ***** Test Step 329 : Read attribute NULLABLE_ENUM8 unchanged Value\n"); - err = TestReadAttributeNullableEnum8UnchangedValue_329(); + ChipLogProgress(chipTool, " ***** Test Step 329 : Read attribute NULLABLE_ENUM8 Max Value\n"); + err = TestReadAttributeNullableEnum8MaxValue_329(); break; case 330: - ChipLogProgress(chipTool, " ***** Test Step 330 : Write attribute NULLABLE_ENUM8 null Value\n"); - err = TestWriteAttributeNullableEnum8NullValue_330(); + ChipLogProgress(chipTool, " ***** Test Step 330 : Write attribute NULLABLE_ENUM8 Invalid Value\n"); + err = TestWriteAttributeNullableEnum8InvalidValue_330(); break; case 331: - ChipLogProgress(chipTool, " ***** Test Step 331 : Read attribute NULLABLE_ENUM8 null Value\n"); - err = TestReadAttributeNullableEnum8NullValue_331(); + ChipLogProgress(chipTool, " ***** Test Step 331 : Read attribute NULLABLE_ENUM8 unchanged Value\n"); + err = TestReadAttributeNullableEnum8UnchangedValue_331(); break; case 332: - ChipLogProgress(chipTool, " ***** Test Step 332 : Write attribute NULLABLE_ENUM16 Min Value\n"); - err = TestWriteAttributeNullableEnum16MinValue_332(); + ChipLogProgress(chipTool, " ***** Test Step 332 : Write attribute NULLABLE_ENUM8 null Value\n"); + err = TestWriteAttributeNullableEnum8NullValue_332(); break; case 333: - ChipLogProgress(chipTool, " ***** Test Step 333 : Read attribute NULLABLE_ENUM16 Min Value\n"); - err = TestReadAttributeNullableEnum16MinValue_333(); + ChipLogProgress(chipTool, " ***** Test Step 333 : Read attribute NULLABLE_ENUM8 null Value\n"); + err = TestReadAttributeNullableEnum8NullValue_333(); break; case 334: - ChipLogProgress(chipTool, " ***** Test Step 334 : Write attribute NULLABLE_ENUM16 Max Value\n"); - err = TestWriteAttributeNullableEnum16MaxValue_334(); + ChipLogProgress(chipTool, " ***** Test Step 334 : Write attribute NULLABLE_ENUM16 Min Value\n"); + err = TestWriteAttributeNullableEnum16MinValue_334(); break; case 335: - ChipLogProgress(chipTool, " ***** Test Step 335 : Read attribute NULLABLE_ENUM16 Max Value\n"); - err = TestReadAttributeNullableEnum16MaxValue_335(); + ChipLogProgress(chipTool, " ***** Test Step 335 : Read attribute NULLABLE_ENUM16 Min Value\n"); + err = TestReadAttributeNullableEnum16MinValue_335(); break; case 336: - ChipLogProgress(chipTool, " ***** Test Step 336 : Write attribute NULLABLE_ENUM16 Invalid Value\n"); - err = TestWriteAttributeNullableEnum16InvalidValue_336(); + ChipLogProgress(chipTool, " ***** Test Step 336 : Write attribute NULLABLE_ENUM16 Max Value\n"); + err = TestWriteAttributeNullableEnum16MaxValue_336(); break; case 337: - ChipLogProgress(chipTool, " ***** Test Step 337 : Read attribute NULLABLE_ENUM16 unchanged Value\n"); - err = TestReadAttributeNullableEnum16UnchangedValue_337(); + ChipLogProgress(chipTool, " ***** Test Step 337 : Read attribute NULLABLE_ENUM16 Max Value\n"); + err = TestReadAttributeNullableEnum16MaxValue_337(); break; case 338: - ChipLogProgress(chipTool, " ***** Test Step 338 : Write attribute NULLABLE_ENUM16 null Value\n"); - err = TestWriteAttributeNullableEnum16NullValue_338(); + ChipLogProgress(chipTool, " ***** Test Step 338 : Write attribute NULLABLE_ENUM16 Invalid Value\n"); + err = TestWriteAttributeNullableEnum16InvalidValue_338(); break; case 339: - ChipLogProgress(chipTool, " ***** Test Step 339 : Read attribute NULLABLE_ENUM16 null Value\n"); - err = TestReadAttributeNullableEnum16NullValue_339(); + ChipLogProgress(chipTool, " ***** Test Step 339 : Read attribute NULLABLE_ENUM16 unchanged Value\n"); + err = TestReadAttributeNullableEnum16UnchangedValue_339(); break; case 340: - ChipLogProgress(chipTool, " ***** Test Step 340 : Write attribute NULLABLE_SIMPLE_ENUM Min Value\n"); - err = TestWriteAttributeNullableSimpleEnumMinValue_340(); + ChipLogProgress(chipTool, " ***** Test Step 340 : Write attribute NULLABLE_ENUM16 null Value\n"); + err = TestWriteAttributeNullableEnum16NullValue_340(); break; case 341: - ChipLogProgress(chipTool, " ***** Test Step 341 : Read attribute NULLABLE_SIMPLE_ENUM Min Value\n"); - err = TestReadAttributeNullableSimpleEnumMinValue_341(); + ChipLogProgress(chipTool, " ***** Test Step 341 : Read attribute NULLABLE_ENUM16 null Value\n"); + err = TestReadAttributeNullableEnum16NullValue_341(); break; case 342: - ChipLogProgress(chipTool, " ***** Test Step 342 : Write attribute NULLABLE_SIMPLE_ENUM Max Value\n"); - err = TestWriteAttributeNullableSimpleEnumMaxValue_342(); + ChipLogProgress(chipTool, " ***** Test Step 342 : Write attribute NULLABLE_SIMPLE_ENUM Min Value\n"); + err = TestWriteAttributeNullableSimpleEnumMinValue_342(); break; case 343: - ChipLogProgress(chipTool, " ***** Test Step 343 : Read attribute NULLABLE_SIMPLE_ENUM Max Value\n"); - err = TestReadAttributeNullableSimpleEnumMaxValue_343(); + ChipLogProgress(chipTool, " ***** Test Step 343 : Read attribute NULLABLE_SIMPLE_ENUM Min Value\n"); + err = TestReadAttributeNullableSimpleEnumMinValue_343(); break; case 344: - ChipLogProgress(chipTool, " ***** Test Step 344 : Write attribute NULLABLE_SIMPLE_ENUM Invalid Value\n"); - err = TestWriteAttributeNullableSimpleEnumInvalidValue_344(); + ChipLogProgress(chipTool, " ***** Test Step 344 : Write attribute NULLABLE_SIMPLE_ENUM Max Value\n"); + err = TestWriteAttributeNullableSimpleEnumMaxValue_344(); break; case 345: - ChipLogProgress(chipTool, " ***** Test Step 345 : Read attribute NULLABLE_SIMPLE_ENUM unchanged Value\n"); - err = TestReadAttributeNullableSimpleEnumUnchangedValue_345(); + ChipLogProgress(chipTool, " ***** Test Step 345 : Read attribute NULLABLE_SIMPLE_ENUM Max Value\n"); + err = TestReadAttributeNullableSimpleEnumMaxValue_345(); break; case 346: - ChipLogProgress(chipTool, " ***** Test Step 346 : Write attribute NULLABLE_SIMPLE_ENUM null Value\n"); - err = TestWriteAttributeNullableSimpleEnumNullValue_346(); + ChipLogProgress(chipTool, " ***** Test Step 346 : Write attribute NULLABLE_SIMPLE_ENUM Invalid Value\n"); + err = TestWriteAttributeNullableSimpleEnumInvalidValue_346(); break; case 347: - ChipLogProgress(chipTool, " ***** Test Step 347 : Read attribute NULLABLE_SIMPLE_ENUM null Value\n"); - err = TestReadAttributeNullableSimpleEnumNullValue_347(); + ChipLogProgress(chipTool, " ***** Test Step 347 : Read attribute NULLABLE_SIMPLE_ENUM unchanged Value\n"); + err = TestReadAttributeNullableSimpleEnumUnchangedValue_347(); break; case 348: - ChipLogProgress(chipTool, " ***** Test Step 348 : Read attribute NULLABLE_OCTET_STRING Default Value\n"); - err = TestReadAttributeNullableOctetStringDefaultValue_348(); + ChipLogProgress(chipTool, " ***** Test Step 348 : Write attribute NULLABLE_SIMPLE_ENUM null Value\n"); + err = TestWriteAttributeNullableSimpleEnumNullValue_348(); break; case 349: - ChipLogProgress(chipTool, " ***** Test Step 349 : Write attribute NULLABLE_OCTET_STRING\n"); - err = TestWriteAttributeNullableOctetString_349(); + ChipLogProgress(chipTool, " ***** Test Step 349 : Read attribute NULLABLE_SIMPLE_ENUM null Value\n"); + err = TestReadAttributeNullableSimpleEnumNullValue_349(); break; case 350: - ChipLogProgress(chipTool, " ***** Test Step 350 : Read attribute NULLABLE_OCTET_STRING\n"); - err = TestReadAttributeNullableOctetString_350(); + ChipLogProgress(chipTool, " ***** Test Step 350 : Read attribute NULLABLE_SIMPLE_ENUM not 254 Value\n"); + err = TestReadAttributeNullableSimpleEnumNot254Value_350(); break; case 351: - ChipLogProgress(chipTool, " ***** Test Step 351 : Write attribute NULLABLE_OCTET_STRING\n"); - err = TestWriteAttributeNullableOctetString_351(); + ChipLogProgress(chipTool, " ***** Test Step 351 : Read attribute NULLABLE_OCTET_STRING Default Value\n"); + err = TestReadAttributeNullableOctetStringDefaultValue_351(); break; case 352: - ChipLogProgress(chipTool, " ***** Test Step 352 : Read attribute NULLABLE_OCTET_STRING\n"); - err = TestReadAttributeNullableOctetString_352(); + ChipLogProgress(chipTool, " ***** Test Step 352 : Write attribute NULLABLE_OCTET_STRING\n"); + err = TestWriteAttributeNullableOctetString_352(); break; case 353: - ChipLogProgress(chipTool, " ***** Test Step 353 : Write attribute NULLABLE_OCTET_STRING\n"); - err = TestWriteAttributeNullableOctetString_353(); + ChipLogProgress(chipTool, " ***** Test Step 353 : Read attribute NULLABLE_OCTET_STRING\n"); + err = TestReadAttributeNullableOctetString_353(); break; case 354: - ChipLogProgress(chipTool, " ***** Test Step 354 : Read attribute NULLABLE_OCTET_STRING\n"); - err = TestReadAttributeNullableOctetString_354(); + ChipLogProgress(chipTool, " ***** Test Step 354 : Write attribute NULLABLE_OCTET_STRING\n"); + err = TestWriteAttributeNullableOctetString_354(); break; case 355: - ChipLogProgress(chipTool, " ***** Test Step 355 : Read attribute NULLABLE_CHAR_STRING Default Value\n"); - err = TestReadAttributeNullableCharStringDefaultValue_355(); + ChipLogProgress(chipTool, " ***** Test Step 355 : Read attribute NULLABLE_OCTET_STRING\n"); + err = TestReadAttributeNullableOctetString_355(); break; case 356: - ChipLogProgress(chipTool, " ***** Test Step 356 : Write attribute NULLABLE_CHAR_STRING\n"); - err = TestWriteAttributeNullableCharString_356(); + ChipLogProgress(chipTool, " ***** Test Step 356 : Write attribute NULLABLE_OCTET_STRING\n"); + err = TestWriteAttributeNullableOctetString_356(); break; case 357: - ChipLogProgress(chipTool, " ***** Test Step 357 : Read attribute NULLABLE_CHAR_STRING\n"); - err = TestReadAttributeNullableCharString_357(); + ChipLogProgress(chipTool, " ***** Test Step 357 : Read attribute NULLABLE_OCTET_STRING\n"); + err = TestReadAttributeNullableOctetString_357(); break; case 358: - ChipLogProgress(chipTool, " ***** Test Step 358 : Write attribute NULLABLE_CHAR_STRING - Value too long\n"); - err = TestWriteAttributeNullableCharStringValueTooLong_358(); + ChipLogProgress(chipTool, " ***** Test Step 358 : Read attribute NULLABLE_OCTET_STRING not TestValue\n"); + err = TestReadAttributeNullableOctetStringNotTestValue_358(); break; case 359: - ChipLogProgress(chipTool, " ***** Test Step 359 : Read attribute NULLABLE_CHAR_STRING\n"); - err = TestReadAttributeNullableCharString_359(); + ChipLogProgress(chipTool, " ***** Test Step 359 : Read attribute NULLABLE_CHAR_STRING Default Value\n"); + err = TestReadAttributeNullableCharStringDefaultValue_359(); break; case 360: - ChipLogProgress(chipTool, " ***** Test Step 360 : Write attribute NULLABLE_CHAR_STRING - Empty\n"); - err = TestWriteAttributeNullableCharStringEmpty_360(); + ChipLogProgress(chipTool, " ***** Test Step 360 : Write attribute NULLABLE_CHAR_STRING\n"); + err = TestWriteAttributeNullableCharString_360(); break; case 361: ChipLogProgress(chipTool, " ***** Test Step 361 : Read attribute NULLABLE_CHAR_STRING\n"); err = TestReadAttributeNullableCharString_361(); break; case 362: - ChipLogProgress(chipTool, " ***** Test Step 362 : Read attribute from nonexistent endpoint.\n"); - err = TestReadAttributeFromNonexistentEndpoint_362(); + ChipLogProgress(chipTool, " ***** Test Step 362 : Read attribute NULLABLE_CHAR_STRING\n"); + err = TestReadAttributeNullableCharString_362(); break; case 363: - ChipLogProgress(chipTool, " ***** Test Step 363 : Read attribute from nonexistent cluster.\n"); - err = TestReadAttributeFromNonexistentCluster_363(); + ChipLogProgress(chipTool, " ***** Test Step 363 : Write attribute NULLABLE_CHAR_STRING - Value too long\n"); + err = TestWriteAttributeNullableCharStringValueTooLong_363(); break; case 364: - ChipLogProgress( - chipTool, " ***** Test Step 364 : Send a command that takes an optional parameter but do not set it.\n"); - err = TestSendACommandThatTakesAnOptionalParameterButDoNotSetIt_364(); + ChipLogProgress(chipTool, " ***** Test Step 364 : Read attribute NULLABLE_CHAR_STRING\n"); + err = TestReadAttributeNullableCharString_364(); break; case 365: - ChipLogProgress( - chipTool, " ***** Test Step 365 : Send a command that takes an optional parameter but do not set it.\n"); - err = TestSendACommandThatTakesAnOptionalParameterButDoNotSetIt_365(); + ChipLogProgress(chipTool, " ***** Test Step 365 : Write attribute NULLABLE_CHAR_STRING - Empty\n"); + err = TestWriteAttributeNullableCharStringEmpty_365(); break; case 366: - ChipLogProgress(chipTool, " ***** Test Step 366 : Report: Subscribe to list attribute\n"); - err = TestReportSubscribeToListAttribute_366(); + ChipLogProgress(chipTool, " ***** Test Step 366 : Read attribute NULLABLE_CHAR_STRING\n"); + err = TestReadAttributeNullableCharString_366(); break; case 367: - ChipLogProgress(chipTool, " ***** Test Step 367 : Subscribe to list attribute\n"); - err = TestSubscribeToListAttribute_367(); + ChipLogProgress(chipTool, " ***** Test Step 367 : Read attribute NULLABLE_CHAR_STRING not ☉T☉\n"); + err = TestReadAttributeNullableCharStringNott_367(); break; case 368: - ChipLogProgress(chipTool, " ***** Test Step 368 : Write subscribed-to list attribute\n"); - err = TestWriteSubscribedToListAttribute_368(); + ChipLogProgress(chipTool, " ***** Test Step 368 : Read attribute from nonexistent endpoint.\n"); + err = TestReadAttributeFromNonexistentEndpoint_368(); break; case 369: - ChipLogProgress(chipTool, " ***** Test Step 369 : Check for list attribute report\n"); - err = TestCheckForListAttributeReport_369(); + ChipLogProgress(chipTool, " ***** Test Step 369 : Read attribute from nonexistent cluster.\n"); + err = TestReadAttributeFromNonexistentCluster_369(); break; case 370: - ChipLogProgress(chipTool, " ***** Test Step 370 : Read range-restricted unsigned 8-bit integer\n"); - err = TestReadRangeRestrictedUnsigned8BitInteger_370(); + ChipLogProgress( + chipTool, " ***** Test Step 370 : Send a command that takes an optional parameter but do not set it.\n"); + err = TestSendACommandThatTakesAnOptionalParameterButDoNotSetIt_370(); break; case 371: - ChipLogProgress(chipTool, " ***** Test Step 371 : Write min value to a range-restricted unsigned 8-bit integer\n"); - err = TestWriteMinValueToARangeRestrictedUnsigned8BitInteger_371(); + ChipLogProgress( + chipTool, " ***** Test Step 371 : Send a command that takes an optional parameter but do not set it.\n"); + err = TestSendACommandThatTakesAnOptionalParameterButDoNotSetIt_371(); break; case 372: - ChipLogProgress( - chipTool, " ***** Test Step 372 : Write just-below-range value to a range-restricted unsigned 8-bit integer\n"); - err = TestWriteJustBelowRangeValueToARangeRestrictedUnsigned8BitInteger_372(); + ChipLogProgress(chipTool, " ***** Test Step 372 : Report: Subscribe to list attribute\n"); + err = TestReportSubscribeToListAttribute_372(); break; case 373: - ChipLogProgress( - chipTool, " ***** Test Step 373 : Write just-above-range value to a range-restricted unsigned 8-bit integer\n"); - err = TestWriteJustAboveRangeValueToARangeRestrictedUnsigned8BitInteger_373(); + ChipLogProgress(chipTool, " ***** Test Step 373 : Subscribe to list attribute\n"); + err = TestSubscribeToListAttribute_373(); break; case 374: - ChipLogProgress(chipTool, " ***** Test Step 374 : Write max value to a range-restricted unsigned 8-bit integer\n"); - err = TestWriteMaxValueToARangeRestrictedUnsigned8BitInteger_374(); + ChipLogProgress(chipTool, " ***** Test Step 374 : Write subscribed-to list attribute\n"); + err = TestWriteSubscribedToListAttribute_374(); break; case 375: - ChipLogProgress( - chipTool, " ***** Test Step 375 : Verify range-restricted unsigned 8-bit integer value has not changed\n"); - err = TestVerifyRangeRestrictedUnsigned8BitIntegerValueHasNotChanged_375(); + ChipLogProgress(chipTool, " ***** Test Step 375 : Check for list attribute report\n"); + err = TestCheckForListAttributeReport_375(); break; case 376: - ChipLogProgress( - chipTool, " ***** Test Step 376 : Write min valid value to a range-restricted unsigned 8-bit integer\n"); - err = TestWriteMinValidValueToARangeRestrictedUnsigned8BitInteger_376(); + ChipLogProgress(chipTool, " ***** Test Step 376 : Read range-restricted unsigned 8-bit integer\n"); + err = TestReadRangeRestrictedUnsigned8BitInteger_376(); break; case 377: - ChipLogProgress( - chipTool, " ***** Test Step 377 : Verify range-restricted unsigned 8-bit integer value is at min valid\n"); - err = TestVerifyRangeRestrictedUnsigned8BitIntegerValueIsAtMinValid_377(); + ChipLogProgress(chipTool, " ***** Test Step 377 : Write min value to a range-restricted unsigned 8-bit integer\n"); + err = TestWriteMinValueToARangeRestrictedUnsigned8BitInteger_377(); break; case 378: ChipLogProgress( - chipTool, " ***** Test Step 378 : Write max valid value to a range-restricted unsigned 8-bit integer\n"); - err = TestWriteMaxValidValueToARangeRestrictedUnsigned8BitInteger_378(); + chipTool, " ***** Test Step 378 : Write just-below-range value to a range-restricted unsigned 8-bit integer\n"); + err = TestWriteJustBelowRangeValueToARangeRestrictedUnsigned8BitInteger_378(); break; case 379: ChipLogProgress( - chipTool, " ***** Test Step 379 : Verify range-restricted unsigned 8-bit integer value is at max valid\n"); - err = TestVerifyRangeRestrictedUnsigned8BitIntegerValueIsAtMaxValid_379(); + chipTool, " ***** Test Step 379 : Write just-above-range value to a range-restricted unsigned 8-bit integer\n"); + err = TestWriteJustAboveRangeValueToARangeRestrictedUnsigned8BitInteger_379(); break; case 380: - ChipLogProgress( - chipTool, " ***** Test Step 380 : Write middle valid value to a range-restricted unsigned 8-bit integer\n"); - err = TestWriteMiddleValidValueToARangeRestrictedUnsigned8BitInteger_380(); + ChipLogProgress(chipTool, " ***** Test Step 380 : Write max value to a range-restricted unsigned 8-bit integer\n"); + err = TestWriteMaxValueToARangeRestrictedUnsigned8BitInteger_380(); break; case 381: ChipLogProgress( - chipTool, " ***** Test Step 381 : Verify range-restricted unsigned 8-bit integer value is at mid valid\n"); - err = TestVerifyRangeRestrictedUnsigned8BitIntegerValueIsAtMidValid_381(); + chipTool, " ***** Test Step 381 : Verify range-restricted unsigned 8-bit integer value has not changed\n"); + err = TestVerifyRangeRestrictedUnsigned8BitIntegerValueHasNotChanged_381(); break; case 382: - ChipLogProgress(chipTool, " ***** Test Step 382 : Read range-restricted unsigned 16-bit integer\n"); - err = TestReadRangeRestrictedUnsigned16BitInteger_382(); + ChipLogProgress( + chipTool, " ***** Test Step 382 : Write min valid value to a range-restricted unsigned 8-bit integer\n"); + err = TestWriteMinValidValueToARangeRestrictedUnsigned8BitInteger_382(); break; case 383: - ChipLogProgress(chipTool, " ***** Test Step 383 : Write min value to a range-restricted unsigned 16-bit integer\n"); - err = TestWriteMinValueToARangeRestrictedUnsigned16BitInteger_383(); + ChipLogProgress( + chipTool, " ***** Test Step 383 : Verify range-restricted unsigned 8-bit integer value is at min valid\n"); + err = TestVerifyRangeRestrictedUnsigned8BitIntegerValueIsAtMinValid_383(); break; case 384: ChipLogProgress( - chipTool, " ***** Test Step 384 : Write just-below-range value to a range-restricted unsigned 16-bit integer\n"); - err = TestWriteJustBelowRangeValueToARangeRestrictedUnsigned16BitInteger_384(); + chipTool, " ***** Test Step 384 : Write max valid value to a range-restricted unsigned 8-bit integer\n"); + err = TestWriteMaxValidValueToARangeRestrictedUnsigned8BitInteger_384(); break; case 385: ChipLogProgress( - chipTool, " ***** Test Step 385 : Write just-above-range value to a range-restricted unsigned 16-bit integer\n"); - err = TestWriteJustAboveRangeValueToARangeRestrictedUnsigned16BitInteger_385(); + chipTool, " ***** Test Step 385 : Verify range-restricted unsigned 8-bit integer value is at max valid\n"); + err = TestVerifyRangeRestrictedUnsigned8BitIntegerValueIsAtMaxValid_385(); break; case 386: - ChipLogProgress(chipTool, " ***** Test Step 386 : Write max value to a range-restricted unsigned 16-bit integer\n"); - err = TestWriteMaxValueToARangeRestrictedUnsigned16BitInteger_386(); + ChipLogProgress( + chipTool, " ***** Test Step 386 : Write middle valid value to a range-restricted unsigned 8-bit integer\n"); + err = TestWriteMiddleValidValueToARangeRestrictedUnsigned8BitInteger_386(); break; case 387: ChipLogProgress( - chipTool, " ***** Test Step 387 : Verify range-restricted unsigned 16-bit integer value has not changed\n"); - err = TestVerifyRangeRestrictedUnsigned16BitIntegerValueHasNotChanged_387(); + chipTool, " ***** Test Step 387 : Verify range-restricted unsigned 8-bit integer value is at mid valid\n"); + err = TestVerifyRangeRestrictedUnsigned8BitIntegerValueIsAtMidValid_387(); break; case 388: - ChipLogProgress( - chipTool, " ***** Test Step 388 : Write min valid value to a range-restricted unsigned 16-bit integer\n"); - err = TestWriteMinValidValueToARangeRestrictedUnsigned16BitInteger_388(); + ChipLogProgress(chipTool, " ***** Test Step 388 : Read range-restricted unsigned 16-bit integer\n"); + err = TestReadRangeRestrictedUnsigned16BitInteger_388(); break; case 389: - ChipLogProgress( - chipTool, " ***** Test Step 389 : Verify range-restricted unsigned 16-bit integer value is at min valid\n"); - err = TestVerifyRangeRestrictedUnsigned16BitIntegerValueIsAtMinValid_389(); + ChipLogProgress(chipTool, " ***** Test Step 389 : Write min value to a range-restricted unsigned 16-bit integer\n"); + err = TestWriteMinValueToARangeRestrictedUnsigned16BitInteger_389(); break; case 390: ChipLogProgress( - chipTool, " ***** Test Step 390 : Write max valid value to a range-restricted unsigned 16-bit integer\n"); - err = TestWriteMaxValidValueToARangeRestrictedUnsigned16BitInteger_390(); + chipTool, " ***** Test Step 390 : Write just-below-range value to a range-restricted unsigned 16-bit integer\n"); + err = TestWriteJustBelowRangeValueToARangeRestrictedUnsigned16BitInteger_390(); break; case 391: ChipLogProgress( - chipTool, " ***** Test Step 391 : Verify range-restricted unsigned 16-bit integer value is at max valid\n"); - err = TestVerifyRangeRestrictedUnsigned16BitIntegerValueIsAtMaxValid_391(); + chipTool, " ***** Test Step 391 : Write just-above-range value to a range-restricted unsigned 16-bit integer\n"); + err = TestWriteJustAboveRangeValueToARangeRestrictedUnsigned16BitInteger_391(); break; case 392: - ChipLogProgress( - chipTool, " ***** Test Step 392 : Write middle valid value to a range-restricted unsigned 16-bit integer\n"); - err = TestWriteMiddleValidValueToARangeRestrictedUnsigned16BitInteger_392(); + ChipLogProgress(chipTool, " ***** Test Step 392 : Write max value to a range-restricted unsigned 16-bit integer\n"); + err = TestWriteMaxValueToARangeRestrictedUnsigned16BitInteger_392(); break; case 393: ChipLogProgress( - chipTool, " ***** Test Step 393 : Verify range-restricted unsigned 16-bit integer value is at mid valid\n"); - err = TestVerifyRangeRestrictedUnsigned16BitIntegerValueIsAtMidValid_393(); + chipTool, " ***** Test Step 393 : Verify range-restricted unsigned 16-bit integer value has not changed\n"); + err = TestVerifyRangeRestrictedUnsigned16BitIntegerValueHasNotChanged_393(); break; case 394: - ChipLogProgress(chipTool, " ***** Test Step 394 : Read range-restricted signed 8-bit integer\n"); - err = TestReadRangeRestrictedSigned8BitInteger_394(); + ChipLogProgress( + chipTool, " ***** Test Step 394 : Write min valid value to a range-restricted unsigned 16-bit integer\n"); + err = TestWriteMinValidValueToARangeRestrictedUnsigned16BitInteger_394(); break; case 395: - ChipLogProgress(chipTool, " ***** Test Step 395 : Write min value to a range-restricted signed 8-bit integer\n"); - err = TestWriteMinValueToARangeRestrictedSigned8BitInteger_395(); + ChipLogProgress( + chipTool, " ***** Test Step 395 : Verify range-restricted unsigned 16-bit integer value is at min valid\n"); + err = TestVerifyRangeRestrictedUnsigned16BitIntegerValueIsAtMinValid_395(); break; case 396: ChipLogProgress( - chipTool, " ***** Test Step 396 : Write just-below-range value to a range-restricted signed 8-bit integer\n"); - err = TestWriteJustBelowRangeValueToARangeRestrictedSigned8BitInteger_396(); + chipTool, " ***** Test Step 396 : Write max valid value to a range-restricted unsigned 16-bit integer\n"); + err = TestWriteMaxValidValueToARangeRestrictedUnsigned16BitInteger_396(); break; case 397: ChipLogProgress( - chipTool, " ***** Test Step 397 : Write just-above-range value to a range-restricted signed 8-bit integer\n"); - err = TestWriteJustAboveRangeValueToARangeRestrictedSigned8BitInteger_397(); + chipTool, " ***** Test Step 397 : Verify range-restricted unsigned 16-bit integer value is at max valid\n"); + err = TestVerifyRangeRestrictedUnsigned16BitIntegerValueIsAtMaxValid_397(); break; case 398: - ChipLogProgress(chipTool, " ***** Test Step 398 : Write max value to a range-restricted signed 8-bit integer\n"); - err = TestWriteMaxValueToARangeRestrictedSigned8BitInteger_398(); + ChipLogProgress( + chipTool, " ***** Test Step 398 : Write middle valid value to a range-restricted unsigned 16-bit integer\n"); + err = TestWriteMiddleValidValueToARangeRestrictedUnsigned16BitInteger_398(); break; case 399: ChipLogProgress( - chipTool, " ***** Test Step 399 : Verify range-restricted signed 8-bit integer value has not changed\n"); - err = TestVerifyRangeRestrictedSigned8BitIntegerValueHasNotChanged_399(); + chipTool, " ***** Test Step 399 : Verify range-restricted unsigned 16-bit integer value is at mid valid\n"); + err = TestVerifyRangeRestrictedUnsigned16BitIntegerValueIsAtMidValid_399(); break; case 400: - ChipLogProgress(chipTool, " ***** Test Step 400 : Write min valid value to a range-restricted signed 8-bit integer\n"); - err = TestWriteMinValidValueToARangeRestrictedSigned8BitInteger_400(); + ChipLogProgress(chipTool, " ***** Test Step 400 : Read range-restricted signed 8-bit integer\n"); + err = TestReadRangeRestrictedSigned8BitInteger_400(); break; case 401: - ChipLogProgress( - chipTool, " ***** Test Step 401 : Verify range-restricted signed 8-bit integer value is at min valid\n"); - err = TestVerifyRangeRestrictedSigned8BitIntegerValueIsAtMinValid_401(); + ChipLogProgress(chipTool, " ***** Test Step 401 : Write min value to a range-restricted signed 8-bit integer\n"); + err = TestWriteMinValueToARangeRestrictedSigned8BitInteger_401(); break; case 402: - ChipLogProgress(chipTool, " ***** Test Step 402 : Write max valid value to a range-restricted signed 8-bit integer\n"); - err = TestWriteMaxValidValueToARangeRestrictedSigned8BitInteger_402(); + ChipLogProgress( + chipTool, " ***** Test Step 402 : Write just-below-range value to a range-restricted signed 8-bit integer\n"); + err = TestWriteJustBelowRangeValueToARangeRestrictedSigned8BitInteger_402(); break; case 403: ChipLogProgress( - chipTool, " ***** Test Step 403 : Verify range-restricted signed 8-bit integer value is at max valid\n"); - err = TestVerifyRangeRestrictedSigned8BitIntegerValueIsAtMaxValid_403(); + chipTool, " ***** Test Step 403 : Write just-above-range value to a range-restricted signed 8-bit integer\n"); + err = TestWriteJustAboveRangeValueToARangeRestrictedSigned8BitInteger_403(); break; case 404: - ChipLogProgress( - chipTool, " ***** Test Step 404 : Write middle valid value to a range-restricted signed 8-bit integer\n"); - err = TestWriteMiddleValidValueToARangeRestrictedSigned8BitInteger_404(); + ChipLogProgress(chipTool, " ***** Test Step 404 : Write max value to a range-restricted signed 8-bit integer\n"); + err = TestWriteMaxValueToARangeRestrictedSigned8BitInteger_404(); break; case 405: ChipLogProgress( - chipTool, " ***** Test Step 405 : Verify range-restricted signed 8-bit integer value is at mid valid\n"); - err = TestVerifyRangeRestrictedSigned8BitIntegerValueIsAtMidValid_405(); + chipTool, " ***** Test Step 405 : Verify range-restricted signed 8-bit integer value has not changed\n"); + err = TestVerifyRangeRestrictedSigned8BitIntegerValueHasNotChanged_405(); break; case 406: - ChipLogProgress(chipTool, " ***** Test Step 406 : Read range-restricted signed 16-bit integer\n"); - err = TestReadRangeRestrictedSigned16BitInteger_406(); + ChipLogProgress(chipTool, " ***** Test Step 406 : Write min valid value to a range-restricted signed 8-bit integer\n"); + err = TestWriteMinValidValueToARangeRestrictedSigned8BitInteger_406(); break; case 407: - ChipLogProgress(chipTool, " ***** Test Step 407 : Write min value to a range-restricted signed 16-bit integer\n"); - err = TestWriteMinValueToARangeRestrictedSigned16BitInteger_407(); + ChipLogProgress( + chipTool, " ***** Test Step 407 : Verify range-restricted signed 8-bit integer value is at min valid\n"); + err = TestVerifyRangeRestrictedSigned8BitIntegerValueIsAtMinValid_407(); break; case 408: - ChipLogProgress( - chipTool, " ***** Test Step 408 : Write just-below-range value to a range-restricted signed 16-bit integer\n"); - err = TestWriteJustBelowRangeValueToARangeRestrictedSigned16BitInteger_408(); + ChipLogProgress(chipTool, " ***** Test Step 408 : Write max valid value to a range-restricted signed 8-bit integer\n"); + err = TestWriteMaxValidValueToARangeRestrictedSigned8BitInteger_408(); break; case 409: ChipLogProgress( - chipTool, " ***** Test Step 409 : Write just-above-range value to a range-restricted signed 16-bit integer\n"); - err = TestWriteJustAboveRangeValueToARangeRestrictedSigned16BitInteger_409(); + chipTool, " ***** Test Step 409 : Verify range-restricted signed 8-bit integer value is at max valid\n"); + err = TestVerifyRangeRestrictedSigned8BitIntegerValueIsAtMaxValid_409(); break; case 410: - ChipLogProgress(chipTool, " ***** Test Step 410 : Write max value to a range-restricted signed 16-bit integer\n"); - err = TestWriteMaxValueToARangeRestrictedSigned16BitInteger_410(); + ChipLogProgress( + chipTool, " ***** Test Step 410 : Write middle valid value to a range-restricted signed 8-bit integer\n"); + err = TestWriteMiddleValidValueToARangeRestrictedSigned8BitInteger_410(); break; case 411: ChipLogProgress( - chipTool, " ***** Test Step 411 : Verify range-restricted signed 16-bit integer value has not changed\n"); - err = TestVerifyRangeRestrictedSigned16BitIntegerValueHasNotChanged_411(); + chipTool, " ***** Test Step 411 : Verify range-restricted signed 8-bit integer value is at mid valid\n"); + err = TestVerifyRangeRestrictedSigned8BitIntegerValueIsAtMidValid_411(); break; case 412: - ChipLogProgress(chipTool, " ***** Test Step 412 : Write min valid value to a range-restricted signed 16-bit integer\n"); - err = TestWriteMinValidValueToARangeRestrictedSigned16BitInteger_412(); + ChipLogProgress(chipTool, " ***** Test Step 412 : Read range-restricted signed 16-bit integer\n"); + err = TestReadRangeRestrictedSigned16BitInteger_412(); break; case 413: - ChipLogProgress( - chipTool, " ***** Test Step 413 : Verify range-restricted signed 16-bit integer value is at min valid\n"); - err = TestVerifyRangeRestrictedSigned16BitIntegerValueIsAtMinValid_413(); + ChipLogProgress(chipTool, " ***** Test Step 413 : Write min value to a range-restricted signed 16-bit integer\n"); + err = TestWriteMinValueToARangeRestrictedSigned16BitInteger_413(); break; case 414: - ChipLogProgress(chipTool, " ***** Test Step 414 : Write max valid value to a range-restricted signed 16-bit integer\n"); - err = TestWriteMaxValidValueToARangeRestrictedSigned16BitInteger_414(); + ChipLogProgress( + chipTool, " ***** Test Step 414 : Write just-below-range value to a range-restricted signed 16-bit integer\n"); + err = TestWriteJustBelowRangeValueToARangeRestrictedSigned16BitInteger_414(); break; case 415: ChipLogProgress( - chipTool, " ***** Test Step 415 : Verify range-restricted signed 16-bit integer value is at max valid\n"); - err = TestVerifyRangeRestrictedSigned16BitIntegerValueIsAtMaxValid_415(); + chipTool, " ***** Test Step 415 : Write just-above-range value to a range-restricted signed 16-bit integer\n"); + err = TestWriteJustAboveRangeValueToARangeRestrictedSigned16BitInteger_415(); break; case 416: - ChipLogProgress( - chipTool, " ***** Test Step 416 : Write middle valid value to a range-restricted signed 16-bit integer\n"); - err = TestWriteMiddleValidValueToARangeRestrictedSigned16BitInteger_416(); + ChipLogProgress(chipTool, " ***** Test Step 416 : Write max value to a range-restricted signed 16-bit integer\n"); + err = TestWriteMaxValueToARangeRestrictedSigned16BitInteger_416(); break; case 417: ChipLogProgress( - chipTool, " ***** Test Step 417 : Verify range-restricted signed 16-bit integer value is at mid valid\n"); - err = TestVerifyRangeRestrictedSigned16BitIntegerValueIsAtMidValid_417(); + chipTool, " ***** Test Step 417 : Verify range-restricted signed 16-bit integer value has not changed\n"); + err = TestVerifyRangeRestrictedSigned16BitIntegerValueHasNotChanged_417(); break; case 418: - ChipLogProgress(chipTool, " ***** Test Step 418 : Read nullable range-restricted unsigned 8-bit integer\n"); - err = TestReadNullableRangeRestrictedUnsigned8BitInteger_418(); + ChipLogProgress(chipTool, " ***** Test Step 418 : Write min valid value to a range-restricted signed 16-bit integer\n"); + err = TestWriteMinValidValueToARangeRestrictedSigned16BitInteger_418(); break; case 419: ChipLogProgress( - chipTool, " ***** Test Step 419 : Write min value to a nullable range-restricted unsigned 8-bit integer\n"); - err = TestWriteMinValueToANullableRangeRestrictedUnsigned8BitInteger_419(); + chipTool, " ***** Test Step 419 : Verify range-restricted signed 16-bit integer value is at min valid\n"); + err = TestVerifyRangeRestrictedSigned16BitIntegerValueIsAtMinValid_419(); break; case 420: - ChipLogProgress(chipTool, - " ***** Test Step 420 : Write just-below-range value to a nullable range-restricted unsigned 8-bit integer\n"); - err = TestWriteJustBelowRangeValueToANullableRangeRestrictedUnsigned8BitInteger_420(); + ChipLogProgress(chipTool, " ***** Test Step 420 : Write max valid value to a range-restricted signed 16-bit integer\n"); + err = TestWriteMaxValidValueToARangeRestrictedSigned16BitInteger_420(); break; case 421: - ChipLogProgress(chipTool, - " ***** Test Step 421 : Write just-above-range value to a nullable range-restricted unsigned 8-bit integer\n"); - err = TestWriteJustAboveRangeValueToANullableRangeRestrictedUnsigned8BitInteger_421(); + ChipLogProgress( + chipTool, " ***** Test Step 421 : Verify range-restricted signed 16-bit integer value is at max valid\n"); + err = TestVerifyRangeRestrictedSigned16BitIntegerValueIsAtMaxValid_421(); break; case 422: ChipLogProgress( - chipTool, " ***** Test Step 422 : Write max value to a nullable range-restricted unsigned 8-bit integer\n"); - err = TestWriteMaxValueToANullableRangeRestrictedUnsigned8BitInteger_422(); + chipTool, " ***** Test Step 422 : Write middle valid value to a range-restricted signed 16-bit integer\n"); + err = TestWriteMiddleValidValueToARangeRestrictedSigned16BitInteger_422(); break; case 423: ChipLogProgress( - chipTool, " ***** Test Step 423 : Verify nullable range-restricted unsigned 8-bit integer value has not changed\n"); - err = TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueHasNotChanged_423(); + chipTool, " ***** Test Step 423 : Verify range-restricted signed 16-bit integer value is at mid valid\n"); + err = TestVerifyRangeRestrictedSigned16BitIntegerValueIsAtMidValid_423(); break; case 424: - ChipLogProgress( - chipTool, " ***** Test Step 424 : Write min valid value to a nullable range-restricted unsigned 8-bit integer\n"); - err = TestWriteMinValidValueToANullableRangeRestrictedUnsigned8BitInteger_424(); + ChipLogProgress(chipTool, " ***** Test Step 424 : Read nullable range-restricted unsigned 8-bit integer\n"); + err = TestReadNullableRangeRestrictedUnsigned8BitInteger_424(); break; case 425: ChipLogProgress( - chipTool, " ***** Test Step 425 : Verify nullable range-restricted unsigned 8-bit integer value is at min valid\n"); - err = TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueIsAtMinValid_425(); + chipTool, " ***** Test Step 425 : Write min value to a nullable range-restricted unsigned 8-bit integer\n"); + err = TestWriteMinValueToANullableRangeRestrictedUnsigned8BitInteger_425(); break; case 426: - ChipLogProgress( - chipTool, " ***** Test Step 426 : Write max valid value to a nullable range-restricted unsigned 8-bit integer\n"); - err = TestWriteMaxValidValueToANullableRangeRestrictedUnsigned8BitInteger_426(); + ChipLogProgress(chipTool, + " ***** Test Step 426 : Write just-below-range value to a nullable range-restricted unsigned 8-bit integer\n"); + err = TestWriteJustBelowRangeValueToANullableRangeRestrictedUnsigned8BitInteger_426(); break; case 427: - ChipLogProgress( - chipTool, " ***** Test Step 427 : Verify nullable range-restricted unsigned 8-bit integer value is at max valid\n"); - err = TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueIsAtMaxValid_427(); + ChipLogProgress(chipTool, + " ***** Test Step 427 : Write just-above-range value to a nullable range-restricted unsigned 8-bit integer\n"); + err = TestWriteJustAboveRangeValueToANullableRangeRestrictedUnsigned8BitInteger_427(); break; case 428: - ChipLogProgress(chipTool, - " ***** Test Step 428 : Write middle valid value to a nullable range-restricted unsigned 8-bit integer\n"); - err = TestWriteMiddleValidValueToANullableRangeRestrictedUnsigned8BitInteger_428(); + ChipLogProgress( + chipTool, " ***** Test Step 428 : Write max value to a nullable range-restricted unsigned 8-bit integer\n"); + err = TestWriteMaxValueToANullableRangeRestrictedUnsigned8BitInteger_428(); break; case 429: ChipLogProgress( - chipTool, " ***** Test Step 429 : Verify nullable range-restricted unsigned 8-bit integer value is at mid valid\n"); - err = TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueIsAtMidValid_429(); + chipTool, " ***** Test Step 429 : Verify nullable range-restricted unsigned 8-bit integer value has not changed\n"); + err = TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueHasNotChanged_429(); break; case 430: ChipLogProgress( - chipTool, " ***** Test Step 430 : Write null value to a nullable range-restricted unsigned 8-bit integer\n"); - err = TestWriteNullValueToANullableRangeRestrictedUnsigned8BitInteger_430(); + chipTool, " ***** Test Step 430 : Write min valid value to a nullable range-restricted unsigned 8-bit integer\n"); + err = TestWriteMinValidValueToANullableRangeRestrictedUnsigned8BitInteger_430(); break; case 431: ChipLogProgress( - chipTool, " ***** Test Step 431 : Verify nullable range-restricted unsigned 8-bit integer value is null\n"); - err = TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueIsNull_431(); + chipTool, " ***** Test Step 431 : Verify nullable range-restricted unsigned 8-bit integer value is at min valid\n"); + err = TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueIsAtMinValid_431(); break; case 432: - ChipLogProgress(chipTool, " ***** Test Step 432 : Read nullable range-restricted unsigned 16-bit integer\n"); - err = TestReadNullableRangeRestrictedUnsigned16BitInteger_432(); + ChipLogProgress( + chipTool, " ***** Test Step 432 : Write max valid value to a nullable range-restricted unsigned 8-bit integer\n"); + err = TestWriteMaxValidValueToANullableRangeRestrictedUnsigned8BitInteger_432(); break; case 433: ChipLogProgress( - chipTool, " ***** Test Step 433 : Write min value to a nullable range-restricted unsigned 16-bit integer\n"); - err = TestWriteMinValueToANullableRangeRestrictedUnsigned16BitInteger_433(); + chipTool, " ***** Test Step 433 : Verify nullable range-restricted unsigned 8-bit integer value is at max valid\n"); + err = TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueIsAtMaxValid_433(); break; case 434: ChipLogProgress(chipTool, - " ***** Test Step 434 : Write just-below-range value to a nullable range-restricted unsigned 16-bit integer\n"); - err = TestWriteJustBelowRangeValueToANullableRangeRestrictedUnsigned16BitInteger_434(); + " ***** Test Step 434 : Write middle valid value to a nullable range-restricted unsigned 8-bit integer\n"); + err = TestWriteMiddleValidValueToANullableRangeRestrictedUnsigned8BitInteger_434(); break; case 435: - ChipLogProgress(chipTool, - " ***** Test Step 435 : Write just-above-range value to a nullable range-restricted unsigned 16-bit integer\n"); - err = TestWriteJustAboveRangeValueToANullableRangeRestrictedUnsigned16BitInteger_435(); + ChipLogProgress( + chipTool, " ***** Test Step 435 : Verify nullable range-restricted unsigned 8-bit integer value is at mid valid\n"); + err = TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueIsAtMidValid_435(); break; case 436: ChipLogProgress( - chipTool, " ***** Test Step 436 : Write max value to a nullable range-restricted unsigned 16-bit integer\n"); - err = TestWriteMaxValueToANullableRangeRestrictedUnsigned16BitInteger_436(); + chipTool, " ***** Test Step 436 : Write null value to a nullable range-restricted unsigned 8-bit integer\n"); + err = TestWriteNullValueToANullableRangeRestrictedUnsigned8BitInteger_436(); break; case 437: - ChipLogProgress(chipTool, - " ***** Test Step 437 : Verify nullable range-restricted unsigned 16-bit integer value has not changed\n"); - err = TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueHasNotChanged_437(); + ChipLogProgress( + chipTool, " ***** Test Step 437 : Verify nullable range-restricted unsigned 8-bit integer value is null\n"); + err = TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueIsNull_437(); break; case 438: - ChipLogProgress( - chipTool, " ***** Test Step 438 : Write min valid value to a nullable range-restricted unsigned 16-bit integer\n"); - err = TestWriteMinValidValueToANullableRangeRestrictedUnsigned16BitInteger_438(); + ChipLogProgress(chipTool, " ***** Test Step 438 : Read nullable range-restricted unsigned 16-bit integer\n"); + err = TestReadNullableRangeRestrictedUnsigned16BitInteger_438(); break; case 439: - ChipLogProgress(chipTool, - " ***** Test Step 439 : Verify nullable range-restricted unsigned 16-bit integer value is at min valid\n"); - err = TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueIsAtMinValid_439(); + ChipLogProgress( + chipTool, " ***** Test Step 439 : Write min value to a nullable range-restricted unsigned 16-bit integer\n"); + err = TestWriteMinValueToANullableRangeRestrictedUnsigned16BitInteger_439(); break; case 440: - ChipLogProgress( - chipTool, " ***** Test Step 440 : Write max valid value to a nullable range-restricted unsigned 16-bit integer\n"); - err = TestWriteMaxValidValueToANullableRangeRestrictedUnsigned16BitInteger_440(); + ChipLogProgress(chipTool, + " ***** Test Step 440 : Write just-below-range value to a nullable range-restricted unsigned 16-bit integer\n"); + err = TestWriteJustBelowRangeValueToANullableRangeRestrictedUnsigned16BitInteger_440(); break; case 441: ChipLogProgress(chipTool, - " ***** Test Step 441 : Verify nullable range-restricted unsigned 16-bit integer value is at max valid\n"); - err = TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueIsAtMaxValid_441(); + " ***** Test Step 441 : Write just-above-range value to a nullable range-restricted unsigned 16-bit integer\n"); + err = TestWriteJustAboveRangeValueToANullableRangeRestrictedUnsigned16BitInteger_441(); break; case 442: - ChipLogProgress(chipTool, - " ***** Test Step 442 : Write middle valid value to a nullable range-restricted unsigned 16-bit integer\n"); - err = TestWriteMiddleValidValueToANullableRangeRestrictedUnsigned16BitInteger_442(); + ChipLogProgress( + chipTool, " ***** Test Step 442 : Write max value to a nullable range-restricted unsigned 16-bit integer\n"); + err = TestWriteMaxValueToANullableRangeRestrictedUnsigned16BitInteger_442(); break; case 443: ChipLogProgress(chipTool, - " ***** Test Step 443 : Verify nullable range-restricted unsigned 16-bit integer value is at mid valid\n"); - err = TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueIsAtMidValid_443(); + " ***** Test Step 443 : Verify nullable range-restricted unsigned 16-bit integer value has not changed\n"); + err = TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueHasNotChanged_443(); break; case 444: ChipLogProgress( - chipTool, " ***** Test Step 444 : Write null value to a nullable range-restricted unsigned 16-bit integer\n"); - err = TestWriteNullValueToANullableRangeRestrictedUnsigned16BitInteger_444(); + chipTool, " ***** Test Step 444 : Write min valid value to a nullable range-restricted unsigned 16-bit integer\n"); + err = TestWriteMinValidValueToANullableRangeRestrictedUnsigned16BitInteger_444(); break; case 445: - ChipLogProgress( - chipTool, " ***** Test Step 445 : Verify nullable range-restricted unsigned 16-bit integer value is null\n"); - err = TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueIsNull_445(); + ChipLogProgress(chipTool, + " ***** Test Step 445 : Verify nullable range-restricted unsigned 16-bit integer value is at min valid\n"); + err = TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueIsAtMinValid_445(); break; case 446: - ChipLogProgress(chipTool, " ***** Test Step 446 : Read nullable range-restricted signed 8-bit integer\n"); - err = TestReadNullableRangeRestrictedSigned8BitInteger_446(); + ChipLogProgress( + chipTool, " ***** Test Step 446 : Write max valid value to a nullable range-restricted unsigned 16-bit integer\n"); + err = TestWriteMaxValidValueToANullableRangeRestrictedUnsigned16BitInteger_446(); break; case 447: - ChipLogProgress( - chipTool, " ***** Test Step 447 : Write min value to a nullable range-restricted signed 8-bit integer\n"); - err = TestWriteMinValueToANullableRangeRestrictedSigned8BitInteger_447(); + ChipLogProgress(chipTool, + " ***** Test Step 447 : Verify nullable range-restricted unsigned 16-bit integer value is at max valid\n"); + err = TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueIsAtMaxValid_447(); break; case 448: ChipLogProgress(chipTool, - " ***** Test Step 448 : Write just-below-range value to a nullable range-restricted signed 8-bit integer\n"); - err = TestWriteJustBelowRangeValueToANullableRangeRestrictedSigned8BitInteger_448(); + " ***** Test Step 448 : Write middle valid value to a nullable range-restricted unsigned 16-bit integer\n"); + err = TestWriteMiddleValidValueToANullableRangeRestrictedUnsigned16BitInteger_448(); break; case 449: ChipLogProgress(chipTool, - " ***** Test Step 449 : Write just-above-range value to a nullable range-restricted signed 8-bit integer\n"); - err = TestWriteJustAboveRangeValueToANullableRangeRestrictedSigned8BitInteger_449(); + " ***** Test Step 449 : Verify nullable range-restricted unsigned 16-bit integer value is at mid valid\n"); + err = TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueIsAtMidValid_449(); break; case 450: ChipLogProgress( - chipTool, " ***** Test Step 450 : Write max value to a nullable range-restricted signed 8-bit integer\n"); - err = TestWriteMaxValueToANullableRangeRestrictedSigned8BitInteger_450(); + chipTool, " ***** Test Step 450 : Write null value to a nullable range-restricted unsigned 16-bit integer\n"); + err = TestWriteNullValueToANullableRangeRestrictedUnsigned16BitInteger_450(); break; case 451: ChipLogProgress( - chipTool, " ***** Test Step 451 : Verify nullable range-restricted signed 8-bit integer value has not changed\n"); - err = TestVerifyNullableRangeRestrictedSigned8BitIntegerValueHasNotChanged_451(); + chipTool, " ***** Test Step 451 : Verify nullable range-restricted unsigned 16-bit integer value is null\n"); + err = TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueIsNull_451(); break; case 452: - ChipLogProgress( - chipTool, " ***** Test Step 452 : Write min valid value to a nullable range-restricted signed 8-bit integer\n"); - err = TestWriteMinValidValueToANullableRangeRestrictedSigned8BitInteger_452(); + ChipLogProgress(chipTool, " ***** Test Step 452 : Read nullable range-restricted signed 8-bit integer\n"); + err = TestReadNullableRangeRestrictedSigned8BitInteger_452(); break; case 453: ChipLogProgress( - chipTool, " ***** Test Step 453 : Verify nullable range-restricted signed 8-bit integer value is at min valid\n"); - err = TestVerifyNullableRangeRestrictedSigned8BitIntegerValueIsAtMinValid_453(); + chipTool, " ***** Test Step 453 : Write min value to a nullable range-restricted signed 8-bit integer\n"); + err = TestWriteMinValueToANullableRangeRestrictedSigned8BitInteger_453(); break; case 454: - ChipLogProgress( - chipTool, " ***** Test Step 454 : Write max valid value to a nullable range-restricted signed 8-bit integer\n"); - err = TestWriteMaxValidValueToANullableRangeRestrictedSigned8BitInteger_454(); + ChipLogProgress(chipTool, + " ***** Test Step 454 : Write just-below-range value to a nullable range-restricted signed 8-bit integer\n"); + err = TestWriteJustBelowRangeValueToANullableRangeRestrictedSigned8BitInteger_454(); break; case 455: - ChipLogProgress( - chipTool, " ***** Test Step 455 : Verify nullable range-restricted signed 8-bit integer value is at max valid\n"); - err = TestVerifyNullableRangeRestrictedSigned8BitIntegerValueIsAtMaxValid_455(); + ChipLogProgress(chipTool, + " ***** Test Step 455 : Write just-above-range value to a nullable range-restricted signed 8-bit integer\n"); + err = TestWriteJustAboveRangeValueToANullableRangeRestrictedSigned8BitInteger_455(); break; case 456: ChipLogProgress( - chipTool, " ***** Test Step 456 : Write middle valid value to a nullable range-restricted signed 8-bit integer\n"); - err = TestWriteMiddleValidValueToANullableRangeRestrictedSigned8BitInteger_456(); + chipTool, " ***** Test Step 456 : Write max value to a nullable range-restricted signed 8-bit integer\n"); + err = TestWriteMaxValueToANullableRangeRestrictedSigned8BitInteger_456(); break; case 457: ChipLogProgress( - chipTool, " ***** Test Step 457 : Verify nullable range-restricted signed 8-bit integer value is at mid valid\n"); - err = TestVerifyNullableRangeRestrictedSigned8BitIntegerValueIsAtMidValid_457(); + chipTool, " ***** Test Step 457 : Verify nullable range-restricted signed 8-bit integer value has not changed\n"); + err = TestVerifyNullableRangeRestrictedSigned8BitIntegerValueHasNotChanged_457(); break; case 458: ChipLogProgress( - chipTool, " ***** Test Step 458 : Write null value to a nullable range-restricted signed 8-bit integer\n"); - err = TestWriteNullValueToANullableRangeRestrictedSigned8BitInteger_458(); + chipTool, " ***** Test Step 458 : Write min valid value to a nullable range-restricted signed 8-bit integer\n"); + err = TestWriteMinValidValueToANullableRangeRestrictedSigned8BitInteger_458(); break; case 459: ChipLogProgress( - chipTool, " ***** Test Step 459 : Verify nullable range-restricted signed 8-bit integer value is at null\n"); - err = TestVerifyNullableRangeRestrictedSigned8BitIntegerValueIsAtNull_459(); + chipTool, " ***** Test Step 459 : Verify nullable range-restricted signed 8-bit integer value is at min valid\n"); + err = TestVerifyNullableRangeRestrictedSigned8BitIntegerValueIsAtMinValid_459(); break; case 460: - ChipLogProgress(chipTool, " ***** Test Step 460 : Read nullable range-restricted signed 16-bit integer\n"); - err = TestReadNullableRangeRestrictedSigned16BitInteger_460(); + ChipLogProgress( + chipTool, " ***** Test Step 460 : Write max valid value to a nullable range-restricted signed 8-bit integer\n"); + err = TestWriteMaxValidValueToANullableRangeRestrictedSigned8BitInteger_460(); break; case 461: ChipLogProgress( - chipTool, " ***** Test Step 461 : Write min value to a nullable range-restricted signed 16-bit integer\n"); - err = TestWriteMinValueToANullableRangeRestrictedSigned16BitInteger_461(); + chipTool, " ***** Test Step 461 : Verify nullable range-restricted signed 8-bit integer value is at max valid\n"); + err = TestVerifyNullableRangeRestrictedSigned8BitIntegerValueIsAtMaxValid_461(); break; case 462: - ChipLogProgress(chipTool, - " ***** Test Step 462 : Write just-below-range value to a nullable range-restricted signed 16-bit integer\n"); - err = TestWriteJustBelowRangeValueToANullableRangeRestrictedSigned16BitInteger_462(); + ChipLogProgress( + chipTool, " ***** Test Step 462 : Write middle valid value to a nullable range-restricted signed 8-bit integer\n"); + err = TestWriteMiddleValidValueToANullableRangeRestrictedSigned8BitInteger_462(); break; case 463: - ChipLogProgress(chipTool, - " ***** Test Step 463 : Write just-above-range value to a nullable range-restricted signed 16-bit integer\n"); - err = TestWriteJustAboveRangeValueToANullableRangeRestrictedSigned16BitInteger_463(); + ChipLogProgress( + chipTool, " ***** Test Step 463 : Verify nullable range-restricted signed 8-bit integer value is at mid valid\n"); + err = TestVerifyNullableRangeRestrictedSigned8BitIntegerValueIsAtMidValid_463(); break; case 464: ChipLogProgress( - chipTool, " ***** Test Step 464 : Write max value to a nullable range-restricted signed 16-bit integer\n"); - err = TestWriteMaxValueToANullableRangeRestrictedSigned16BitInteger_464(); + chipTool, " ***** Test Step 464 : Write null value to a nullable range-restricted signed 8-bit integer\n"); + err = TestWriteNullValueToANullableRangeRestrictedSigned8BitInteger_464(); break; case 465: ChipLogProgress( - chipTool, " ***** Test Step 465 : Verify nullable range-restricted signed 16-bit integer value has not changed\n"); - err = TestVerifyNullableRangeRestrictedSigned16BitIntegerValueHasNotChanged_465(); + chipTool, " ***** Test Step 465 : Verify nullable range-restricted signed 8-bit integer value is at null\n"); + err = TestVerifyNullableRangeRestrictedSigned8BitIntegerValueIsAtNull_465(); break; case 466: - ChipLogProgress( - chipTool, " ***** Test Step 466 : Write min valid value to a nullable range-restricted signed 16-bit integer\n"); - err = TestWriteMinValidValueToANullableRangeRestrictedSigned16BitInteger_466(); + ChipLogProgress(chipTool, " ***** Test Step 466 : Read nullable range-restricted signed 16-bit integer\n"); + err = TestReadNullableRangeRestrictedSigned16BitInteger_466(); break; case 467: ChipLogProgress( - chipTool, " ***** Test Step 467 : Verify nullable range-restricted signed 16-bit integer value is at min valid\n"); - err = TestVerifyNullableRangeRestrictedSigned16BitIntegerValueIsAtMinValid_467(); + chipTool, " ***** Test Step 467 : Write min value to a nullable range-restricted signed 16-bit integer\n"); + err = TestWriteMinValueToANullableRangeRestrictedSigned16BitInteger_467(); break; case 468: - ChipLogProgress( - chipTool, " ***** Test Step 468 : Write max valid value to a nullable range-restricted signed 16-bit integer\n"); - err = TestWriteMaxValidValueToANullableRangeRestrictedSigned16BitInteger_468(); + ChipLogProgress(chipTool, + " ***** Test Step 468 : Write just-below-range value to a nullable range-restricted signed 16-bit integer\n"); + err = TestWriteJustBelowRangeValueToANullableRangeRestrictedSigned16BitInteger_468(); break; case 469: - ChipLogProgress( - chipTool, " ***** Test Step 469 : Verify nullable range-restricted signed 16-bit integer value is at max valid\n"); - err = TestVerifyNullableRangeRestrictedSigned16BitIntegerValueIsAtMaxValid_469(); + ChipLogProgress(chipTool, + " ***** Test Step 469 : Write just-above-range value to a nullable range-restricted signed 16-bit integer\n"); + err = TestWriteJustAboveRangeValueToANullableRangeRestrictedSigned16BitInteger_469(); break; case 470: ChipLogProgress( - chipTool, " ***** Test Step 470 : Write middle valid value to a nullable range-restricted signed 16-bit integer\n"); - err = TestWriteMiddleValidValueToANullableRangeRestrictedSigned16BitInteger_470(); + chipTool, " ***** Test Step 470 : Write max value to a nullable range-restricted signed 16-bit integer\n"); + err = TestWriteMaxValueToANullableRangeRestrictedSigned16BitInteger_470(); break; case 471: ChipLogProgress( - chipTool, " ***** Test Step 471 : Verify nullable range-restricted signed 16-bit integer value is at mid valid\n"); - err = TestVerifyNullableRangeRestrictedSigned16BitIntegerValueIsAtMidValid_471(); + chipTool, " ***** Test Step 471 : Verify nullable range-restricted signed 16-bit integer value has not changed\n"); + err = TestVerifyNullableRangeRestrictedSigned16BitIntegerValueHasNotChanged_471(); break; case 472: ChipLogProgress( - chipTool, " ***** Test Step 472 : Write null value to a nullable range-restricted signed 16-bit integer\n"); - err = TestWriteNullValueToANullableRangeRestrictedSigned16BitInteger_472(); + chipTool, " ***** Test Step 472 : Write min valid value to a nullable range-restricted signed 16-bit integer\n"); + err = TestWriteMinValidValueToANullableRangeRestrictedSigned16BitInteger_472(); break; case 473: ChipLogProgress( - chipTool, " ***** Test Step 473 : Verify nullable range-restricted signed 16-bit integer value is null\n"); - err = TestVerifyNullableRangeRestrictedSigned16BitIntegerValueIsNull_473(); + chipTool, " ***** Test Step 473 : Verify nullable range-restricted signed 16-bit integer value is at min valid\n"); + err = TestVerifyNullableRangeRestrictedSigned16BitIntegerValueIsAtMinValid_473(); break; case 474: - ChipLogProgress(chipTool, " ***** Test Step 474 : Write attribute that returns general status on write\n"); - err = TestWriteAttributeThatReturnsGeneralStatusOnWrite_474(); + ChipLogProgress( + chipTool, " ***** Test Step 474 : Write max valid value to a nullable range-restricted signed 16-bit integer\n"); + err = TestWriteMaxValidValueToANullableRangeRestrictedSigned16BitInteger_474(); break; case 475: - ChipLogProgress(chipTool, " ***** Test Step 475 : Write attribute that returns cluster-specific status on write\n"); - err = TestWriteAttributeThatReturnsClusterSpecificStatusOnWrite_475(); + ChipLogProgress( + chipTool, " ***** Test Step 475 : Verify nullable range-restricted signed 16-bit integer value is at max valid\n"); + err = TestVerifyNullableRangeRestrictedSigned16BitIntegerValueIsAtMaxValid_475(); break; case 476: - ChipLogProgress(chipTool, " ***** Test Step 476 : Read attribute that returns general status on read\n"); - err = TestReadAttributeThatReturnsGeneralStatusOnRead_476(); + ChipLogProgress( + chipTool, " ***** Test Step 476 : Write middle valid value to a nullable range-restricted signed 16-bit integer\n"); + err = TestWriteMiddleValidValueToANullableRangeRestrictedSigned16BitInteger_476(); break; case 477: - ChipLogProgress(chipTool, " ***** Test Step 477 : read attribute that returns cluster-specific status on read\n"); - err = TestReadAttributeThatReturnsClusterSpecificStatusOnRead_477(); + ChipLogProgress( + chipTool, " ***** Test Step 477 : Verify nullable range-restricted signed 16-bit integer value is at mid valid\n"); + err = TestVerifyNullableRangeRestrictedSigned16BitIntegerValueIsAtMidValid_477(); break; case 478: - ChipLogProgress(chipTool, " ***** Test Step 478 : read AcceptedCommandList attribute\n"); - err = TestReadAcceptedCommandListAttribute_478(); + ChipLogProgress( + chipTool, " ***** Test Step 478 : Write null value to a nullable range-restricted signed 16-bit integer\n"); + err = TestWriteNullValueToANullableRangeRestrictedSigned16BitInteger_478(); break; case 479: - ChipLogProgress(chipTool, " ***** Test Step 479 : read GeneratedCommandList attribute\n"); - err = TestReadGeneratedCommandListAttribute_479(); + ChipLogProgress( + chipTool, " ***** Test Step 479 : Verify nullable range-restricted signed 16-bit integer value is null\n"); + err = TestVerifyNullableRangeRestrictedSigned16BitIntegerValueIsNull_479(); break; case 480: - ChipLogProgress(chipTool, " ***** Test Step 480 : Write struct-typed attribute\n"); - err = TestWriteStructTypedAttribute_480(); + ChipLogProgress(chipTool, " ***** Test Step 480 : Write attribute that returns general status on write\n"); + err = TestWriteAttributeThatReturnsGeneralStatusOnWrite_480(); break; case 481: - ChipLogProgress(chipTool, " ***** Test Step 481 : Read struct-typed attribute\n"); - err = TestReadStructTypedAttribute_481(); + ChipLogProgress(chipTool, " ***** Test Step 481 : Write attribute that returns cluster-specific status on write\n"); + err = TestWriteAttributeThatReturnsClusterSpecificStatusOnWrite_481(); + break; + case 482: + ChipLogProgress(chipTool, " ***** Test Step 482 : Read attribute that returns general status on read\n"); + err = TestReadAttributeThatReturnsGeneralStatusOnRead_482(); + break; + case 483: + ChipLogProgress(chipTool, " ***** Test Step 483 : read attribute that returns cluster-specific status on read\n"); + err = TestReadAttributeThatReturnsClusterSpecificStatusOnRead_483(); + break; + case 484: + ChipLogProgress(chipTool, " ***** Test Step 484 : read AcceptedCommandList attribute\n"); + err = TestReadAcceptedCommandListAttribute_484(); + break; + case 485: + ChipLogProgress(chipTool, " ***** Test Step 485 : read GeneratedCommandList attribute\n"); + err = TestReadGeneratedCommandListAttribute_485(); + break; + case 486: + ChipLogProgress(chipTool, " ***** Test Step 486 : Write struct-typed attribute\n"); + err = TestWriteStructTypedAttribute_486(); + break; + case 487: + ChipLogProgress(chipTool, " ***** Test Step 487 : Read struct-typed attribute\n"); + err = TestReadStructTypedAttribute_487(); break; } @@ -72116,10 +72165,10 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 185: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 186: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 187: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72134,13 +72183,13 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 191: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 192: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 193: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 194: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72152,13 +72201,13 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 197: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 198: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 199: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 200: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72170,13 +72219,13 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 203: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 204: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 205: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 206: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72194,13 +72243,13 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 211: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 212: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 213: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 214: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72236,13 +72285,13 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 225: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 226: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 227: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 228: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72275,13 +72324,13 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 238: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 239: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 240: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 241: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72314,13 +72363,13 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 251: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 252: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 253: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 254: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72347,13 +72396,13 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 262: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 263: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 264: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 265: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72380,13 +72429,13 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 273: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 274: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 275: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 276: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72413,13 +72462,13 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 284: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 285: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 286: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 287: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72446,13 +72495,13 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 295: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 296: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 297: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 298: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72545,13 +72594,13 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 328: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 329: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 330: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 331: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72569,13 +72618,13 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 336: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 337: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 338: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 339: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72593,13 +72642,13 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 344: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 345: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 346: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 347: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72647,13 +72696,13 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 362: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_ENDPOINT)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 363: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_CLUSTER)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 364: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_INVALID_VALUE)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 365: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72665,25 +72714,25 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 368: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_ENDPOINT)); break; case 369: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_CLUSTER)); break; case 370: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_INVALID_VALUE)); break; case 371: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 372: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 373: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 374: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 375: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72692,16 +72741,16 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 377: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 378: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 379: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 380: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 381: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72710,16 +72759,16 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 383: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 384: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 385: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 386: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 387: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72728,16 +72777,16 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 389: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 390: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 391: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 392: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 393: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72746,16 +72795,16 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 395: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 396: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 397: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 398: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 399: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72764,16 +72813,16 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 401: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 402: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 403: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 404: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 405: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72782,16 +72831,16 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 407: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 408: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 409: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 410: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 411: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72800,16 +72849,16 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 413: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 414: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 415: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 416: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 417: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72818,16 +72867,16 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 419: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 420: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 421: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 422: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 423: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72836,16 +72885,16 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 425: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 426: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 427: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 428: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 429: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72860,16 +72909,16 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 433: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 434: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 435: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 436: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 437: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72878,16 +72927,16 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 439: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 440: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 441: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 442: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 443: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72902,16 +72951,16 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 447: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 448: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 449: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 450: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 451: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72920,16 +72969,16 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 453: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 454: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 455: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 456: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 457: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72944,16 +72993,16 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 461: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 462: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 463: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 464: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 465: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72962,16 +73011,16 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 467: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 468: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 469: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 470: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; case 471: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -72983,16 +73032,16 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 474: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_INVALID_DATA_TYPE)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 475: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_FAILURE)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 476: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_INVALID_DATA_TYPE)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 477: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_FAILURE)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 478: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -73001,9 +73050,27 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 480: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_INVALID_DATA_TYPE)); break; case 481: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_FAILURE)); + break; + case 482: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_INVALID_DATA_TYPE)); + break; + case 483: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_FAILURE)); + break; + case 484: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 485: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 486: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 487: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; } @@ -73019,7 +73086,7 @@ class TestCluster : public TestCommandBridge { private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 482; + const uint16_t mTestCount = 488; chip::Optional mNodeId; chip::Optional mCluster; @@ -73043,7 +73110,7 @@ class TestCluster : public TestCommandBridge { [cluster testWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Send Test Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -73060,7 +73127,7 @@ class TestCluster : public TestCommandBridge { [cluster testNotHandledWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Send Test Not Handled Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_COMMAND)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_COMMAND)); NextTest(); }]; @@ -73077,7 +73144,7 @@ class TestCluster : public TestCommandBridge { CHIPTestClusterClusterTestSpecificResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Specific Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.returnValue; @@ -73104,7 +73171,7 @@ class TestCluster : public TestCommandBridge { CHIPTestClusterClusterTestAddArgumentsResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Add Arguments Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.returnValue; @@ -73131,7 +73198,7 @@ class TestCluster : public TestCommandBridge { CHIPTestClusterClusterTestAddArgumentsResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send failing Test Add Arguments Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_COMMAND)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_COMMAND)); NextTest(); }]; @@ -73147,7 +73214,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute BOOLEAN Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -73172,7 +73239,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute BOOLEAN True Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -73189,7 +73256,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute BOOLEAN True Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -73214,7 +73281,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute BOOLEAN False Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -73231,7 +73298,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute BOOLEAN False Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -73253,7 +73320,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute BITMAP8 Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -73278,7 +73345,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute BITMAP8 Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -73295,7 +73362,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute BITMAP8 Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -73320,7 +73387,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute BITMAP8 Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -73337,7 +73404,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute BITMAP8 Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -73359,7 +73426,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeBitmap16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute BITMAP16 Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -73384,7 +73451,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute BITMAP16 Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -73401,7 +73468,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeBitmap16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute BITMAP16 Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -73426,7 +73493,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute BITMAP16 Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -73443,7 +73510,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeBitmap16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute BITMAP16 Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -73465,7 +73532,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeBitmap32WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute BITMAP32 Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -73490,7 +73557,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute BITMAP32 Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -73507,7 +73574,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeBitmap32WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute BITMAP32 Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -73532,7 +73599,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute BITMAP32 Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -73549,7 +73616,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeBitmap32WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute BITMAP32 Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -73571,7 +73638,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeBitmap64WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute BITMAP64 Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -73596,7 +73663,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute BITMAP64 Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -73613,7 +73680,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeBitmap64WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute BITMAP64 Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -73638,7 +73705,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute BITMAP64 Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -73655,7 +73722,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeBitmap64WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute BITMAP64 Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -73677,7 +73744,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT8U Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -73702,7 +73769,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT8U Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -73719,7 +73786,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT8U Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -73744,7 +73811,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT8U Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -73761,7 +73828,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT8U Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -73783,7 +73850,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT16U Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -73808,7 +73875,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT16U Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -73825,7 +73892,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT16U Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -73850,7 +73917,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT16U Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -73867,7 +73934,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT16U Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -73889,7 +73956,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT32U Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -73914,7 +73981,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT32U Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -73931,7 +73998,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT32U Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -73956,7 +74023,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT32U Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -73973,7 +74040,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT32U Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -73995,7 +74062,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT64U Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -74020,7 +74087,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT64U Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -74037,7 +74104,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT64U Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -74062,7 +74129,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT64U Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -74079,7 +74146,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT64U Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -74101,7 +74168,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT8S Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -74126,7 +74193,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT8S Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -74143,7 +74210,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT8S Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -74168,7 +74235,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT8S Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -74185,7 +74252,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT8S Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -74210,7 +74277,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT8S Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -74227,7 +74294,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT8S Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -74249,7 +74316,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT16S Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -74274,7 +74341,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT16S Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -74291,7 +74358,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT16S Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -74316,7 +74383,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT16S Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -74333,7 +74400,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT16S Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -74358,7 +74425,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT16S Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -74375,7 +74442,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT16S Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -74397,7 +74464,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT32S Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -74422,7 +74489,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT32S Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -74439,7 +74506,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT32S Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -74464,7 +74531,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT32S Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -74481,7 +74548,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT32S Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -74506,7 +74573,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT32S Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -74523,7 +74590,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT32S Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -74545,7 +74612,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT64S Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -74570,7 +74637,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT64S Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -74587,7 +74654,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT64S Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -74612,7 +74679,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT64S Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -74629,7 +74696,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT64S Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -74654,7 +74721,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT64S Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -74671,7 +74738,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT64S Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -74693,7 +74760,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute SINGLE Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -74718,7 +74785,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute SINGLE medium Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -74735,7 +74802,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute SINGLE medium Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -74760,7 +74827,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute SINGLE large Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -74777,7 +74844,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute SINGLE large Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -74802,7 +74869,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute SINGLE small Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -74819,7 +74886,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute SINGLE small Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -74844,7 +74911,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute SINGLE Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -74861,7 +74928,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute SINGLE Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -74883,7 +74950,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute DOUBLE Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -74908,7 +74975,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute DOUBLE medium Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -74925,7 +74992,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute DOUBLE medium Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -74950,7 +75017,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute DOUBLE large Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -74967,7 +75034,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute DOUBLE large Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -74992,7 +75059,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute DOUBLE small Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -75009,7 +75076,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute DOUBLE small Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -75034,7 +75101,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute DOUBLE Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -75051,7 +75118,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute DOUBLE Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -75073,7 +75140,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute ENUM8 Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -75098,7 +75165,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute ENUM8 Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -75115,7 +75182,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute ENUM8 Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -75140,7 +75207,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute ENUM8 Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -75157,7 +75224,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute ENUM8 Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -75179,7 +75246,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute ENUM16 Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -75204,7 +75271,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute ENUM16 Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -75221,7 +75288,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute ENUM16 Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -75246,7 +75313,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute ENUM16 Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -75263,7 +75330,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute ENUM16 Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -75285,7 +75352,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute OCTET_STRING Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -75310,7 +75377,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute OCTET_STRING with embedded null Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -75327,7 +75394,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute OCTET_STRING with embedded null Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -75353,7 +75420,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute OCTET_STRING with weird chars Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -75370,7 +75437,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute OCTET_STRING with weird chars Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -75396,7 +75463,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute OCTET_STRING Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -75413,7 +75480,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute OCTET_STRING Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -75439,7 +75506,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute OCTET_STRING Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; @@ -75455,7 +75522,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute OCTET_STRING Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -75481,7 +75548,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute OCTET_STRING Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -75498,7 +75565,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeLongOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute LONG_OCTET_STRING Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -75527,7 +75594,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute LONG_OCTET_STRING Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -75544,7 +75611,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeLongOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute LONG_OCTET_STRING Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -75575,7 +75642,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute LONG_OCTET_STRING Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -75592,7 +75659,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute CHAR_STRING Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -75617,7 +75684,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute CHAR_STRING Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -75634,7 +75701,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute CHAR_STRING Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -75659,7 +75726,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute CHAR_STRING - Value too long Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; @@ -75675,7 +75742,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute CHAR_STRING Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -75700,7 +75767,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute CHAR_STRING - Empty Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -75717,7 +75784,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeLongCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute LONG_CHAR_STRING Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -75745,7 +75812,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute LONG_CHAR_STRING Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -75762,7 +75829,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeLongCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute LONG_CHAR_STRING Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -75790,7 +75857,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute LONG_CHAR_STRING Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -75807,7 +75874,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeListLongOctetStringWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute LIST_LONG_OCTET_STRING (for chunked read) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -75911,7 +75978,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute LIST_LONG_OCTET_STRING (for chunked write) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -75928,7 +75995,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeListLongOctetStringWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute LIST_LONG_OCTET_STRING (for chunked read) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -75995,7 +76062,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeEpochUsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute EPOCH_US Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -76020,7 +76087,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute EPOCH_US Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -76037,7 +76104,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeEpochUsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute EPOCH_US Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -76062,7 +76129,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute EPOCH_US Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -76079,7 +76146,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeEpochUsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute EPOCH_US Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -76101,7 +76168,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeEpochSWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute EPOCH_S Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -76126,7 +76193,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute EPOCH_S Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -76143,7 +76210,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeEpochSWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute EPOCH_S Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -76168,7 +76235,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute EPOCH_S Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -76185,7 +76252,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeEpochSWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute EPOCH_S Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -76212,7 +76279,7 @@ class TestCluster : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -76242,7 +76309,7 @@ class TestCluster : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -76259,7 +76326,7 @@ class TestCluster : public TestCommandBridge { [cluster testWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Send Test Command to unsupported endpoint Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_ENDPOINT)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_ENDPOINT)); NextTest(); }]; @@ -76275,7 +76342,7 @@ class TestCluster : public TestCommandBridge { [cluster testWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Send Test Command to unsupported cluster Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_CLUSTER)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_CLUSTER)); NextTest(); }]; @@ -76291,7 +76358,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeVendorIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute vendor_id Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -76316,7 +76383,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute vendor_id Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -76333,7 +76400,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeVendorIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute vendor_id Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -76358,7 +76425,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Restore attribute vendor_id Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -76380,7 +76447,7 @@ class TestCluster : public TestCommandBridge { CHIPTestClusterClusterTestEnumsResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send a command with a vendor_id and enum Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.arg1; @@ -76420,7 +76487,7 @@ class TestCluster : public TestCommandBridge { CHIPTestClusterClusterBooleanResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Command With Struct Argument and arg1.b is true Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.value; @@ -76455,7 +76522,7 @@ class TestCluster : public TestCommandBridge { CHIPTestClusterClusterBooleanResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Command With Struct Argument and arg1.b is false Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.value; @@ -76501,7 +76568,7 @@ class TestCluster : public TestCommandBridge { CHIPTestClusterClusterBooleanResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Command With Nested Struct Argument and arg1.c.b is true Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.value; @@ -76547,7 +76614,7 @@ class TestCluster : public TestCommandBridge { CHIPTestClusterClusterBooleanResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Command With Nested Struct Argument arg1.c.b is false Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.value; @@ -76639,7 +76706,7 @@ class TestCluster : public TestCommandBridge { @"arg1.d are true Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.value; @@ -76731,7 +76798,7 @@ class TestCluster : public TestCommandBridge { @"arg1.d are false Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.value; @@ -76767,7 +76834,7 @@ class TestCluster : public TestCommandBridge { CHIPTestClusterClusterSimpleStructResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Command With Struct Argument and see what we get back Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.arg1; @@ -76815,7 +76882,7 @@ class TestCluster : public TestCommandBridge { CHIPTestClusterClusterBooleanResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Command With List of INT8U and none of them is set to 0 Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.value; @@ -76854,7 +76921,7 @@ class TestCluster : public TestCommandBridge { CHIPTestClusterClusterBooleanResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Command With List of INT8U and one of them is set to 0 Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.value; @@ -76893,7 +76960,7 @@ class TestCluster : public TestCommandBridge { NSError * _Nullable err) { NSLog(@"Send Test Command With List of INT8U and get it reversed Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.arg1; @@ -76932,7 +76999,7 @@ class TestCluster : public TestCommandBridge { NSError * _Nullable err) { NSLog(@"Send Test Command With empty List of INT8U and get an empty list back Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.arg1; @@ -76983,7 +77050,7 @@ class TestCluster : public TestCommandBridge { @"Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.value; @@ -77034,7 +77101,7 @@ class TestCluster : public TestCommandBridge { @"false Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.value; @@ -77132,7 +77199,7 @@ class TestCluster : public TestCommandBridge { @"fields b of elements of arg1.d are true Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.value; @@ -77230,7 +77297,7 @@ class TestCluster : public TestCommandBridge { @"of elements of arg1.d are false Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.value; @@ -77262,7 +77329,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute LIST With List of INT8U and none of them is set to 0 Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -77279,7 +77346,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeListInt8uWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute LIST With List of INT8U Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -77315,7 +77382,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute LIST With List of OCTET_STRING Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -77332,7 +77399,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeListOctetStringWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute LIST With List of OCTET_STRING Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -77384,7 +77451,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute LIST With List of LIST_STRUCT_OCTET_STRING Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -77401,7 +77468,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeListStructOctetStringWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute LIST With List of LIST_STRUCT_OCTET_STRING Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -77448,7 +77515,7 @@ class TestCluster : public TestCommandBridge { NSError * _Nullable err) { NSLog(@"Send Test Command with optional arg set. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.wasPresent; @@ -77490,7 +77557,7 @@ class TestCluster : public TestCommandBridge { NSError * _Nullable err) { NSLog(@"Send Test Command without its optional arg. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.wasPresent; @@ -77513,7 +77580,7 @@ class TestCluster : public TestCommandBridge { NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read list of structs containing nullables and optionals Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -77562,7 +77629,7 @@ class TestCluster : public TestCommandBridge { NSLog(@"Write list of structs containing nullables and optionals Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -77580,7 +77647,7 @@ class TestCluster : public TestCommandBridge { NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read list of structs containing nullables and optionals after writing Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -77620,13 +77687,14 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_BOOLEAN null Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; return CHIP_NO_ERROR; } + NSNumber * _Nullable booValueNull; CHIP_ERROR TestReadAttributeNullableBooleanNull_180() { @@ -77637,12 +77705,15 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_BOOLEAN null Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; VerifyOrReturn(CheckValueNull("nullable_boolean", actualValue)); } + { + booValueNull = value; + } NextTest(); }]; @@ -77662,7 +77733,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_BOOLEAN True Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -77679,7 +77750,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_BOOLEAN True Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -77693,7 +77764,28 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableBitmap8MaxValue_183() + CHIP_ERROR TestReadAttributeNullableBooleanNotNull_183() + { + CHIPDevice * device = GetDevice("alpha"); + CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeNullableBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read attribute NULLABLE_BOOLEAN not null Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + if (value != nil) { + VerifyOrReturn(CheckConstraintNotValue("nullableBoolean", value, booValueNull)); + } + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestWriteAttributeNullableBitmap8MaxValue_184() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -77705,7 +77797,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_BITMAP8 Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -77713,7 +77805,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableBitmap8MaxValue_184() + CHIP_ERROR TestReadAttributeNullableBitmap8MaxValue_185() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -77722,7 +77814,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_BITMAP8 Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -77736,7 +77828,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableBitmap8InvalidValue_185() + CHIP_ERROR TestWriteAttributeNullableBitmap8InvalidValue_186() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -77744,18 +77836,20 @@ class TestCluster : public TestCommandBridge { id nullableBitmap8Argument; nullableBitmap8Argument = [NSNumber numberWithUnsignedChar:255]; - [cluster writeAttributeNullableBitmap8WithValue:nullableBitmap8Argument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write attribute NULLABLE_BITMAP8 Invalid Value Error: %@", err); + [cluster + writeAttributeNullableBitmap8WithValue:nullableBitmap8Argument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write attribute NULLABLE_BITMAP8 Invalid Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); - NextTest(); - }]; + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + NextTest(); + }]; return CHIP_NO_ERROR; } + NSNumber * _Nullable nullableValue254; - CHIP_ERROR TestReadAttributeNullableBitmap8UnchangedValue_186() + CHIP_ERROR TestReadAttributeNullableBitmap8UnchangedValue_187() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -77764,13 +77858,16 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_BITMAP8 unchanged Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; VerifyOrReturn(CheckValueNonNull("nullable_bitmap8", actualValue)); VerifyOrReturn(CheckValue("nullable_bitmap8", actualValue, 254)); } + { + nullableValue254 = value; + } NextTest(); }]; @@ -77778,7 +77875,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableBitmap8NullValue_187() + CHIP_ERROR TestWriteAttributeNullableBitmap8NullValue_188() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -77790,7 +77887,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_BITMAP8 null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -77798,7 +77895,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableBitmap8NullValue_188() + CHIP_ERROR TestReadAttributeNullableBitmap8NullValue_189() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -77807,7 +77904,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_BITMAP8 null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -77820,7 +77917,28 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableBitmap16MaxValue_189() + CHIP_ERROR TestReadAttributeNullableBitmap8Not254Value_190() + { + CHIPDevice * device = GetDevice("alpha"); + CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeNullableBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read attribute NULLABLE_BITMAP8 not 254 Value Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + if (value != nil) { + VerifyOrReturn(CheckConstraintNotValue("nullableBitmap8", value, nullableValue254)); + } + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestWriteAttributeNullableBitmap16MaxValue_191() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -77832,7 +77950,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_BITMAP16 Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -77840,7 +77958,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableBitmap16MaxValue_190() + CHIP_ERROR TestReadAttributeNullableBitmap16MaxValue_192() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -77849,7 +77967,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableBitmap16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_BITMAP16 Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -77863,7 +77981,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableBitmap16InvalidValue_191() + CHIP_ERROR TestWriteAttributeNullableBitmap16InvalidValue_193() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -77871,18 +77989,19 @@ class TestCluster : public TestCommandBridge { id nullableBitmap16Argument; nullableBitmap16Argument = [NSNumber numberWithUnsignedShort:65535U]; - [cluster writeAttributeNullableBitmap16WithValue:nullableBitmap16Argument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write attribute NULLABLE_BITMAP16 Invalid Value Error: %@", err); + [cluster + writeAttributeNullableBitmap16WithValue:nullableBitmap16Argument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write attribute NULLABLE_BITMAP16 Invalid Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); - NextTest(); - }]; + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableBitmap16UnchangedValue_192() + CHIP_ERROR TestReadAttributeNullableBitmap16UnchangedValue_194() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -77891,7 +78010,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableBitmap16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_BITMAP16 unchanged Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -77905,7 +78024,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableBitmap16NullValue_193() + CHIP_ERROR TestWriteAttributeNullableBitmap16NullValue_195() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -77917,7 +78036,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_BITMAP16 null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -77925,7 +78044,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableBitmap16NullValue_194() + CHIP_ERROR TestReadAttributeNullableBitmap16NullValue_196() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -77934,7 +78053,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableBitmap16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_BITMAP16 null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -77947,7 +78066,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableBitmap32MaxValue_195() + CHIP_ERROR TestWriteAttributeNullableBitmap32MaxValue_197() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -77959,7 +78078,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_BITMAP32 Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -77967,7 +78086,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableBitmap32MaxValue_196() + CHIP_ERROR TestReadAttributeNullableBitmap32MaxValue_198() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -77976,7 +78095,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableBitmap32WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_BITMAP32 Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -77990,7 +78109,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableBitmap32InvalidValue_197() + CHIP_ERROR TestWriteAttributeNullableBitmap32InvalidValue_199() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -77998,18 +78117,19 @@ class TestCluster : public TestCommandBridge { id nullableBitmap32Argument; nullableBitmap32Argument = [NSNumber numberWithUnsignedInt:4294967295UL]; - [cluster writeAttributeNullableBitmap32WithValue:nullableBitmap32Argument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write attribute NULLABLE_BITMAP32 Invalid Value Error: %@", err); + [cluster + writeAttributeNullableBitmap32WithValue:nullableBitmap32Argument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write attribute NULLABLE_BITMAP32 Invalid Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); - NextTest(); - }]; + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableBitmap32UnchangedValue_198() + CHIP_ERROR TestReadAttributeNullableBitmap32UnchangedValue_200() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78018,7 +78138,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableBitmap32WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_BITMAP32 unchanged Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -78032,7 +78152,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableBitmap32NullValue_199() + CHIP_ERROR TestWriteAttributeNullableBitmap32NullValue_201() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78044,7 +78164,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_BITMAP32 null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -78052,7 +78172,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableBitmap32NullValue_200() + CHIP_ERROR TestReadAttributeNullableBitmap32NullValue_202() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78061,7 +78181,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableBitmap32WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_BITMAP32 null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -78074,7 +78194,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableBitmap64MaxValue_201() + CHIP_ERROR TestWriteAttributeNullableBitmap64MaxValue_203() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78086,7 +78206,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_BITMAP64 Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -78094,7 +78214,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableBitmap64MaxValue_202() + CHIP_ERROR TestReadAttributeNullableBitmap64MaxValue_204() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78103,7 +78223,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableBitmap64WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_BITMAP64 Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -78117,7 +78237,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableBitmap64InvalidValue_203() + CHIP_ERROR TestWriteAttributeNullableBitmap64InvalidValue_205() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78125,18 +78245,19 @@ class TestCluster : public TestCommandBridge { id nullableBitmap64Argument; nullableBitmap64Argument = [NSNumber numberWithUnsignedLongLong:18446744073709551615ULL]; - [cluster writeAttributeNullableBitmap64WithValue:nullableBitmap64Argument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write attribute NULLABLE_BITMAP64 Invalid Value Error: %@", err); + [cluster + writeAttributeNullableBitmap64WithValue:nullableBitmap64Argument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write attribute NULLABLE_BITMAP64 Invalid Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); - NextTest(); - }]; + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableBitmap64UnchangedValue_204() + CHIP_ERROR TestReadAttributeNullableBitmap64UnchangedValue_206() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78145,7 +78266,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableBitmap64WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_BITMAP64 unchanged Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -78159,7 +78280,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableBitmap64NullValue_205() + CHIP_ERROR TestWriteAttributeNullableBitmap64NullValue_207() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78171,7 +78292,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_BITMAP64 null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -78179,7 +78300,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableBitmap64NullValue_206() + CHIP_ERROR TestReadAttributeNullableBitmap64NullValue_208() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78188,7 +78309,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableBitmap64WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_BITMAP64 null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -78201,7 +78322,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt8uMinValue_207() + CHIP_ERROR TestWriteAttributeNullableInt8uMinValue_209() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78213,7 +78334,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_INT8U Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -78221,7 +78342,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt8uMinValue_208() + CHIP_ERROR TestReadAttributeNullableInt8uMinValue_210() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78230,7 +78351,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT8U Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -78244,7 +78365,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt8uMaxValue_209() + CHIP_ERROR TestWriteAttributeNullableInt8uMaxValue_211() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78256,7 +78377,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_INT8U Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -78264,7 +78385,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt8uMaxValue_210() + CHIP_ERROR TestReadAttributeNullableInt8uMaxValue_212() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78273,7 +78394,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT8U Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -78287,7 +78408,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt8uInvalidValue_211() + CHIP_ERROR TestWriteAttributeNullableInt8uInvalidValue_213() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78299,14 +78420,14 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_INT8U Invalid Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt8uUnchangedValue_212() + CHIP_ERROR TestReadAttributeNullableInt8uUnchangedValue_214() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78315,7 +78436,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT8U unchanged Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -78329,7 +78450,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt8uUnchangedValueWithConstraint_213() + CHIP_ERROR TestReadAttributeNullableInt8uUnchangedValueWithConstraint_215() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78338,7 +78459,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT8U unchanged Value with constraint Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckValueNonNull("nullableInt8u", value)); @@ -78348,7 +78469,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt8uNullValue_214() + CHIP_ERROR TestWriteAttributeNullableInt8uNullValue_216() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78360,7 +78481,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_INT8U null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -78368,7 +78489,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt8uNullValue_215() + CHIP_ERROR TestReadAttributeNullableInt8uNullValue_217() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78377,7 +78498,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT8U null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -78390,7 +78511,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt8uNullValueRange_216() + CHIP_ERROR TestReadAttributeNullableInt8uNullValueRange_218() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78399,7 +78520,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT8U null Value & range Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("nullableInt8u", [value unsignedCharValue], 0)); @@ -78414,7 +78535,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt8uNullValueNot_217() + CHIP_ERROR TestReadAttributeNullableInt8uNullValueNot_219() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78423,7 +78544,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT8U null Value & not Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("nullableInt8u", value, 254)); @@ -78435,7 +78556,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt8uValue_218() + CHIP_ERROR TestWriteAttributeNullableInt8uValue_220() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78447,7 +78568,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_INT8U Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -78455,7 +78576,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt8uValueInRange_219() + CHIP_ERROR TestReadAttributeNullableInt8uValueInRange_221() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78464,7 +78585,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT8U Value in range Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("nullableInt8u", [value unsignedCharValue], 0)); @@ -78479,7 +78600,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt8uNotValueOk_220() + CHIP_ERROR TestReadAttributeNullableInt8uNotValueOk_222() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78488,7 +78609,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT8U notValue OK Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("nullableInt8u", value, 129)); @@ -78500,7 +78621,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt16uMinValue_221() + CHIP_ERROR TestWriteAttributeNullableInt16uMinValue_223() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78512,7 +78633,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_INT16U Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -78520,7 +78641,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt16uMinValue_222() + CHIP_ERROR TestReadAttributeNullableInt16uMinValue_224() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78529,7 +78650,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT16U Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -78543,7 +78664,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt16uMaxValue_223() + CHIP_ERROR TestWriteAttributeNullableInt16uMaxValue_225() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78555,7 +78676,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_INT16U Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -78563,7 +78684,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt16uMaxValue_224() + CHIP_ERROR TestReadAttributeNullableInt16uMaxValue_226() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78572,7 +78693,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT16U Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -78586,7 +78707,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt16uInvalidValue_225() + CHIP_ERROR TestWriteAttributeNullableInt16uInvalidValue_227() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78594,18 +78715,19 @@ class TestCluster : public TestCommandBridge { id nullableInt16uArgument; nullableInt16uArgument = [NSNumber numberWithUnsignedShort:65535U]; - [cluster writeAttributeNullableInt16uWithValue:nullableInt16uArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write attribute NULLABLE_INT16U Invalid Value Error: %@", err); + [cluster + writeAttributeNullableInt16uWithValue:nullableInt16uArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write attribute NULLABLE_INT16U Invalid Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); - NextTest(); - }]; + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt16uUnchangedValue_226() + CHIP_ERROR TestReadAttributeNullableInt16uUnchangedValue_228() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78614,7 +78736,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT16U unchanged Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -78628,7 +78750,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt16uNullValue_227() + CHIP_ERROR TestWriteAttributeNullableInt16uNullValue_229() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78640,7 +78762,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_INT16U null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -78648,7 +78770,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt16uNullValue_228() + CHIP_ERROR TestReadAttributeNullableInt16uNullValue_230() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78657,7 +78779,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT16U null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -78670,7 +78792,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt16uNullValueRange_229() + CHIP_ERROR TestReadAttributeNullableInt16uNullValueRange_231() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78679,7 +78801,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT16U null Value & range Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("nullableInt16u", [value unsignedShortValue], 0U)); @@ -78694,7 +78816,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt16uNullValueNot_230() + CHIP_ERROR TestReadAttributeNullableInt16uNullValueNot_232() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78703,7 +78825,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT16U null Value & not Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("nullableInt16u", value, 65534U)); @@ -78715,7 +78837,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt16uValue_231() + CHIP_ERROR TestWriteAttributeNullableInt16uValue_233() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78727,7 +78849,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_INT16U Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -78735,7 +78857,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt16uValueInRange_232() + CHIP_ERROR TestReadAttributeNullableInt16uValueInRange_234() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78744,7 +78866,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT16U Value in range Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("nullableInt16u", [value unsignedShortValue], 0U)); @@ -78759,7 +78881,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt16uNotValueOk_233() + CHIP_ERROR TestReadAttributeNullableInt16uNotValueOk_235() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78768,7 +78890,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT16U notValue OK Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("nullableInt16u", value, 32001U)); @@ -78780,7 +78902,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt32uMinValue_234() + CHIP_ERROR TestWriteAttributeNullableInt32uMinValue_236() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78792,7 +78914,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_INT32U Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -78800,7 +78922,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt32uMinValue_235() + CHIP_ERROR TestReadAttributeNullableInt32uMinValue_237() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78809,7 +78931,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT32U Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -78823,7 +78945,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt32uMaxValue_236() + CHIP_ERROR TestWriteAttributeNullableInt32uMaxValue_238() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78835,7 +78957,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_INT32U Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -78843,7 +78965,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt32uMaxValue_237() + CHIP_ERROR TestReadAttributeNullableInt32uMaxValue_239() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78852,7 +78974,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT32U Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -78866,7 +78988,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt32uInvalidValue_238() + CHIP_ERROR TestWriteAttributeNullableInt32uInvalidValue_240() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78874,18 +78996,19 @@ class TestCluster : public TestCommandBridge { id nullableInt32uArgument; nullableInt32uArgument = [NSNumber numberWithUnsignedInt:4294967295UL]; - [cluster writeAttributeNullableInt32uWithValue:nullableInt32uArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write attribute NULLABLE_INT32U Invalid Value Error: %@", err); + [cluster + writeAttributeNullableInt32uWithValue:nullableInt32uArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write attribute NULLABLE_INT32U Invalid Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); - NextTest(); - }]; + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt32uUnchangedValue_239() + CHIP_ERROR TestReadAttributeNullableInt32uUnchangedValue_241() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78894,7 +79017,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT32U unchanged Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -78908,7 +79031,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt32uNullValue_240() + CHIP_ERROR TestWriteAttributeNullableInt32uNullValue_242() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78920,7 +79043,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_INT32U null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -78928,7 +79051,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt32uNullValue_241() + CHIP_ERROR TestReadAttributeNullableInt32uNullValue_243() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78937,7 +79060,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT32U null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -78950,7 +79073,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt32uNullValueRange_242() + CHIP_ERROR TestReadAttributeNullableInt32uNullValueRange_244() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78959,7 +79082,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT32U null Value & range Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("nullableInt32u", [value unsignedIntValue], 0UL)); @@ -78974,7 +79097,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt32uNullValueNot_243() + CHIP_ERROR TestReadAttributeNullableInt32uNullValueNot_245() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -78983,7 +79106,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT32U null Value & not Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("nullableInt32u", value, 4294967294UL)); @@ -78995,7 +79118,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt32uValue_244() + CHIP_ERROR TestWriteAttributeNullableInt32uValue_246() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79007,7 +79130,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_INT32U Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -79015,7 +79138,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt32uValueInRange_245() + CHIP_ERROR TestReadAttributeNullableInt32uValueInRange_247() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79024,7 +79147,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT32U Value in range Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("nullableInt32u", [value unsignedIntValue], 0UL)); @@ -79039,7 +79162,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt32uNotValueOk_246() + CHIP_ERROR TestReadAttributeNullableInt32uNotValueOk_248() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79048,7 +79171,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT32U notValue OK Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("nullableInt32u", value, 2147483648UL)); @@ -79060,7 +79183,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt64uMinValue_247() + CHIP_ERROR TestWriteAttributeNullableInt64uMinValue_249() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79072,7 +79195,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_INT64U Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -79080,7 +79203,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt64uMinValue_248() + CHIP_ERROR TestReadAttributeNullableInt64uMinValue_250() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79089,7 +79212,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT64U Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -79103,7 +79226,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt64uMaxValue_249() + CHIP_ERROR TestWriteAttributeNullableInt64uMaxValue_251() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79115,7 +79238,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_INT64U Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -79123,7 +79246,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt64uMaxValue_250() + CHIP_ERROR TestReadAttributeNullableInt64uMaxValue_252() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79132,7 +79255,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT64U Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -79146,7 +79269,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt64uInvalidValue_251() + CHIP_ERROR TestWriteAttributeNullableInt64uInvalidValue_253() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79154,18 +79277,19 @@ class TestCluster : public TestCommandBridge { id nullableInt64uArgument; nullableInt64uArgument = [NSNumber numberWithUnsignedLongLong:18446744073709551615ULL]; - [cluster writeAttributeNullableInt64uWithValue:nullableInt64uArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write attribute NULLABLE_INT64U Invalid Value Error: %@", err); + [cluster + writeAttributeNullableInt64uWithValue:nullableInt64uArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write attribute NULLABLE_INT64U Invalid Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); - NextTest(); - }]; + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt64uUnchangedValue_252() + CHIP_ERROR TestReadAttributeNullableInt64uUnchangedValue_254() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79174,7 +79298,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT64U unchanged Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -79188,7 +79312,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt64uNullValue_253() + CHIP_ERROR TestWriteAttributeNullableInt64uNullValue_255() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79200,7 +79324,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_INT64U null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -79208,7 +79332,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt64uNullValue_254() + CHIP_ERROR TestReadAttributeNullableInt64uNullValue_256() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79217,7 +79341,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT64U null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -79230,7 +79354,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt64uNullValueRange_255() + CHIP_ERROR TestReadAttributeNullableInt64uNullValueRange_257() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79239,7 +79363,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT64U null Value & range Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("nullableInt64u", [value unsignedLongLongValue], 0ULL)); @@ -79255,7 +79379,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt64uNullValueNot_256() + CHIP_ERROR TestReadAttributeNullableInt64uNullValueNot_258() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79264,7 +79388,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT64U null Value & not Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("nullableInt64u", value, 18446744073709551614ULL)); @@ -79276,7 +79400,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt64uValue_257() + CHIP_ERROR TestWriteAttributeNullableInt64uValue_259() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79288,7 +79412,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_INT64U Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -79296,7 +79420,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt64uValueInRange_258() + CHIP_ERROR TestReadAttributeNullableInt64uValueInRange_260() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79305,7 +79429,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT64U Value in range Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("nullableInt64u", [value unsignedLongLongValue], 0ULL)); @@ -79321,7 +79445,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt64uNotValueOk_259() + CHIP_ERROR TestReadAttributeNullableInt64uNotValueOk_261() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79330,7 +79454,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT64U notValue OK Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("nullableInt64u", value, 18000000000000000001ULL)); @@ -79342,7 +79466,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt8sMinValue_260() + CHIP_ERROR TestWriteAttributeNullableInt8sMinValue_262() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79354,7 +79478,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_INT8S Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -79362,7 +79486,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt8sMinValue_261() + CHIP_ERROR TestReadAttributeNullableInt8sMinValue_263() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79371,7 +79495,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT8S Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -79385,7 +79509,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt8sInvalidValue_262() + CHIP_ERROR TestWriteAttributeNullableInt8sInvalidValue_264() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79397,14 +79521,14 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_INT8S Invalid Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt8sUnchangedValue_263() + CHIP_ERROR TestReadAttributeNullableInt8sUnchangedValue_265() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79413,7 +79537,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT8S unchanged Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -79427,7 +79551,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt8sNullValue_264() + CHIP_ERROR TestWriteAttributeNullableInt8sNullValue_266() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79439,7 +79563,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_INT8S null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -79447,7 +79571,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt8sNullValue_265() + CHIP_ERROR TestReadAttributeNullableInt8sNullValue_267() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79456,7 +79580,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT8S null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -79469,7 +79593,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt8sNullValueRange_266() + CHIP_ERROR TestReadAttributeNullableInt8sNullValueRange_268() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79478,7 +79602,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT8S null Value & range Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("nullableInt8s", [value charValue], -127)); @@ -79493,7 +79617,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt8sNullValueNot_267() + CHIP_ERROR TestReadAttributeNullableInt8sNullValueNot_269() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79502,7 +79626,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT8S null Value & not Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("nullableInt8s", value, -127)); @@ -79514,7 +79638,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt8sValue_268() + CHIP_ERROR TestWriteAttributeNullableInt8sValue_270() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79526,7 +79650,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_INT8S Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -79534,7 +79658,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt8sValueInRange_269() + CHIP_ERROR TestReadAttributeNullableInt8sValueInRange_271() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79543,7 +79667,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT8S Value in range Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("nullableInt8s", [value charValue], -127)); @@ -79558,7 +79682,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt8sNotValueOk_270() + CHIP_ERROR TestReadAttributeNullableInt8sNotValueOk_272() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79567,7 +79691,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT8S notValue OK Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("nullableInt8s", value, -126)); @@ -79579,7 +79703,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt16sMinValue_271() + CHIP_ERROR TestWriteAttributeNullableInt16sMinValue_273() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79591,7 +79715,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_INT16S Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -79599,7 +79723,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt16sMinValue_272() + CHIP_ERROR TestReadAttributeNullableInt16sMinValue_274() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79608,7 +79732,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT16S Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -79622,7 +79746,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt16sInvalidValue_273() + CHIP_ERROR TestWriteAttributeNullableInt16sInvalidValue_275() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79630,18 +79754,19 @@ class TestCluster : public TestCommandBridge { id nullableInt16sArgument; nullableInt16sArgument = [NSNumber numberWithShort:-32768]; - [cluster writeAttributeNullableInt16sWithValue:nullableInt16sArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write attribute NULLABLE_INT16S Invalid Value Error: %@", err); + [cluster + writeAttributeNullableInt16sWithValue:nullableInt16sArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write attribute NULLABLE_INT16S Invalid Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); - NextTest(); - }]; + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt16sUnchangedValue_274() + CHIP_ERROR TestReadAttributeNullableInt16sUnchangedValue_276() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79650,7 +79775,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT16S unchanged Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -79664,7 +79789,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt16sNullValue_275() + CHIP_ERROR TestWriteAttributeNullableInt16sNullValue_277() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79676,7 +79801,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_INT16S null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -79684,7 +79809,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt16sNullValue_276() + CHIP_ERROR TestReadAttributeNullableInt16sNullValue_278() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79693,7 +79818,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT16S null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -79706,7 +79831,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt16sNullValueRange_277() + CHIP_ERROR TestReadAttributeNullableInt16sNullValueRange_279() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79715,7 +79840,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT16S null Value & range Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("nullableInt16s", [value shortValue], -32767)); @@ -79730,7 +79855,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt16sNullValueNot_278() + CHIP_ERROR TestReadAttributeNullableInt16sNullValueNot_280() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79739,7 +79864,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT16S null Value & not Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("nullableInt16s", value, -32767)); @@ -79751,7 +79876,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt16sValue_279() + CHIP_ERROR TestWriteAttributeNullableInt16sValue_281() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79763,7 +79888,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_INT16S Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -79771,7 +79896,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt16sValueInRange_280() + CHIP_ERROR TestReadAttributeNullableInt16sValueInRange_282() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79780,7 +79905,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT16S Value in range Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("nullableInt16s", [value shortValue], -32767)); @@ -79795,7 +79920,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt16sNotValueOk_281() + CHIP_ERROR TestReadAttributeNullableInt16sNotValueOk_283() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79804,7 +79929,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT16S notValue OK Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("nullableInt16s", value, -32766)); @@ -79816,7 +79941,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt32sMinValue_282() + CHIP_ERROR TestWriteAttributeNullableInt32sMinValue_284() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79828,7 +79953,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_INT32S Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -79836,7 +79961,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt32sMinValue_283() + CHIP_ERROR TestReadAttributeNullableInt32sMinValue_285() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79845,7 +79970,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT32S Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -79859,7 +79984,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt32sInvalidValue_284() + CHIP_ERROR TestWriteAttributeNullableInt32sInvalidValue_286() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79867,18 +79992,19 @@ class TestCluster : public TestCommandBridge { id nullableInt32sArgument; nullableInt32sArgument = [NSNumber numberWithInt:-2147483648L]; - [cluster writeAttributeNullableInt32sWithValue:nullableInt32sArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write attribute NULLABLE_INT32S Invalid Value Error: %@", err); + [cluster + writeAttributeNullableInt32sWithValue:nullableInt32sArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write attribute NULLABLE_INT32S Invalid Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); - NextTest(); - }]; + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt32sUnchangedValue_285() + CHIP_ERROR TestReadAttributeNullableInt32sUnchangedValue_287() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79887,7 +80013,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT32S unchanged Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -79901,7 +80027,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt32sNullValue_286() + CHIP_ERROR TestWriteAttributeNullableInt32sNullValue_288() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79913,7 +80039,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_INT32S null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -79921,7 +80047,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt32sNullValue_287() + CHIP_ERROR TestReadAttributeNullableInt32sNullValue_289() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79930,7 +80056,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT32S null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -79943,7 +80069,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt32sNullValueRange_288() + CHIP_ERROR TestReadAttributeNullableInt32sNullValueRange_290() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79952,7 +80078,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT32S null Value & range Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("nullableInt32s", [value intValue], -2147483647L)); @@ -79967,7 +80093,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt32sNullValueNot_289() + CHIP_ERROR TestReadAttributeNullableInt32sNullValueNot_291() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -79976,7 +80102,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT32S null Value & not Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("nullableInt32s", value, -2147483647L)); @@ -79988,7 +80114,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt32sValue_290() + CHIP_ERROR TestWriteAttributeNullableInt32sValue_292() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80000,7 +80126,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_INT32S Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -80008,7 +80134,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt32sValueInRange_291() + CHIP_ERROR TestReadAttributeNullableInt32sValueInRange_293() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80017,7 +80143,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT32S Value in range Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("nullableInt32s", [value intValue], -2147483647L)); @@ -80032,7 +80158,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt32sNotValueOk_292() + CHIP_ERROR TestReadAttributeNullableInt32sNotValueOk_294() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80041,7 +80167,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT32S notValue OK Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("nullableInt32s", value, -2147483646L)); @@ -80053,7 +80179,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt64sMinValue_293() + CHIP_ERROR TestWriteAttributeNullableInt64sMinValue_295() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80065,7 +80191,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_INT64S Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -80073,7 +80199,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt64sMinValue_294() + CHIP_ERROR TestReadAttributeNullableInt64sMinValue_296() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80082,7 +80208,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT64S Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -80096,7 +80222,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt64sInvalidValue_295() + CHIP_ERROR TestWriteAttributeNullableInt64sInvalidValue_297() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80104,18 +80230,19 @@ class TestCluster : public TestCommandBridge { id nullableInt64sArgument; nullableInt64sArgument = [NSNumber numberWithLongLong:-9223372036854775807LL - 1LL]; - [cluster writeAttributeNullableInt64sWithValue:nullableInt64sArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write attribute NULLABLE_INT64S Invalid Value Error: %@", err); + [cluster + writeAttributeNullableInt64sWithValue:nullableInt64sArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write attribute NULLABLE_INT64S Invalid Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); - NextTest(); - }]; + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt64sUnchangedValue_296() + CHIP_ERROR TestReadAttributeNullableInt64sUnchangedValue_298() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80124,7 +80251,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT64S unchanged Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -80138,7 +80265,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt64sNullValue_297() + CHIP_ERROR TestWriteAttributeNullableInt64sNullValue_299() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80150,7 +80277,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_INT64S null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -80158,7 +80285,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt64sNullValue_298() + CHIP_ERROR TestReadAttributeNullableInt64sNullValue_300() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80167,7 +80294,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT64S null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -80180,7 +80307,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt64sNullValueRange_299() + CHIP_ERROR TestReadAttributeNullableInt64sNullValueRange_301() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80189,7 +80316,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT64S null Value & range Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("nullableInt64s", [value longLongValue], -9223372036854775807LL)); @@ -80204,7 +80331,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt64sNullValueNot_300() + CHIP_ERROR TestReadAttributeNullableInt64sNullValueNot_302() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80213,7 +80340,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT64S null Value & not Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("nullableInt64s", value, -9223372036854775807LL)); @@ -80225,7 +80352,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableInt64sValue_301() + CHIP_ERROR TestWriteAttributeNullableInt64sValue_303() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80237,7 +80364,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_INT64S Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -80245,7 +80372,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt64sValueInRange_302() + CHIP_ERROR TestReadAttributeNullableInt64sValueInRange_304() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80254,7 +80381,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT64S Value in range Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("nullableInt64s", [value longLongValue], -9223372036854775807LL)); @@ -80269,7 +80396,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableInt64sNotValueOk_303() + CHIP_ERROR TestReadAttributeNullableInt64sNotValueOk_305() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80278,7 +80405,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_INT64S notValue OK Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("nullableInt64s", value, -9223372036854775806LL)); @@ -80290,7 +80417,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableSingleMediumValue_304() + CHIP_ERROR TestWriteAttributeNullableSingleMediumValue_306() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80302,7 +80429,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_SINGLE medium Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -80310,7 +80437,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableSingleMediumValue_305() + CHIP_ERROR TestReadAttributeNullableSingleMediumValue_307() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80319,7 +80446,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_SINGLE medium Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -80333,7 +80460,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableSingleLargestValue_306() + CHIP_ERROR TestWriteAttributeNullableSingleLargestValue_308() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80345,7 +80472,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_SINGLE largest Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -80353,7 +80480,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableSingleLargestValue_307() + CHIP_ERROR TestReadAttributeNullableSingleLargestValue_309() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80362,7 +80489,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_SINGLE largest Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -80376,7 +80503,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableSingleSmallestValue_308() + CHIP_ERROR TestWriteAttributeNullableSingleSmallestValue_310() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80388,7 +80515,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_SINGLE smallest Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -80396,7 +80523,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableSingleSmallestValue_309() + CHIP_ERROR TestReadAttributeNullableSingleSmallestValue_311() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80405,7 +80532,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_SINGLE smallest Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -80419,7 +80546,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableSingleNullValue_310() + CHIP_ERROR TestWriteAttributeNullableSingleNullValue_312() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80431,7 +80558,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_SINGLE null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -80439,7 +80566,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableSingleNullValue_311() + CHIP_ERROR TestReadAttributeNullableSingleNullValue_313() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80448,7 +80575,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_SINGLE null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -80461,7 +80588,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableSingle0Value_312() + CHIP_ERROR TestWriteAttributeNullableSingle0Value_314() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80473,7 +80600,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_SINGLE 0 Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -80481,7 +80608,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableSingle0Value_313() + CHIP_ERROR TestReadAttributeNullableSingle0Value_315() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80490,7 +80617,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_SINGLE 0 Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -80504,7 +80631,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableDoubleMediumValue_314() + CHIP_ERROR TestWriteAttributeNullableDoubleMediumValue_316() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80516,7 +80643,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_DOUBLE medium Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -80524,7 +80651,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableDoubleMediumValue_315() + CHIP_ERROR TestReadAttributeNullableDoubleMediumValue_317() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80533,7 +80660,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_DOUBLE medium Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -80547,7 +80674,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableDoubleLargestValue_316() + CHIP_ERROR TestWriteAttributeNullableDoubleLargestValue_318() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80559,7 +80686,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_DOUBLE largest Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -80567,7 +80694,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableDoubleLargestValue_317() + CHIP_ERROR TestReadAttributeNullableDoubleLargestValue_319() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80576,7 +80703,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_DOUBLE largest Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -80590,7 +80717,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableDoubleSmallestValue_318() + CHIP_ERROR TestWriteAttributeNullableDoubleSmallestValue_320() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80602,7 +80729,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_DOUBLE smallest Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -80610,7 +80737,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableDoubleSmallestValue_319() + CHIP_ERROR TestReadAttributeNullableDoubleSmallestValue_321() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80619,7 +80746,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_DOUBLE smallest Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -80633,7 +80760,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableDoubleNullValue_320() + CHIP_ERROR TestWriteAttributeNullableDoubleNullValue_322() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80645,7 +80772,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_DOUBLE null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -80653,7 +80780,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableDoubleNullValue_321() + CHIP_ERROR TestReadAttributeNullableDoubleNullValue_323() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80662,7 +80789,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_DOUBLE null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -80675,7 +80802,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableDouble0Value_322() + CHIP_ERROR TestWriteAttributeNullableDouble0Value_324() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80687,7 +80814,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_DOUBLE 0 Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -80695,7 +80822,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableDouble0Value_323() + CHIP_ERROR TestReadAttributeNullableDouble0Value_325() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80704,7 +80831,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_DOUBLE 0 Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -80718,7 +80845,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableEnum8MinValue_324() + CHIP_ERROR TestWriteAttributeNullableEnum8MinValue_326() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80730,7 +80857,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_ENUM8 Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -80738,7 +80865,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableEnum8MinValue_325() + CHIP_ERROR TestReadAttributeNullableEnum8MinValue_327() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80747,7 +80874,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_ENUM8 Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -80761,7 +80888,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableEnum8MaxValue_326() + CHIP_ERROR TestWriteAttributeNullableEnum8MaxValue_328() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80773,7 +80900,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_ENUM8 Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -80781,7 +80908,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableEnum8MaxValue_327() + CHIP_ERROR TestReadAttributeNullableEnum8MaxValue_329() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80790,7 +80917,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_ENUM8 Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -80804,7 +80931,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableEnum8InvalidValue_328() + CHIP_ERROR TestWriteAttributeNullableEnum8InvalidValue_330() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80816,14 +80943,14 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_ENUM8 Invalid Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableEnum8UnchangedValue_329() + CHIP_ERROR TestReadAttributeNullableEnum8UnchangedValue_331() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80832,7 +80959,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_ENUM8 unchanged Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -80846,7 +80973,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableEnum8NullValue_330() + CHIP_ERROR TestWriteAttributeNullableEnum8NullValue_332() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80858,7 +80985,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_ENUM8 null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -80866,7 +80993,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableEnum8NullValue_331() + CHIP_ERROR TestReadAttributeNullableEnum8NullValue_333() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80875,7 +81002,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_ENUM8 null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -80888,7 +81015,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableEnum16MinValue_332() + CHIP_ERROR TestWriteAttributeNullableEnum16MinValue_334() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80900,7 +81027,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_ENUM16 Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -80908,7 +81035,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableEnum16MinValue_333() + CHIP_ERROR TestReadAttributeNullableEnum16MinValue_335() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80917,7 +81044,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_ENUM16 Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -80931,7 +81058,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableEnum16MaxValue_334() + CHIP_ERROR TestWriteAttributeNullableEnum16MaxValue_336() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80943,7 +81070,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_ENUM16 Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -80951,7 +81078,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableEnum16MaxValue_335() + CHIP_ERROR TestReadAttributeNullableEnum16MaxValue_337() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80960,7 +81087,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_ENUM16 Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -80974,7 +81101,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableEnum16InvalidValue_336() + CHIP_ERROR TestWriteAttributeNullableEnum16InvalidValue_338() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -80982,18 +81109,19 @@ class TestCluster : public TestCommandBridge { id nullableEnum16Argument; nullableEnum16Argument = [NSNumber numberWithUnsignedShort:65535U]; - [cluster writeAttributeNullableEnum16WithValue:nullableEnum16Argument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write attribute NULLABLE_ENUM16 Invalid Value Error: %@", err); + [cluster + writeAttributeNullableEnum16WithValue:nullableEnum16Argument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write attribute NULLABLE_ENUM16 Invalid Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); - NextTest(); - }]; + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableEnum16UnchangedValue_337() + CHIP_ERROR TestReadAttributeNullableEnum16UnchangedValue_339() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81002,7 +81130,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_ENUM16 unchanged Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -81016,7 +81144,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableEnum16NullValue_338() + CHIP_ERROR TestWriteAttributeNullableEnum16NullValue_340() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81028,7 +81156,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_ENUM16 null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -81036,7 +81164,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableEnum16NullValue_339() + CHIP_ERROR TestReadAttributeNullableEnum16NullValue_341() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81045,7 +81173,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_ENUM16 null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -81058,7 +81186,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableSimpleEnumMinValue_340() + CHIP_ERROR TestWriteAttributeNullableSimpleEnumMinValue_342() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81070,7 +81198,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_SIMPLE_ENUM Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -81078,7 +81206,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableSimpleEnumMinValue_341() + CHIP_ERROR TestReadAttributeNullableSimpleEnumMinValue_343() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81087,7 +81215,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableEnumAttrWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_SIMPLE_ENUM Min Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -81101,7 +81229,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableSimpleEnumMaxValue_342() + CHIP_ERROR TestWriteAttributeNullableSimpleEnumMaxValue_344() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81113,7 +81241,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_SIMPLE_ENUM Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -81121,7 +81249,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableSimpleEnumMaxValue_343() + CHIP_ERROR TestReadAttributeNullableSimpleEnumMaxValue_345() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81130,7 +81258,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableEnumAttrWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_SIMPLE_ENUM Max Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -81144,7 +81272,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableSimpleEnumInvalidValue_344() + CHIP_ERROR TestWriteAttributeNullableSimpleEnumInvalidValue_346() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81152,18 +81280,20 @@ class TestCluster : public TestCommandBridge { id nullableEnumAttrArgument; nullableEnumAttrArgument = [NSNumber numberWithUnsignedChar:255]; - [cluster writeAttributeNullableEnumAttrWithValue:nullableEnumAttrArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write attribute NULLABLE_SIMPLE_ENUM Invalid Value Error: %@", err); + [cluster + writeAttributeNullableEnumAttrWithValue:nullableEnumAttrArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write attribute NULLABLE_SIMPLE_ENUM Invalid Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); - NextTest(); - }]; + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + NextTest(); + }]; return CHIP_NO_ERROR; } + NSNumber * _Nullable nullableEnumAttr254; - CHIP_ERROR TestReadAttributeNullableSimpleEnumUnchangedValue_345() + CHIP_ERROR TestReadAttributeNullableSimpleEnumUnchangedValue_347() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81172,13 +81302,16 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableEnumAttrWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_SIMPLE_ENUM unchanged Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; VerifyOrReturn(CheckValueNonNull("nullable_enum_attr", actualValue)); VerifyOrReturn(CheckValue("nullable_enum_attr", actualValue, 254)); } + { + nullableEnumAttr254 = value; + } NextTest(); }]; @@ -81186,7 +81319,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableSimpleEnumNullValue_346() + CHIP_ERROR TestWriteAttributeNullableSimpleEnumNullValue_348() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81198,7 +81331,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_SIMPLE_ENUM null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -81206,7 +81339,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableSimpleEnumNullValue_347() + CHIP_ERROR TestReadAttributeNullableSimpleEnumNullValue_349() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81215,7 +81348,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableEnumAttrWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_SIMPLE_ENUM null Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -81228,7 +81361,28 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableOctetStringDefaultValue_348() + CHIP_ERROR TestReadAttributeNullableSimpleEnumNot254Value_350() + { + CHIPDevice * device = GetDevice("alpha"); + CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeNullableEnumAttrWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read attribute NULLABLE_SIMPLE_ENUM not 254 Value Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + if (value != nil) { + VerifyOrReturn(CheckConstraintNotValue("nullableEnumAttr", value, nullableEnumAttr254)); + } + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestReadAttributeNullableOctetStringDefaultValue_351() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81237,7 +81391,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_OCTET_STRING Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -81252,7 +81406,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableOctetString_349() + CHIP_ERROR TestWriteAttributeNullableOctetString_352() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81264,15 +81418,16 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_OCTET_STRING Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; return CHIP_NO_ERROR; } + NSData * _Nullable nullableOctetStrTestValue; - CHIP_ERROR TestReadAttributeNullableOctetString_350() + CHIP_ERROR TestReadAttributeNullableOctetString_353() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81281,7 +81436,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_OCTET_STRING Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -81289,6 +81444,9 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn( CheckValueAsString("nullable_octet_string", actualValue, [[NSData alloc] initWithBytes:"TestValue" length:9])); } + { + nullableOctetStrTestValue = value; + } NextTest(); }]; @@ -81296,7 +81454,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableOctetString_351() + CHIP_ERROR TestWriteAttributeNullableOctetString_354() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81308,7 +81466,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_OCTET_STRING Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -81316,7 +81474,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableOctetString_352() + CHIP_ERROR TestReadAttributeNullableOctetString_355() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81325,7 +81483,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_OCTET_STRING Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -81338,7 +81496,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableOctetString_353() + CHIP_ERROR TestWriteAttributeNullableOctetString_356() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81350,7 +81508,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_OCTET_STRING Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -81358,7 +81516,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableOctetString_354() + CHIP_ERROR TestReadAttributeNullableOctetString_357() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81367,7 +81525,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_OCTET_STRING Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -81382,7 +81540,28 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableCharStringDefaultValue_355() + CHIP_ERROR TestReadAttributeNullableOctetStringNotTestValue_358() + { + CHIPDevice * device = GetDevice("alpha"); + CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeNullableOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read attribute NULLABLE_OCTET_STRING not TestValue Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + if (value != nil) { + VerifyOrReturn(CheckConstraintNotValue("nullableOctetString", value, nullableOctetStrTestValue)); + } + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestReadAttributeNullableCharStringDefaultValue_359() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81391,7 +81570,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_CHAR_STRING Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -81405,7 +81584,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableCharString_356() + CHIP_ERROR TestWriteAttributeNullableCharString_360() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81417,15 +81596,16 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_CHAR_STRING Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; return CHIP_NO_ERROR; } + NSString * _Nullable nullableCharStringSave; - CHIP_ERROR TestReadAttributeNullableCharString_357() + CHIP_ERROR TestReadAttributeNullableCharString_361() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81434,13 +81614,16 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_CHAR_STRING Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; VerifyOrReturn(CheckValueNonNull("nullable_char_string", actualValue)); VerifyOrReturn(CheckValueAsString("nullable_char_string", actualValue, @"☉T☉")); } + { + nullableCharStringSave = value; + } NextTest(); }]; @@ -81448,7 +81631,34 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableCharStringValueTooLong_358() + CHIP_ERROR TestReadAttributeNullableCharString_362() + { + CHIPDevice * device = GetDevice("alpha"); + CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeNullableCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read attribute NULLABLE_CHAR_STRING Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + { + id actualValue = value; + if (nullableCharStringSave == nil) { + VerifyOrReturn(CheckValueNull("nullable_char_string", actualValue)); + } else { + VerifyOrReturn(CheckValueNonNull("nullable_char_string", actualValue)); + VerifyOrReturn(CheckValueAsString("nullable_char_string", actualValue, nullableCharStringSave)); + } + } + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestWriteAttributeNullableCharStringValueTooLong_363() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81460,7 +81670,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_CHAR_STRING - Value too long Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -81468,7 +81678,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableCharString_359() + CHIP_ERROR TestReadAttributeNullableCharString_364() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81477,7 +81687,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_CHAR_STRING Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -81490,7 +81700,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeNullableCharStringEmpty_360() + CHIP_ERROR TestWriteAttributeNullableCharStringEmpty_365() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81502,7 +81712,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute NULLABLE_CHAR_STRING - Empty Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -81510,7 +81720,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeNullableCharString_361() + CHIP_ERROR TestReadAttributeNullableCharString_366() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81519,7 +81729,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeNullableCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute NULLABLE_CHAR_STRING Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -81533,7 +81743,28 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeFromNonexistentEndpoint_362() + CHIP_ERROR TestReadAttributeNullableCharStringNott_367() + { + CHIPDevice * device = GetDevice("alpha"); + CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeNullableCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read attribute NULLABLE_CHAR_STRING not ☉T☉ Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + if (value != nil) { + VerifyOrReturn(CheckConstraintNotValue("nullableCharString", value, nullableCharStringSave)); + } + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestReadAttributeFromNonexistentEndpoint_368() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:200 queue:mCallbackQueue]; @@ -81542,14 +81773,14 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeListInt8uWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute from nonexistent endpoint. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_ENDPOINT)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_ENDPOINT)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeFromNonexistentCluster_363() + CHIP_ERROR TestReadAttributeFromNonexistentCluster_369() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; @@ -81558,14 +81789,14 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeListInt8uWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute from nonexistent cluster. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_UNSUPPORTED_CLUSTER)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_UNSUPPORTED_CLUSTER)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestSendACommandThatTakesAnOptionalParameterButDoNotSetIt_364() + CHIP_ERROR TestSendACommandThatTakesAnOptionalParameterButDoNotSetIt_370() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81578,14 +81809,14 @@ class TestCluster : public TestCommandBridge { NSLog( @"Send a command that takes an optional parameter but do not set it. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_VALUE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_VALUE)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestSendACommandThatTakesAnOptionalParameterButDoNotSetIt_365() + CHIP_ERROR TestSendACommandThatTakesAnOptionalParameterButDoNotSetIt_371() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81599,17 +81830,17 @@ class TestCluster : public TestCommandBridge { NSLog( @"Send a command that takes an optional parameter but do not set it. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; return CHIP_NO_ERROR; } - bool testSendClusterTestCluster_366_WaitForReport_Fulfilled = false; + bool testSendClusterTestCluster_372_WaitForReport_Fulfilled = false; ResponseHandler _Nullable test_TestCluster_list_int8u_Reported = nil; - CHIP_ERROR TestReportSubscribeToListAttribute_366() + CHIP_ERROR TestReportSubscribeToListAttribute_372() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81618,7 +81849,7 @@ class TestCluster : public TestCommandBridge { test_TestCluster_list_int8u_Reported = ^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Report: Subscribe to list attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -81629,14 +81860,14 @@ class TestCluster : public TestCommandBridge { VerifyOrReturn(CheckValue("", actualValue[3], 4)); } - testSendClusterTestCluster_366_WaitForReport_Fulfilled = true; + testSendClusterTestCluster_372_WaitForReport_Fulfilled = true; }; NextTest(); return CHIP_NO_ERROR; } - CHIP_ERROR TestSubscribeToListAttribute_367() + CHIP_ERROR TestSubscribeToListAttribute_373() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81650,13 +81881,13 @@ class TestCluster : public TestCommandBridge { params:params subscriptionEstablished:^{ VerifyOrReturn( - testSendClusterTestCluster_366_WaitForReport_Fulfilled, SetCommandExitStatus(CHIP_ERROR_INCORRECT_STATE)); + testSendClusterTestCluster_372_WaitForReport_Fulfilled, SetCommandExitStatus(CHIP_ERROR_INCORRECT_STATE)); NextTest(); } reportHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Subscribe to list attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (test_TestCluster_list_int8u_Reported != nil) { ResponseHandler callback = test_TestCluster_list_int8u_Reported; test_TestCluster_list_int8u_Reported = nil; @@ -81667,7 +81898,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteSubscribedToListAttribute_368() + CHIP_ERROR TestWriteSubscribedToListAttribute_374() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81686,7 +81917,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write subscribed-to list attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -81694,7 +81925,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestCheckForListAttributeReport_369() + CHIP_ERROR TestCheckForListAttributeReport_375() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81703,7 +81934,7 @@ class TestCluster : public TestCommandBridge { test_TestCluster_list_int8u_Reported = ^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Check for list attribute report Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -81720,7 +81951,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadRangeRestrictedUnsigned8BitInteger_370() + CHIP_ERROR TestReadRangeRestrictedUnsigned8BitInteger_376() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81729,7 +81960,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeRangeRestrictedInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read range-restricted unsigned 8-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -81742,7 +81973,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMinValueToARangeRestrictedUnsigned8BitInteger_371() + CHIP_ERROR TestWriteMinValueToARangeRestrictedUnsigned8BitInteger_377() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81755,14 +81986,15 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write min value to a range-restricted unsigned 8-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn( + CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteJustBelowRangeValueToARangeRestrictedUnsigned8BitInteger_372() + CHIP_ERROR TestWriteJustBelowRangeValueToARangeRestrictedUnsigned8BitInteger_378() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81776,14 +82008,15 @@ class TestCluster : public TestCommandBridge { @"Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn( + CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteJustAboveRangeValueToARangeRestrictedUnsigned8BitInteger_373() + CHIP_ERROR TestWriteJustAboveRangeValueToARangeRestrictedUnsigned8BitInteger_379() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81797,14 +82030,15 @@ class TestCluster : public TestCommandBridge { @"Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn( + CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMaxValueToARangeRestrictedUnsigned8BitInteger_374() + CHIP_ERROR TestWriteMaxValueToARangeRestrictedUnsigned8BitInteger_380() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81817,14 +82051,15 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write max value to a range-restricted unsigned 8-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn( + CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyRangeRestrictedUnsigned8BitIntegerValueHasNotChanged_375() + CHIP_ERROR TestVerifyRangeRestrictedUnsigned8BitIntegerValueHasNotChanged_381() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81833,7 +82068,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeRangeRestrictedInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify range-restricted unsigned 8-bit integer value has not changed Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -81846,7 +82081,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMinValidValueToARangeRestrictedUnsigned8BitInteger_376() + CHIP_ERROR TestWriteMinValidValueToARangeRestrictedUnsigned8BitInteger_382() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81860,7 +82095,7 @@ class TestCluster : public TestCommandBridge { NSLog( @"Write min valid value to a range-restricted unsigned 8-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -81868,7 +82103,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyRangeRestrictedUnsigned8BitIntegerValueIsAtMinValid_377() + CHIP_ERROR TestVerifyRangeRestrictedUnsigned8BitIntegerValueIsAtMinValid_383() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81877,7 +82112,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeRangeRestrictedInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify range-restricted unsigned 8-bit integer value is at min valid Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -81890,7 +82125,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMaxValidValueToARangeRestrictedUnsigned8BitInteger_378() + CHIP_ERROR TestWriteMaxValidValueToARangeRestrictedUnsigned8BitInteger_384() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81904,7 +82139,7 @@ class TestCluster : public TestCommandBridge { NSLog( @"Write max valid value to a range-restricted unsigned 8-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -81912,7 +82147,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyRangeRestrictedUnsigned8BitIntegerValueIsAtMaxValid_379() + CHIP_ERROR TestVerifyRangeRestrictedUnsigned8BitIntegerValueIsAtMaxValid_385() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81921,7 +82156,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeRangeRestrictedInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify range-restricted unsigned 8-bit integer value is at max valid Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -81934,7 +82169,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMiddleValidValueToARangeRestrictedUnsigned8BitInteger_380() + CHIP_ERROR TestWriteMiddleValidValueToARangeRestrictedUnsigned8BitInteger_386() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81948,7 +82183,7 @@ class TestCluster : public TestCommandBridge { NSLog(@"Write middle valid value to a range-restricted unsigned 8-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -81956,7 +82191,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyRangeRestrictedUnsigned8BitIntegerValueIsAtMidValid_381() + CHIP_ERROR TestVerifyRangeRestrictedUnsigned8BitIntegerValueIsAtMidValid_387() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81965,7 +82200,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeRangeRestrictedInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify range-restricted unsigned 8-bit integer value is at mid valid Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -81978,7 +82213,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadRangeRestrictedUnsigned16BitInteger_382() + CHIP_ERROR TestReadRangeRestrictedUnsigned16BitInteger_388() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -81987,7 +82222,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeRangeRestrictedInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read range-restricted unsigned 16-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -82000,7 +82235,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMinValueToARangeRestrictedUnsigned16BitInteger_383() + CHIP_ERROR TestWriteMinValueToARangeRestrictedUnsigned16BitInteger_389() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82013,14 +82248,15 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write min value to a range-restricted unsigned 16-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn( + CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteJustBelowRangeValueToARangeRestrictedUnsigned16BitInteger_384() + CHIP_ERROR TestWriteJustBelowRangeValueToARangeRestrictedUnsigned16BitInteger_390() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82034,14 +82270,15 @@ class TestCluster : public TestCommandBridge { @"Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn( + CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteJustAboveRangeValueToARangeRestrictedUnsigned16BitInteger_385() + CHIP_ERROR TestWriteJustAboveRangeValueToARangeRestrictedUnsigned16BitInteger_391() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82055,14 +82292,15 @@ class TestCluster : public TestCommandBridge { @"Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn( + CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMaxValueToARangeRestrictedUnsigned16BitInteger_386() + CHIP_ERROR TestWriteMaxValueToARangeRestrictedUnsigned16BitInteger_392() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82075,14 +82313,15 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write max value to a range-restricted unsigned 16-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn( + CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyRangeRestrictedUnsigned16BitIntegerValueHasNotChanged_387() + CHIP_ERROR TestVerifyRangeRestrictedUnsigned16BitIntegerValueHasNotChanged_393() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82091,7 +82330,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeRangeRestrictedInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify range-restricted unsigned 16-bit integer value has not changed Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -82104,7 +82343,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMinValidValueToARangeRestrictedUnsigned16BitInteger_388() + CHIP_ERROR TestWriteMinValidValueToARangeRestrictedUnsigned16BitInteger_394() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82118,7 +82357,7 @@ class TestCluster : public TestCommandBridge { NSLog(@"Write min valid value to a range-restricted unsigned 16-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -82126,7 +82365,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyRangeRestrictedUnsigned16BitIntegerValueIsAtMinValid_389() + CHIP_ERROR TestVerifyRangeRestrictedUnsigned16BitIntegerValueIsAtMinValid_395() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82135,7 +82374,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeRangeRestrictedInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify range-restricted unsigned 16-bit integer value is at min valid Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -82148,7 +82387,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMaxValidValueToARangeRestrictedUnsigned16BitInteger_390() + CHIP_ERROR TestWriteMaxValidValueToARangeRestrictedUnsigned16BitInteger_396() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82162,7 +82401,7 @@ class TestCluster : public TestCommandBridge { NSLog(@"Write max valid value to a range-restricted unsigned 16-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -82170,7 +82409,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyRangeRestrictedUnsigned16BitIntegerValueIsAtMaxValid_391() + CHIP_ERROR TestVerifyRangeRestrictedUnsigned16BitIntegerValueIsAtMaxValid_397() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82179,7 +82418,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeRangeRestrictedInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify range-restricted unsigned 16-bit integer value is at max valid Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -82192,7 +82431,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMiddleValidValueToARangeRestrictedUnsigned16BitInteger_392() + CHIP_ERROR TestWriteMiddleValidValueToARangeRestrictedUnsigned16BitInteger_398() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82207,7 +82446,7 @@ class TestCluster : public TestCommandBridge { @"Write middle valid value to a range-restricted unsigned 16-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -82215,7 +82454,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyRangeRestrictedUnsigned16BitIntegerValueIsAtMidValid_393() + CHIP_ERROR TestVerifyRangeRestrictedUnsigned16BitIntegerValueIsAtMidValid_399() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82224,7 +82463,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeRangeRestrictedInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify range-restricted unsigned 16-bit integer value is at mid valid Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -82237,7 +82476,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadRangeRestrictedSigned8BitInteger_394() + CHIP_ERROR TestReadRangeRestrictedSigned8BitInteger_400() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82246,7 +82485,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeRangeRestrictedInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read range-restricted signed 8-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -82259,7 +82498,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMinValueToARangeRestrictedSigned8BitInteger_395() + CHIP_ERROR TestWriteMinValueToARangeRestrictedSigned8BitInteger_401() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82271,14 +82510,15 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write min value to a range-restricted signed 8-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn( + CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteJustBelowRangeValueToARangeRestrictedSigned8BitInteger_396() + CHIP_ERROR TestWriteJustBelowRangeValueToARangeRestrictedSigned8BitInteger_402() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82293,14 +82533,15 @@ class TestCluster : public TestCommandBridge { @"Write just-below-range value to a range-restricted signed 8-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn( + CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteJustAboveRangeValueToARangeRestrictedSigned8BitInteger_397() + CHIP_ERROR TestWriteJustAboveRangeValueToARangeRestrictedSigned8BitInteger_403() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82315,14 +82556,15 @@ class TestCluster : public TestCommandBridge { @"Write just-above-range value to a range-restricted signed 8-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn( + CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMaxValueToARangeRestrictedSigned8BitInteger_398() + CHIP_ERROR TestWriteMaxValueToARangeRestrictedSigned8BitInteger_404() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82334,14 +82576,15 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write max value to a range-restricted signed 8-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn( + CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyRangeRestrictedSigned8BitIntegerValueHasNotChanged_399() + CHIP_ERROR TestVerifyRangeRestrictedSigned8BitIntegerValueHasNotChanged_405() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82350,7 +82593,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeRangeRestrictedInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify range-restricted signed 8-bit integer value has not changed Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -82363,7 +82606,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMinValidValueToARangeRestrictedSigned8BitInteger_400() + CHIP_ERROR TestWriteMinValidValueToARangeRestrictedSigned8BitInteger_406() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82376,7 +82619,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write min valid value to a range-restricted signed 8-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -82384,7 +82627,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyRangeRestrictedSigned8BitIntegerValueIsAtMinValid_401() + CHIP_ERROR TestVerifyRangeRestrictedSigned8BitIntegerValueIsAtMinValid_407() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82393,7 +82636,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeRangeRestrictedInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify range-restricted signed 8-bit integer value is at min valid Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -82406,7 +82649,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMaxValidValueToARangeRestrictedSigned8BitInteger_402() + CHIP_ERROR TestWriteMaxValidValueToARangeRestrictedSigned8BitInteger_408() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82419,7 +82662,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write max valid value to a range-restricted signed 8-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -82427,7 +82670,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyRangeRestrictedSigned8BitIntegerValueIsAtMaxValid_403() + CHIP_ERROR TestVerifyRangeRestrictedSigned8BitIntegerValueIsAtMaxValid_409() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82436,7 +82679,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeRangeRestrictedInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify range-restricted signed 8-bit integer value is at max valid Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -82449,7 +82692,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMiddleValidValueToARangeRestrictedSigned8BitInteger_404() + CHIP_ERROR TestWriteMiddleValidValueToARangeRestrictedSigned8BitInteger_410() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82463,7 +82706,7 @@ class TestCluster : public TestCommandBridge { NSLog(@"Write middle valid value to a range-restricted signed 8-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -82471,7 +82714,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyRangeRestrictedSigned8BitIntegerValueIsAtMidValid_405() + CHIP_ERROR TestVerifyRangeRestrictedSigned8BitIntegerValueIsAtMidValid_411() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82480,7 +82723,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeRangeRestrictedInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify range-restricted signed 8-bit integer value is at mid valid Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -82493,7 +82736,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadRangeRestrictedSigned16BitInteger_406() + CHIP_ERROR TestReadRangeRestrictedSigned16BitInteger_412() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82502,7 +82745,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeRangeRestrictedInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read range-restricted signed 16-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -82515,7 +82758,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMinValueToARangeRestrictedSigned16BitInteger_407() + CHIP_ERROR TestWriteMinValueToARangeRestrictedSigned16BitInteger_413() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82528,14 +82771,15 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write min value to a range-restricted signed 16-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn( + CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteJustBelowRangeValueToARangeRestrictedSigned16BitInteger_408() + CHIP_ERROR TestWriteJustBelowRangeValueToARangeRestrictedSigned16BitInteger_414() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82549,14 +82793,15 @@ class TestCluster : public TestCommandBridge { @"Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn( + CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteJustAboveRangeValueToARangeRestrictedSigned16BitInteger_409() + CHIP_ERROR TestWriteJustAboveRangeValueToARangeRestrictedSigned16BitInteger_415() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82570,14 +82815,15 @@ class TestCluster : public TestCommandBridge { @"Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn( + CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMaxValueToARangeRestrictedSigned16BitInteger_410() + CHIP_ERROR TestWriteMaxValueToARangeRestrictedSigned16BitInteger_416() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82590,14 +82836,15 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write max value to a range-restricted signed 16-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn( + CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyRangeRestrictedSigned16BitIntegerValueHasNotChanged_411() + CHIP_ERROR TestVerifyRangeRestrictedSigned16BitIntegerValueHasNotChanged_417() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82606,7 +82853,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeRangeRestrictedInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify range-restricted signed 16-bit integer value has not changed Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -82619,7 +82866,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMinValidValueToARangeRestrictedSigned16BitInteger_412() + CHIP_ERROR TestWriteMinValidValueToARangeRestrictedSigned16BitInteger_418() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82633,7 +82880,7 @@ class TestCluster : public TestCommandBridge { NSLog( @"Write min valid value to a range-restricted signed 16-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -82641,7 +82888,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyRangeRestrictedSigned16BitIntegerValueIsAtMinValid_413() + CHIP_ERROR TestVerifyRangeRestrictedSigned16BitIntegerValueIsAtMinValid_419() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82650,7 +82897,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeRangeRestrictedInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify range-restricted signed 16-bit integer value is at min valid Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -82663,7 +82910,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMaxValidValueToARangeRestrictedSigned16BitInteger_414() + CHIP_ERROR TestWriteMaxValidValueToARangeRestrictedSigned16BitInteger_420() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82677,7 +82924,7 @@ class TestCluster : public TestCommandBridge { NSLog( @"Write max valid value to a range-restricted signed 16-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -82685,7 +82932,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyRangeRestrictedSigned16BitIntegerValueIsAtMaxValid_415() + CHIP_ERROR TestVerifyRangeRestrictedSigned16BitIntegerValueIsAtMaxValid_421() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82694,7 +82941,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeRangeRestrictedInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify range-restricted signed 16-bit integer value is at max valid Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -82707,7 +82954,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMiddleValidValueToARangeRestrictedSigned16BitInteger_416() + CHIP_ERROR TestWriteMiddleValidValueToARangeRestrictedSigned16BitInteger_422() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82721,7 +82968,7 @@ class TestCluster : public TestCommandBridge { NSLog(@"Write middle valid value to a range-restricted signed 16-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -82729,7 +82976,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyRangeRestrictedSigned16BitIntegerValueIsAtMidValid_417() + CHIP_ERROR TestVerifyRangeRestrictedSigned16BitIntegerValueIsAtMidValid_423() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82738,7 +82985,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeRangeRestrictedInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify range-restricted signed 16-bit integer value is at mid valid Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -82751,7 +82998,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadNullableRangeRestrictedUnsigned8BitInteger_418() + CHIP_ERROR TestReadNullableRangeRestrictedUnsigned8BitInteger_424() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82761,7 +83008,7 @@ class TestCluster : public TestCommandBridge { readAttributeNullableRangeRestrictedInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read nullable range-restricted unsigned 8-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -82775,7 +83022,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMinValueToANullableRangeRestrictedUnsigned8BitInteger_419() + CHIP_ERROR TestWriteMinValueToANullableRangeRestrictedUnsigned8BitInteger_425() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82789,14 +83036,15 @@ class TestCluster : public TestCommandBridge { @"integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue( + "status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteJustBelowRangeValueToANullableRangeRestrictedUnsigned8BitInteger_420() + CHIP_ERROR TestWriteJustBelowRangeValueToANullableRangeRestrictedUnsigned8BitInteger_426() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82810,14 +83058,15 @@ class TestCluster : public TestCommandBridge { @"unsigned 8-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue( + "status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteJustAboveRangeValueToANullableRangeRestrictedUnsigned8BitInteger_421() + CHIP_ERROR TestWriteJustAboveRangeValueToANullableRangeRestrictedUnsigned8BitInteger_427() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82831,14 +83080,15 @@ class TestCluster : public TestCommandBridge { @"unsigned 8-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue( + "status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMaxValueToANullableRangeRestrictedUnsigned8BitInteger_422() + CHIP_ERROR TestWriteMaxValueToANullableRangeRestrictedUnsigned8BitInteger_428() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82852,14 +83102,15 @@ class TestCluster : public TestCommandBridge { @"integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue( + "status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueHasNotChanged_423() + CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueHasNotChanged_429() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82869,7 +83120,7 @@ class TestCluster : public TestCommandBridge { readAttributeNullableRangeRestrictedInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify nullable range-restricted unsigned 8-bit integer value has not changed Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -82883,7 +83134,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMinValidValueToANullableRangeRestrictedUnsigned8BitInteger_424() + CHIP_ERROR TestWriteMinValidValueToANullableRangeRestrictedUnsigned8BitInteger_430() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82897,7 +83148,7 @@ class TestCluster : public TestCommandBridge { @"integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -82905,7 +83156,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueIsAtMinValid_425() + CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueIsAtMinValid_431() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82915,7 +83166,7 @@ class TestCluster : public TestCommandBridge { readAttributeNullableRangeRestrictedInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify nullable range-restricted unsigned 8-bit integer value is at min valid Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -82929,7 +83180,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMaxValidValueToANullableRangeRestrictedUnsigned8BitInteger_426() + CHIP_ERROR TestWriteMaxValidValueToANullableRangeRestrictedUnsigned8BitInteger_432() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82943,7 +83194,7 @@ class TestCluster : public TestCommandBridge { @"integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -82951,7 +83202,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueIsAtMaxValid_427() + CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueIsAtMaxValid_433() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82961,7 +83212,7 @@ class TestCluster : public TestCommandBridge { readAttributeNullableRangeRestrictedInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify nullable range-restricted unsigned 8-bit integer value is at max valid Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -82975,7 +83226,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMiddleValidValueToANullableRangeRestrictedUnsigned8BitInteger_428() + CHIP_ERROR TestWriteMiddleValidValueToANullableRangeRestrictedUnsigned8BitInteger_434() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -82989,7 +83240,7 @@ class TestCluster : public TestCommandBridge { @"8-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -82997,7 +83248,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueIsAtMidValid_429() + CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueIsAtMidValid_435() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83007,7 +83258,7 @@ class TestCluster : public TestCommandBridge { readAttributeNullableRangeRestrictedInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify nullable range-restricted unsigned 8-bit integer value is at mid valid Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -83021,7 +83272,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteNullValueToANullableRangeRestrictedUnsigned8BitInteger_430() + CHIP_ERROR TestWriteNullValueToANullableRangeRestrictedUnsigned8BitInteger_436() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83035,7 +83286,7 @@ class TestCluster : public TestCommandBridge { @"integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -83043,7 +83294,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueIsNull_431() + CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueIsNull_437() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83053,7 +83304,7 @@ class TestCluster : public TestCommandBridge { readAttributeNullableRangeRestrictedInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify nullable range-restricted unsigned 8-bit integer value is null Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -83066,7 +83317,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadNullableRangeRestrictedUnsigned16BitInteger_432() + CHIP_ERROR TestReadNullableRangeRestrictedUnsigned16BitInteger_438() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83076,7 +83327,7 @@ class TestCluster : public TestCommandBridge { readAttributeNullableRangeRestrictedInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read nullable range-restricted unsigned 16-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -83090,7 +83341,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMinValueToANullableRangeRestrictedUnsigned16BitInteger_433() + CHIP_ERROR TestWriteMinValueToANullableRangeRestrictedUnsigned16BitInteger_439() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83098,21 +83349,21 @@ class TestCluster : public TestCommandBridge { id nullableRangeRestrictedInt16uArgument; nullableRangeRestrictedInt16uArgument = [NSNumber numberWithUnsignedShort:0U]; - [cluster - writeAttributeNullableRangeRestrictedInt16uWithValue:nullableRangeRestrictedInt16uArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write min value to a nullable range-restricted unsigned 16-bit integer " - @"Error: %@", - err); + [cluster writeAttributeNullableRangeRestrictedInt16uWithValue:nullableRangeRestrictedInt16uArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write min value to a nullable range-restricted unsigned 16-bit " + @"integer Error: %@", + err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); - NextTest(); - }]; + VerifyOrReturn(CheckValue( + "status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteJustBelowRangeValueToANullableRangeRestrictedUnsigned16BitInteger_434() + CHIP_ERROR TestWriteJustBelowRangeValueToANullableRangeRestrictedUnsigned16BitInteger_440() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83120,21 +83371,21 @@ class TestCluster : public TestCommandBridge { id nullableRangeRestrictedInt16uArgument; nullableRangeRestrictedInt16uArgument = [NSNumber numberWithUnsignedShort:99U]; - [cluster - writeAttributeNullableRangeRestrictedInt16uWithValue:nullableRangeRestrictedInt16uArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write just-below-range value to a nullable range-restricted unsigned " - @"16-bit integer Error: %@", - err); + [cluster writeAttributeNullableRangeRestrictedInt16uWithValue:nullableRangeRestrictedInt16uArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write just-below-range value to a nullable range-restricted " + @"unsigned 16-bit integer Error: %@", + err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); - NextTest(); - }]; + VerifyOrReturn(CheckValue( + "status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteJustAboveRangeValueToANullableRangeRestrictedUnsigned16BitInteger_435() + CHIP_ERROR TestWriteJustAboveRangeValueToANullableRangeRestrictedUnsigned16BitInteger_441() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83142,21 +83393,21 @@ class TestCluster : public TestCommandBridge { id nullableRangeRestrictedInt16uArgument; nullableRangeRestrictedInt16uArgument = [NSNumber numberWithUnsignedShort:1001U]; - [cluster - writeAttributeNullableRangeRestrictedInt16uWithValue:nullableRangeRestrictedInt16uArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write just-above-range value to a nullable range-restricted unsigned " - @"16-bit integer Error: %@", - err); + [cluster writeAttributeNullableRangeRestrictedInt16uWithValue:nullableRangeRestrictedInt16uArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write just-above-range value to a nullable range-restricted " + @"unsigned 16-bit integer Error: %@", + err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); - NextTest(); - }]; + VerifyOrReturn(CheckValue( + "status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMaxValueToANullableRangeRestrictedUnsigned16BitInteger_436() + CHIP_ERROR TestWriteMaxValueToANullableRangeRestrictedUnsigned16BitInteger_442() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83164,21 +83415,21 @@ class TestCluster : public TestCommandBridge { id nullableRangeRestrictedInt16uArgument; nullableRangeRestrictedInt16uArgument = [NSNumber numberWithUnsignedShort:65534U]; - [cluster - writeAttributeNullableRangeRestrictedInt16uWithValue:nullableRangeRestrictedInt16uArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write max value to a nullable range-restricted unsigned 16-bit integer " - @"Error: %@", - err); + [cluster writeAttributeNullableRangeRestrictedInt16uWithValue:nullableRangeRestrictedInt16uArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write max value to a nullable range-restricted unsigned 16-bit " + @"integer Error: %@", + err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); - NextTest(); - }]; + VerifyOrReturn(CheckValue( + "status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueHasNotChanged_437() + CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueHasNotChanged_443() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83188,7 +83439,7 @@ class TestCluster : public TestCommandBridge { readAttributeNullableRangeRestrictedInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify nullable range-restricted unsigned 16-bit integer value has not changed Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -83202,7 +83453,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMinValidValueToANullableRangeRestrictedUnsigned16BitInteger_438() + CHIP_ERROR TestWriteMinValidValueToANullableRangeRestrictedUnsigned16BitInteger_444() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83216,7 +83467,7 @@ class TestCluster : public TestCommandBridge { @"16-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -83224,7 +83475,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueIsAtMinValid_439() + CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueIsAtMinValid_445() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83234,7 +83485,7 @@ class TestCluster : public TestCommandBridge { readAttributeNullableRangeRestrictedInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify nullable range-restricted unsigned 16-bit integer value is at min valid Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -83248,7 +83499,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMaxValidValueToANullableRangeRestrictedUnsigned16BitInteger_440() + CHIP_ERROR TestWriteMaxValidValueToANullableRangeRestrictedUnsigned16BitInteger_446() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83262,7 +83513,7 @@ class TestCluster : public TestCommandBridge { @"16-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -83270,7 +83521,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueIsAtMaxValid_441() + CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueIsAtMaxValid_447() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83280,7 +83531,7 @@ class TestCluster : public TestCommandBridge { readAttributeNullableRangeRestrictedInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify nullable range-restricted unsigned 16-bit integer value is at max valid Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -83294,7 +83545,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMiddleValidValueToANullableRangeRestrictedUnsigned16BitInteger_442() + CHIP_ERROR TestWriteMiddleValidValueToANullableRangeRestrictedUnsigned16BitInteger_448() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83308,7 +83559,7 @@ class TestCluster : public TestCommandBridge { @"16-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -83316,7 +83567,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueIsAtMidValid_443() + CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueIsAtMidValid_449() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83326,7 +83577,7 @@ class TestCluster : public TestCommandBridge { readAttributeNullableRangeRestrictedInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify nullable range-restricted unsigned 16-bit integer value is at mid valid Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -83340,7 +83591,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteNullValueToANullableRangeRestrictedUnsigned16BitInteger_444() + CHIP_ERROR TestWriteNullValueToANullableRangeRestrictedUnsigned16BitInteger_450() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83354,7 +83605,7 @@ class TestCluster : public TestCommandBridge { @"integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -83362,7 +83613,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueIsNull_445() + CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueIsNull_451() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83372,7 +83623,7 @@ class TestCluster : public TestCommandBridge { readAttributeNullableRangeRestrictedInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify nullable range-restricted unsigned 16-bit integer value is null Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -83385,7 +83636,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadNullableRangeRestrictedSigned8BitInteger_446() + CHIP_ERROR TestReadNullableRangeRestrictedSigned8BitInteger_452() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83395,7 +83646,7 @@ class TestCluster : public TestCommandBridge { readAttributeNullableRangeRestrictedInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read nullable range-restricted signed 8-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -83409,7 +83660,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMinValueToANullableRangeRestrictedSigned8BitInteger_447() + CHIP_ERROR TestWriteMinValueToANullableRangeRestrictedSigned8BitInteger_453() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83423,14 +83674,15 @@ class TestCluster : public TestCommandBridge { @"Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue( + "status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteJustBelowRangeValueToANullableRangeRestrictedSigned8BitInteger_448() + CHIP_ERROR TestWriteJustBelowRangeValueToANullableRangeRestrictedSigned8BitInteger_454() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83444,14 +83696,15 @@ class TestCluster : public TestCommandBridge { @"8-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue( + "status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteJustAboveRangeValueToANullableRangeRestrictedSigned8BitInteger_449() + CHIP_ERROR TestWriteJustAboveRangeValueToANullableRangeRestrictedSigned8BitInteger_455() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83465,14 +83718,15 @@ class TestCluster : public TestCommandBridge { @"8-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue( + "status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMaxValueToANullableRangeRestrictedSigned8BitInteger_450() + CHIP_ERROR TestWriteMaxValueToANullableRangeRestrictedSigned8BitInteger_456() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83486,14 +83740,15 @@ class TestCluster : public TestCommandBridge { @"Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue( + "status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyNullableRangeRestrictedSigned8BitIntegerValueHasNotChanged_451() + CHIP_ERROR TestVerifyNullableRangeRestrictedSigned8BitIntegerValueHasNotChanged_457() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83503,7 +83758,7 @@ class TestCluster : public TestCommandBridge { readAttributeNullableRangeRestrictedInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify nullable range-restricted signed 8-bit integer value has not changed Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -83517,7 +83772,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMinValidValueToANullableRangeRestrictedSigned8BitInteger_452() + CHIP_ERROR TestWriteMinValidValueToANullableRangeRestrictedSigned8BitInteger_458() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83531,7 +83786,7 @@ class TestCluster : public TestCommandBridge { @"integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -83539,7 +83794,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyNullableRangeRestrictedSigned8BitIntegerValueIsAtMinValid_453() + CHIP_ERROR TestVerifyNullableRangeRestrictedSigned8BitIntegerValueIsAtMinValid_459() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83549,7 +83804,7 @@ class TestCluster : public TestCommandBridge { readAttributeNullableRangeRestrictedInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify nullable range-restricted signed 8-bit integer value is at min valid Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -83563,7 +83818,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMaxValidValueToANullableRangeRestrictedSigned8BitInteger_454() + CHIP_ERROR TestWriteMaxValidValueToANullableRangeRestrictedSigned8BitInteger_460() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83577,7 +83832,7 @@ class TestCluster : public TestCommandBridge { @"integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -83585,7 +83840,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyNullableRangeRestrictedSigned8BitIntegerValueIsAtMaxValid_455() + CHIP_ERROR TestVerifyNullableRangeRestrictedSigned8BitIntegerValueIsAtMaxValid_461() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83595,7 +83850,7 @@ class TestCluster : public TestCommandBridge { readAttributeNullableRangeRestrictedInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify nullable range-restricted signed 8-bit integer value is at max valid Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -83609,7 +83864,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMiddleValidValueToANullableRangeRestrictedSigned8BitInteger_456() + CHIP_ERROR TestWriteMiddleValidValueToANullableRangeRestrictedSigned8BitInteger_462() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83623,7 +83878,7 @@ class TestCluster : public TestCommandBridge { @"8-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -83631,7 +83886,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyNullableRangeRestrictedSigned8BitIntegerValueIsAtMidValid_457() + CHIP_ERROR TestVerifyNullableRangeRestrictedSigned8BitIntegerValueIsAtMidValid_463() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83641,7 +83896,7 @@ class TestCluster : public TestCommandBridge { readAttributeNullableRangeRestrictedInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify nullable range-restricted signed 8-bit integer value is at mid valid Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -83655,7 +83910,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteNullValueToANullableRangeRestrictedSigned8BitInteger_458() + CHIP_ERROR TestWriteNullValueToANullableRangeRestrictedSigned8BitInteger_464() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83669,7 +83924,7 @@ class TestCluster : public TestCommandBridge { @"integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -83677,7 +83932,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyNullableRangeRestrictedSigned8BitIntegerValueIsAtNull_459() + CHIP_ERROR TestVerifyNullableRangeRestrictedSigned8BitIntegerValueIsAtNull_465() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83687,7 +83942,7 @@ class TestCluster : public TestCommandBridge { readAttributeNullableRangeRestrictedInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify nullable range-restricted signed 8-bit integer value is at null Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -83700,7 +83955,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadNullableRangeRestrictedSigned16BitInteger_460() + CHIP_ERROR TestReadNullableRangeRestrictedSigned16BitInteger_466() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83710,7 +83965,7 @@ class TestCluster : public TestCommandBridge { readAttributeNullableRangeRestrictedInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read nullable range-restricted signed 16-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -83724,7 +83979,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMinValueToANullableRangeRestrictedSigned16BitInteger_461() + CHIP_ERROR TestWriteMinValueToANullableRangeRestrictedSigned16BitInteger_467() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83732,21 +83987,21 @@ class TestCluster : public TestCommandBridge { id nullableRangeRestrictedInt16sArgument; nullableRangeRestrictedInt16sArgument = [NSNumber numberWithShort:-32767]; - [cluster - writeAttributeNullableRangeRestrictedInt16sWithValue:nullableRangeRestrictedInt16sArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write min value to a nullable range-restricted signed 16-bit integer " - @"Error: %@", - err); + [cluster writeAttributeNullableRangeRestrictedInt16sWithValue:nullableRangeRestrictedInt16sArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write min value to a nullable range-restricted signed 16-bit " + @"integer Error: %@", + err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); - NextTest(); - }]; + VerifyOrReturn(CheckValue( + "status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteJustBelowRangeValueToANullableRangeRestrictedSigned16BitInteger_462() + CHIP_ERROR TestWriteJustBelowRangeValueToANullableRangeRestrictedSigned16BitInteger_468() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83754,21 +84009,21 @@ class TestCluster : public TestCommandBridge { id nullableRangeRestrictedInt16sArgument; nullableRangeRestrictedInt16sArgument = [NSNumber numberWithShort:-151]; - [cluster - writeAttributeNullableRangeRestrictedInt16sWithValue:nullableRangeRestrictedInt16sArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write just-below-range value to a nullable range-restricted signed " - @"16-bit integer Error: %@", - err); + [cluster writeAttributeNullableRangeRestrictedInt16sWithValue:nullableRangeRestrictedInt16sArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write just-below-range value to a nullable range-restricted signed " + @"16-bit integer Error: %@", + err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); - NextTest(); - }]; + VerifyOrReturn(CheckValue( + "status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteJustAboveRangeValueToANullableRangeRestrictedSigned16BitInteger_463() + CHIP_ERROR TestWriteJustAboveRangeValueToANullableRangeRestrictedSigned16BitInteger_469() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83776,21 +84031,21 @@ class TestCluster : public TestCommandBridge { id nullableRangeRestrictedInt16sArgument; nullableRangeRestrictedInt16sArgument = [NSNumber numberWithShort:201]; - [cluster - writeAttributeNullableRangeRestrictedInt16sWithValue:nullableRangeRestrictedInt16sArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write just-above-range value to a nullable range-restricted signed " - @"16-bit integer Error: %@", - err); + [cluster writeAttributeNullableRangeRestrictedInt16sWithValue:nullableRangeRestrictedInt16sArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write just-above-range value to a nullable range-restricted signed " + @"16-bit integer Error: %@", + err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); - NextTest(); - }]; + VerifyOrReturn(CheckValue( + "status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMaxValueToANullableRangeRestrictedSigned16BitInteger_464() + CHIP_ERROR TestWriteMaxValueToANullableRangeRestrictedSigned16BitInteger_470() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83798,21 +84053,21 @@ class TestCluster : public TestCommandBridge { id nullableRangeRestrictedInt16sArgument; nullableRangeRestrictedInt16sArgument = [NSNumber numberWithShort:32767]; - [cluster - writeAttributeNullableRangeRestrictedInt16sWithValue:nullableRangeRestrictedInt16sArgument - completionHandler:^(NSError * _Nullable err) { - NSLog(@"Write max value to a nullable range-restricted signed 16-bit integer " - @"Error: %@", - err); + [cluster writeAttributeNullableRangeRestrictedInt16sWithValue:nullableRangeRestrictedInt16sArgument + completionHandler:^(NSError * _Nullable err) { + NSLog(@"Write max value to a nullable range-restricted signed 16-bit " + @"integer Error: %@", + err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); - NextTest(); - }]; + VerifyOrReturn(CheckValue( + "status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + NextTest(); + }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyNullableRangeRestrictedSigned16BitIntegerValueHasNotChanged_465() + CHIP_ERROR TestVerifyNullableRangeRestrictedSigned16BitIntegerValueHasNotChanged_471() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83822,7 +84077,7 @@ class TestCluster : public TestCommandBridge { readAttributeNullableRangeRestrictedInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify nullable range-restricted signed 16-bit integer value has not changed Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -83836,7 +84091,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMinValidValueToANullableRangeRestrictedSigned16BitInteger_466() + CHIP_ERROR TestWriteMinValidValueToANullableRangeRestrictedSigned16BitInteger_472() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83850,7 +84105,7 @@ class TestCluster : public TestCommandBridge { @"integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -83858,7 +84113,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyNullableRangeRestrictedSigned16BitIntegerValueIsAtMinValid_467() + CHIP_ERROR TestVerifyNullableRangeRestrictedSigned16BitIntegerValueIsAtMinValid_473() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83868,7 +84123,7 @@ class TestCluster : public TestCommandBridge { readAttributeNullableRangeRestrictedInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify nullable range-restricted signed 16-bit integer value is at min valid Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -83882,7 +84137,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMaxValidValueToANullableRangeRestrictedSigned16BitInteger_468() + CHIP_ERROR TestWriteMaxValidValueToANullableRangeRestrictedSigned16BitInteger_474() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83896,7 +84151,7 @@ class TestCluster : public TestCommandBridge { @"integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -83904,7 +84159,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyNullableRangeRestrictedSigned16BitIntegerValueIsAtMaxValid_469() + CHIP_ERROR TestVerifyNullableRangeRestrictedSigned16BitIntegerValueIsAtMaxValid_475() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83914,7 +84169,7 @@ class TestCluster : public TestCommandBridge { readAttributeNullableRangeRestrictedInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify nullable range-restricted signed 16-bit integer value is at max valid Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -83928,7 +84183,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteMiddleValidValueToANullableRangeRestrictedSigned16BitInteger_470() + CHIP_ERROR TestWriteMiddleValidValueToANullableRangeRestrictedSigned16BitInteger_476() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83942,7 +84197,7 @@ class TestCluster : public TestCommandBridge { @"16-bit integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -83950,7 +84205,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyNullableRangeRestrictedSigned16BitIntegerValueIsAtMidValid_471() + CHIP_ERROR TestVerifyNullableRangeRestrictedSigned16BitIntegerValueIsAtMidValid_477() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83960,7 +84215,7 @@ class TestCluster : public TestCommandBridge { readAttributeNullableRangeRestrictedInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify nullable range-restricted signed 16-bit integer value is at mid valid Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -83974,7 +84229,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteNullValueToANullableRangeRestrictedSigned16BitInteger_472() + CHIP_ERROR TestWriteNullValueToANullableRangeRestrictedSigned16BitInteger_478() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -83988,7 +84243,7 @@ class TestCluster : public TestCommandBridge { @"integer Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -83996,7 +84251,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestVerifyNullableRangeRestrictedSigned16BitIntegerValueIsNull_473() + CHIP_ERROR TestVerifyNullableRangeRestrictedSigned16BitIntegerValueIsNull_479() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -84006,7 +84261,7 @@ class TestCluster : public TestCommandBridge { readAttributeNullableRangeRestrictedInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify nullable range-restricted signed 16-bit integer value is null Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -84019,7 +84274,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeThatReturnsGeneralStatusOnWrite_474() + CHIP_ERROR TestWriteAttributeThatReturnsGeneralStatusOnWrite_480() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -84031,14 +84286,15 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute that returns general status on write Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_DATA_TYPE)); + VerifyOrReturn( + CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_DATA_TYPE)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteAttributeThatReturnsClusterSpecificStatusOnWrite_475() + CHIP_ERROR TestWriteAttributeThatReturnsClusterSpecificStatusOnWrite_481() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -84051,14 +84307,14 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute that returns cluster-specific status on write Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_FAILURE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_FAILURE)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeThatReturnsGeneralStatusOnRead_476() + CHIP_ERROR TestReadAttributeThatReturnsGeneralStatusOnRead_482() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -84067,14 +84323,14 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeGeneralErrorBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute that returns general status on read Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_DATA_TYPE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_DATA_TYPE)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAttributeThatReturnsClusterSpecificStatusOnRead_477() + CHIP_ERROR TestReadAttributeThatReturnsClusterSpecificStatusOnRead_483() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -84083,14 +84339,14 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeClusterErrorBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read attribute that returns cluster-specific status on read Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_FAILURE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_FAILURE)); NextTest(); }]; return CHIP_NO_ERROR; } - CHIP_ERROR TestReadAcceptedCommandListAttribute_478() + CHIP_ERROR TestReadAcceptedCommandListAttribute_484() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -84099,7 +84355,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"read AcceptedCommandList attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -84130,7 +84386,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadGeneratedCommandListAttribute_479() + CHIP_ERROR TestReadGeneratedCommandListAttribute_485() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -84139,7 +84395,7 @@ class TestCluster : public TestCommandBridge { [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"read GeneratedCommandList attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -84161,7 +84417,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWriteStructTypedAttribute_480() + CHIP_ERROR TestWriteStructTypedAttribute_486() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -84182,7 +84438,7 @@ class TestCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write struct-typed attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -84190,7 +84446,7 @@ class TestCluster : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadStructTypedAttribute_481() + CHIP_ERROR TestReadStructTypedAttribute_487() { CHIPDevice * device = GetDevice("alpha"); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -84200,7 +84456,7 @@ class TestCluster : public TestCommandBridge { CHIPTestClusterClusterSimpleStruct * _Nullable value, NSError * _Nullable err) { NSLog(@"Read struct-typed attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -84468,7 +84724,7 @@ class TestConstraints : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT32U Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -84485,7 +84741,7 @@ class TestConstraints : public TestCommandBridge { [cluster readAttributeInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT32U Value MinValue Constraints Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("int32u", [value unsignedIntValue], 5UL)); @@ -84506,7 +84762,7 @@ class TestConstraints : public TestCommandBridge { [cluster readAttributeInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT32U Value MaxValue Constraints Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMaxValue("int32u", [value unsignedIntValue], 5UL)); @@ -84527,7 +84783,7 @@ class TestConstraints : public TestCommandBridge { [cluster readAttributeInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT32U Value NotValue Constraints Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("int32u", value, 6UL)); @@ -84551,7 +84807,7 @@ class TestConstraints : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT32U Value Back to Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -84571,7 +84827,7 @@ class TestConstraints : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute CHAR_STRING Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -84588,7 +84844,7 @@ class TestConstraints : public TestCommandBridge { [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute CHAR_STRING Value MinLength Constraints Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintMinLength("charString", [value length], 5)); NextTest(); @@ -84606,7 +84862,7 @@ class TestConstraints : public TestCommandBridge { [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute CHAR_STRING Value MaxLength Constraints Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintMaxLength("charString", [value length], 20)); NextTest(); @@ -84624,7 +84880,7 @@ class TestConstraints : public TestCommandBridge { [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute CHAR_STRING Value StartsWith Constraints Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintStartsWith("charString", value, "**")); NextTest(); @@ -84642,7 +84898,7 @@ class TestConstraints : public TestCommandBridge { [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute CHAR_STRING Value EndsWith Constraints Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintEndsWith("charString", value, "**")); NextTest(); @@ -84663,7 +84919,7 @@ class TestConstraints : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute CHAR_STRING Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -84680,7 +84936,7 @@ class TestConstraints : public TestCommandBridge { [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute CHAR_STRING Value isLowerCase/isUpperCase Constraints Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintIsUpperCase("charString", value, false)); VerifyOrReturn(CheckConstraintIsLowerCase("charString", value, true)); @@ -84702,7 +84958,7 @@ class TestConstraints : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute CHAR_STRING Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -84719,7 +84975,7 @@ class TestConstraints : public TestCommandBridge { [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute CHAR_STRING Value isLowerCase/isUpperCase Constraints Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintIsUpperCase("charString", value, true)); VerifyOrReturn(CheckConstraintIsLowerCase("charString", value, false)); @@ -84741,7 +84997,7 @@ class TestConstraints : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute CHAR_STRING Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -84758,7 +85014,7 @@ class TestConstraints : public TestCommandBridge { [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute CHAR_STRING Value isLowerCase/isUpperCase Constraints Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintIsUpperCase("charString", value, false)); VerifyOrReturn(CheckConstraintIsLowerCase("charString", value, false)); @@ -84780,7 +85036,7 @@ class TestConstraints : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute CHAR_STRING Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -84797,7 +85053,7 @@ class TestConstraints : public TestCommandBridge { [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute CHAR_STRING Value isHexString Constraints Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintIsHexString("charString", value, false)); NextTest(); @@ -84818,7 +85074,7 @@ class TestConstraints : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute CHAR_STRING Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -84835,7 +85091,7 @@ class TestConstraints : public TestCommandBridge { [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute CHAR_STRING Value isHexString Constraints Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintIsHexString("charString", value, true)); NextTest(); @@ -84856,7 +85112,7 @@ class TestConstraints : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute CHAR_STRING Value Back to Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -85948,7 +86204,7 @@ class TestSaveAs : public TestCommandBridge { CHIPTestClusterClusterTestAddArgumentsResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Add Arguments Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.returnValue; @@ -85978,7 +86234,7 @@ class TestSaveAs : public TestCommandBridge { CHIPTestClusterClusterTestAddArgumentsResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Add Arguments Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.returnValue; @@ -86005,7 +86261,7 @@ class TestSaveAs : public TestCommandBridge { CHIPTestClusterClusterTestAddArgumentsResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Add Arguments Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (values.returnValue != nil) { VerifyOrReturn( @@ -86028,7 +86284,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute BOOLEAN Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -86056,7 +86312,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute BOOLEAN Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -86073,7 +86329,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute BOOLEAN Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("boolean", value, readAttributeBooleanDefaultValue)); @@ -86097,7 +86353,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute BOOLEAN DefaultValue Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -86114,7 +86370,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute BOOLEAN False Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -86137,7 +86393,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute BITMAP8 Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -86165,7 +86421,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute BITMAP8 Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -86182,7 +86438,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute BITMAP8 Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("bitmap8", value, readAttributeBitmap8DefaultValue)); @@ -86206,7 +86462,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute BITMAP8 Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -86223,7 +86479,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute BITMAP8 Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -86246,7 +86502,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeBitmap16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute BITMAP16 Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -86274,7 +86530,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute BITMAP16 Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -86291,7 +86547,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeBitmap16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute BITMAP16 Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("bitmap16", value, readAttributeBitmap16DefaultValue)); @@ -86315,7 +86571,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute BITMAP16 Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -86332,7 +86588,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeBitmap16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute BITMAP16 Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -86355,7 +86611,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeBitmap32WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute BITMAP32 Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -86383,7 +86639,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute BITMAP32 Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -86400,7 +86656,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeBitmap32WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute BITMAP32 Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("bitmap32", value, readAttributeBitmap32DefaultValue)); @@ -86424,7 +86680,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute BITMAP32 Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -86441,7 +86697,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeBitmap32WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute BITMAP32 Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -86464,7 +86720,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeBitmap64WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute BITMAP64 Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -86492,7 +86748,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute BITMAP64 Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -86509,7 +86765,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeBitmap64WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute BITMAP64 Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("bitmap64", value, readAttributeBitmap64DefaultValue)); @@ -86533,7 +86789,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute BITMAP64 Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -86550,7 +86806,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeBitmap64WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute BITMAP64 Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -86573,7 +86829,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT8U Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -86601,7 +86857,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT8U Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -86618,7 +86874,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT8U Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("int8u", value, readAttributeInt8uDefaultValue)); @@ -86642,7 +86898,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT8U Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -86659,7 +86915,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT8U Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -86682,7 +86938,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT16U Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -86710,7 +86966,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT16U Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -86727,7 +86983,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT16U Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("int16u", value, readAttributeInt16uDefaultValue)); @@ -86751,7 +87007,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT16U Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -86768,7 +87024,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT16U Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -86791,7 +87047,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT32U Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -86819,7 +87075,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT32U Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -86836,7 +87092,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT32U Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("int32u", value, readAttributeInt32uDefaultValue)); @@ -86860,7 +87116,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT32U Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -86877,7 +87133,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT32U Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -86900,7 +87156,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT64U Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -86928,7 +87184,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT64U Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -86945,7 +87201,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT64U Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("int64u", value, readAttributeInt64uDefaultValue)); @@ -86969,7 +87225,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT64U Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -86986,7 +87242,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT64U Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -87009,7 +87265,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT8S Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -87037,7 +87293,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT8S Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -87054,7 +87310,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT8S Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("int8s", value, readAttributeInt8sDefaultValue)); @@ -87078,7 +87334,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT8S Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -87095,7 +87351,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT8S Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -87118,7 +87374,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT16S Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -87146,7 +87402,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT16S Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -87163,7 +87419,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT16S Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("int16s", value, readAttributeInt16sDefaultValue)); @@ -87187,7 +87443,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT16S Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -87204,7 +87460,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT16S Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -87227,7 +87483,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT32S Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -87255,7 +87511,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT32S Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -87272,7 +87528,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT32S Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("int32s", value, readAttributeInt32sDefaultValue)); @@ -87296,7 +87552,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT32S Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -87313,7 +87569,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT32S Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -87336,7 +87592,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT64S Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -87364,7 +87620,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INTS Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -87381,7 +87637,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT64S Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("int64s", value, readAttributeInt64sDefaultValue)); @@ -87405,7 +87661,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute INT64S Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -87422,7 +87678,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute INT64S Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -87445,7 +87701,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute ENUM8 Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -87473,7 +87729,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute ENUM8 Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -87490,7 +87746,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute ENUM8 Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("enum8", value, readAttributeEnum8DefaultValue)); @@ -87514,7 +87770,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute ENUM8 Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -87531,7 +87787,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute ENUM8 Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -87554,7 +87810,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute ENUM16 Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -87582,7 +87838,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute ENUM16 Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -87599,7 +87855,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute ENUM16 Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("enum16", value, readAttributeEnum16DefaultValue)); @@ -87623,7 +87879,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute ENUM16 Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -87640,7 +87896,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute ENUM16 Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -87663,7 +87919,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeEpochUsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute EPOCH_US Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -87691,7 +87947,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute EPOCH_US Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -87708,7 +87964,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeEpochUsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute EPOCH_US Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("epochUs", value, readAttributeEpochUSDefaultValue)); @@ -87732,7 +87988,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute EPOCH_US Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -87749,7 +88005,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeEpochUsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute EPOCH_US Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -87772,7 +88028,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeEpochSWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute EPOCH_S Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -87800,7 +88056,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute EPOCH_S Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -87817,7 +88073,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeEpochSWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute EPOCH_S Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("epochS", value, readAttributeEpochSDefaultValue)); @@ -87841,7 +88097,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute EPOCH_S Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -87858,7 +88114,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeEpochSWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute EPOCH_S Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -87881,7 +88137,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeVendorIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute vendor_id Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -87909,7 +88165,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute vendor_id Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -87926,7 +88182,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeVendorIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute vendor_id Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("vendorId", value, readAttributeVendorIdDefaultValue)); @@ -87950,7 +88206,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute vendor_id Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -87967,7 +88223,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeVendorIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute vendor_id Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -87990,7 +88246,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute char_string Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -88015,7 +88271,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute char_string Default Value and compare to saved value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -88040,7 +88296,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute char_string Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -88058,7 +88314,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute char_string Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -88087,7 +88343,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute char_string Not Default Value and compare to saved value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -88116,7 +88372,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute char_string Not Default Value from saved value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -88133,7 +88389,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute char_string Not Default Value and compare to expected value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -88158,7 +88414,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute char_string Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -88176,7 +88432,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute octet_string Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -88201,7 +88457,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute octet_string Default Value and compare to saved value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -88226,7 +88482,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute octet_string Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -88244,7 +88500,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute octet_string Not Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -88274,7 +88530,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute octet_string Not Default Value and compare to saved value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -88303,7 +88559,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute octet_string Not Default Value from saved value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -88320,7 +88576,7 @@ class TestSaveAs : public TestCommandBridge { [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute octet_string Not Default Value and compare to expected value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -88346,7 +88602,7 @@ class TestSaveAs : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write attribute octet_string Default Value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -88472,7 +88728,7 @@ class TestConfigVariables : public TestCommandBridge { CHIPTestClusterClusterTestAddArgumentsResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Add Arguments Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.returnValue; @@ -88502,7 +88758,7 @@ class TestConfigVariables : public TestCommandBridge { CHIPTestClusterClusterTestAddArgumentsResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send Test Add Arguments Command Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.returnValue; @@ -88638,7 +88894,7 @@ class TestDescriptorCluster : public TestCommandBridge { [cluster readAttributeDeviceListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute Device list Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -88662,7 +88918,7 @@ class TestDescriptorCluster : public TestCommandBridge { [cluster readAttributeServerListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute Server list Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -88710,7 +88966,7 @@ class TestDescriptorCluster : public TestCommandBridge { [cluster readAttributeClientListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute Client list Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -88733,7 +88989,7 @@ class TestDescriptorCluster : public TestCommandBridge { [cluster readAttributePartsListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read attribute Parts list Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -88961,7 +89217,7 @@ class TestBasicInformation : public TestCommandBridge { [cluster readAttributeLocationWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read location Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -88986,7 +89242,7 @@ class TestBasicInformation : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write location Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -89003,7 +89259,7 @@ class TestBasicInformation : public TestCommandBridge { [cluster readAttributeLocationWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read back location Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -89028,7 +89284,7 @@ class TestBasicInformation : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Restore initial location value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -89045,7 +89301,7 @@ class TestBasicInformation : public TestCommandBridge { [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read AttributeList value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -89091,7 +89347,7 @@ class TestBasicInformation : public TestCommandBridge { [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read NodeLabel Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -89116,7 +89372,7 @@ class TestBasicInformation : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write NodeLabel Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -89133,7 +89389,7 @@ class TestBasicInformation : public TestCommandBridge { [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read back NodeLabel Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -89155,7 +89411,7 @@ class TestBasicInformation : public TestCommandBridge { [cluster readAttributeLocalConfigDisabledWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read LocalConfigDisabled Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -89180,7 +89436,7 @@ class TestBasicInformation : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write LocalConfigDisabled Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -89197,7 +89453,7 @@ class TestBasicInformation : public TestCommandBridge { [cluster readAttributeLocalConfigDisabledWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read back LocalConfigDisabled Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -89234,7 +89490,7 @@ class TestBasicInformation : public TestCommandBridge { [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read back NodeLabel after reboot Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -89259,7 +89515,7 @@ class TestBasicInformation : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Restore initial NodeLabel value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -89276,7 +89532,7 @@ class TestBasicInformation : public TestCommandBridge { [cluster readAttributeLocalConfigDisabledWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read back LocalConfigDisabled after reboot Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -89301,7 +89557,7 @@ class TestBasicInformation : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Restore initial LocalConfigDisabled value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -89625,7 +89881,7 @@ class TestGeneralCommissioning : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write Breadcrumb (1/2) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -89644,7 +89900,7 @@ class TestGeneralCommissioning : public TestCommandBridge { [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read back Breadcrumb (1/2) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -89671,7 +89927,7 @@ class TestGeneralCommissioning : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write Breadcrumb (2/2) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -89690,7 +89946,7 @@ class TestGeneralCommissioning : public TestCommandBridge { [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read back Breadcrumb (2/2) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -89729,7 +89985,7 @@ class TestGeneralCommissioning : public TestCommandBridge { [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read back Breadcrumb after reboot and ensure it was not persisted Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -89756,7 +90012,7 @@ class TestGeneralCommissioning : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Set Breadcrumb to nonzero value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -89775,7 +90031,7 @@ class TestGeneralCommissioning : public TestCommandBridge { [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check Breadcrumb set worked Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -89800,7 +90056,7 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIPGeneralCommissioningClusterCommissioningCompleteResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send CommissioningComplete without armed fail-safe Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.errorCode; @@ -89824,7 +90080,7 @@ class TestGeneralCommissioning : public TestCommandBridge { [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check Breadcrumb was not touched by invalid CommissioningComplete Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -89851,7 +90107,7 @@ class TestGeneralCommissioning : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Open Commissioning Window from alpha Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -89875,7 +90131,7 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIPGeneralCommissioningClusterArmFailSafeResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Try to arm fail-safe Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.errorCode; @@ -89899,7 +90155,7 @@ class TestGeneralCommissioning : public TestCommandBridge { [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check Breadcrumb was not touched by ArmFailSafe with commissioning window open Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -89926,7 +90182,7 @@ class TestGeneralCommissioning : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Reset Breadcrumb to 0 so we can commission Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -89967,7 +90223,7 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIPGeneralCommissioningClusterArmFailSafeResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Arm fail-safe Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.errorCode; @@ -89991,7 +90247,7 @@ class TestGeneralCommissioning : public TestCommandBridge { [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check Breadcrumb was properly set by ArmFailSafe Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -90020,7 +90276,7 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIPGeneralCommissioningClusterArmFailSafeResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Try to arm fail-safe from wrong fabric Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.errorCode; @@ -90044,7 +90300,7 @@ class TestGeneralCommissioning : public TestCommandBridge { [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check Breadcrumb was not touched by ArmFailSafe with existing fail-safe armed Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -90069,7 +90325,7 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIPGeneralCommissioningClusterCommissioningCompleteResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Send CommissioningComplete from wrong fabric Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.errorCode; @@ -90093,7 +90349,7 @@ class TestGeneralCommissioning : public TestCommandBridge { [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check Breadcrumb was not touched by CommissioningComplete from wrong fabric Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -90118,7 +90374,7 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIPGeneralCommissioningClusterCommissioningCompleteResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Close out the fail-safe gracefully Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.errorCode; @@ -90142,7 +90398,7 @@ class TestGeneralCommissioning : public TestCommandBridge { [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check Breadcrumb was reset to 0 by CommissioningComplete Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -90171,7 +90427,7 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIPGeneralCommissioningClusterArmFailSafeResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Arm fail-safe again Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.errorCode; @@ -90195,7 +90451,7 @@ class TestGeneralCommissioning : public TestCommandBridge { [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check Breadcrumb was set by arming fail-safe again Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -90224,7 +90480,7 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIPGeneralCommissioningClusterArmFailSafeResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Force-expire the fail-safe Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.errorCode; @@ -90248,7 +90504,7 @@ class TestGeneralCommissioning : public TestCommandBridge { [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check Breadcrumb was reset by expiring the fail-safe Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -90273,7 +90529,7 @@ class TestGeneralCommissioning : public TestCommandBridge { readAttributeSupportsConcurrentConnectionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Validate presence of SupportsConcurrentConnection Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("supportsConcurrentConnection", "", "bool")); NextTest(); @@ -90386,7 +90642,7 @@ class TestIdentifyCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Send Identify command and expect success response Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -90539,7 +90795,7 @@ class TestOperationalCredentialsCluster : public TestCommandBridge { [cluster readAttributeSupportedFabricsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read number of supported fabrics Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("supportedFabrics", "", "uint8")); if (value != nil) { @@ -90563,7 +90819,7 @@ class TestOperationalCredentialsCluster : public TestCommandBridge { [cluster readAttributeCommissionedFabricsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read number of commissioned fabrics Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("commissionedFabrics", "", "uint8")); if (value != nil) { @@ -90588,7 +90844,7 @@ class TestOperationalCredentialsCluster : public TestCommandBridge { [cluster readAttributeCurrentFabricIndexWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read current fabric index Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentFabricIndex", "", "uint8")); if (value != nil) { @@ -90619,7 +90875,7 @@ class TestOperationalCredentialsCluster : public TestCommandBridge { CHIPOperationalCredentialsClusterNOCResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Remove nonexistent fabric Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.statusCode; @@ -90646,7 +90902,7 @@ class TestOperationalCredentialsCluster : public TestCommandBridge { completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read fabric list before setting label Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -90679,7 +90935,7 @@ class TestOperationalCredentialsCluster : public TestCommandBridge { CHIPOperationalCredentialsClusterNOCResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Set the fabric label Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.statusCode; @@ -90712,7 +90968,7 @@ class TestOperationalCredentialsCluster : public TestCommandBridge { completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read fabric list after setting label Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -91042,7 +91298,7 @@ class TestModeSelectCluster : public TestCommandBridge { [cluster readAttributeDescriptionWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Read Description Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -91064,7 +91320,7 @@ class TestModeSelectCluster : public TestCommandBridge { [cluster readAttributeStandardNamespaceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read StandardNamespace Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -91087,7 +91343,7 @@ class TestModeSelectCluster : public TestCommandBridge { [cluster readAttributeSupportedModesWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read SupportedModes Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -91124,7 +91380,7 @@ class TestModeSelectCluster : public TestCommandBridge { [cluster readAttributeCurrentModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read CurrentMode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -91146,7 +91402,7 @@ class TestModeSelectCluster : public TestCommandBridge { [cluster readAttributeStartUpModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read StartUpMode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -91169,7 +91425,7 @@ class TestModeSelectCluster : public TestCommandBridge { [cluster readAttributeOnModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read OnMode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -91194,7 +91450,7 @@ class TestModeSelectCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Change to Supported Mode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -91212,7 +91468,7 @@ class TestModeSelectCluster : public TestCommandBridge { [cluster readAttributeCurrentModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify Current Mode Change Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -91240,7 +91496,7 @@ class TestModeSelectCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Change to Unsupported Mode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_COMMAND)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_COMMAND)); NextTest(); }]; @@ -91256,7 +91512,7 @@ class TestModeSelectCluster : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Toggle OnOff Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -91273,7 +91529,7 @@ class TestModeSelectCluster : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Toggle OnOff Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -91290,7 +91546,7 @@ class TestModeSelectCluster : public TestCommandBridge { [cluster readAttributeCurrentModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify Current Mode does not change when OnMode is null Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -91315,7 +91571,7 @@ class TestModeSelectCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Change to Unsupported OnMode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_COMMAND)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_COMMAND)); NextTest(); }]; @@ -91334,7 +91590,7 @@ class TestModeSelectCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Change OnMode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -91352,7 +91608,7 @@ class TestModeSelectCluster : public TestCommandBridge { [cluster readAttributeOnModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify OnMode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -91378,7 +91634,7 @@ class TestModeSelectCluster : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Toggle OnOff Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -91395,7 +91651,7 @@ class TestModeSelectCluster : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Toggle OnOff Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -91412,7 +91668,7 @@ class TestModeSelectCluster : public TestCommandBridge { [cluster readAttributeCurrentModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify Current Mode Changes if OnMode is not null Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -91437,7 +91693,7 @@ class TestModeSelectCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Change to Unsupported StartUp Mode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_COMMAND)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_COMMAND)); NextTest(); }]; @@ -91456,7 +91712,7 @@ class TestModeSelectCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Change to Supported StartUp Mode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -91473,7 +91729,7 @@ class TestModeSelectCluster : public TestCommandBridge { [cluster readAttributeStartUpModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify StartUp Mode Change Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -91499,7 +91755,7 @@ class TestModeSelectCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Change CurrentMode to another value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -91519,7 +91775,7 @@ class TestModeSelectCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Change On Mode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -91539,7 +91795,7 @@ class TestModeSelectCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Set StartUpOnOff Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -91571,7 +91827,7 @@ class TestModeSelectCluster : public TestCommandBridge { [cluster readAttributeCurrentModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify Current Mode Change based on OnMode, as it overwrites StartUpMode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -91596,7 +91852,7 @@ class TestModeSelectCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Change On Mode to Null Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -91628,7 +91884,7 @@ class TestModeSelectCluster : public TestCommandBridge { [cluster readAttributeCurrentModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify Current Mode Change based on new StartUp Mode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -91758,7 +92014,7 @@ class TestSelfFabricRemoval : public TestCommandBridge { [cluster readAttributeCommissionedFabricsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read number of commissioned fabrics Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -91784,7 +92040,7 @@ class TestSelfFabricRemoval : public TestCommandBridge { [cluster readAttributeCurrentFabricIndexWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read current fabric index Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentFabricIndex", "", "uint8")); if (value != nil) { @@ -91815,7 +92071,7 @@ class TestSelfFabricRemoval : public TestCommandBridge { CHIPOperationalCredentialsClusterNOCResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Remove single own fabric Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -92410,7 +92666,7 @@ class TestBinding : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write empty binding table Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -92430,7 +92686,7 @@ class TestBinding : public TestCommandBridge { completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read empty binding table Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -92468,7 +92724,7 @@ class TestBinding : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write invalid binding table Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; @@ -92505,7 +92761,7 @@ class TestBinding : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write binding table (endpoint 1) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -92526,7 +92782,7 @@ class TestBinding : public TestCommandBridge { completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read binding table (endpoint 1) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -92574,7 +92830,7 @@ class TestBinding : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write binding table (endpoint 0) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -92595,7 +92851,7 @@ class TestBinding : public TestCommandBridge { completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read binding table (endpoint 0) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -92626,7 +92882,7 @@ class TestBinding : public TestCommandBridge { completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify endpoint 1 not changed Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -92796,7 +93052,7 @@ class TestUserLabelCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clear User Label List Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -92813,7 +93069,7 @@ class TestUserLabelCluster : public TestCommandBridge { [cluster readAttributeLabelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read User Label List Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -92857,7 +93113,7 @@ class TestUserLabelCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write User Label List Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -92889,7 +93145,7 @@ class TestUserLabelCluster : public TestCommandBridge { [cluster readAttributeLabelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -93045,7 +93301,7 @@ class TestArmFailSafe : public TestCommandBridge { completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Query fabrics list Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -93077,7 +93333,7 @@ class TestArmFailSafe : public TestCommandBridge { CHIPGeneralCommissioningClusterArmFailSafeResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"ArmFailSafe on target device with timeout 0 Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.errorCode; @@ -93099,7 +93355,7 @@ class TestArmFailSafe : public TestCommandBridge { [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads NodeLabel mandatory attribute of target device Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -93366,7 +93622,7 @@ class TestMultiAdmin : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Open Commissioning Window from alpha Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -93397,7 +93653,7 @@ class TestMultiAdmin : public TestCommandBridge { completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Check that we just have the one fabric and did not add a new one Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -93421,7 +93677,7 @@ class TestMultiAdmin : public TestCommandBridge { [cluster revokeCommissioningWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Close Commissioning Window after failed commissioning Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -93443,7 +93699,7 @@ class TestMultiAdmin : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Open Commissioning Window from alpha again Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -93482,7 +93738,7 @@ class TestMultiAdmin : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Open Commissioning Window from beta Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -93517,7 +93773,7 @@ class TestMultiAdmin : public TestCommandBridge { [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: NodeLabel from alpha Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -93545,7 +93801,7 @@ class TestMultiAdmin : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"write the mandatory attribute NodeLabel from beta Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -93562,7 +93818,7 @@ class TestMultiAdmin : public TestCommandBridge { [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"read the mandatory attribute: NodeLabel from gamma Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintNotValue("nodeLabel", value, readFromAlpha)); @@ -93586,7 +93842,7 @@ class TestMultiAdmin : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"write the mandatory attribute NodeLabel back to default Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -93730,7 +93986,7 @@ class Test_TC_SWDIAG_1_1 : public TestCommandBridge { [cluster readAttributeThreadMetricsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Reads a list of ThreadMetrics struct non-global attribute from DUT. Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("threadMetrics", "", "list")); NextTest(); @@ -93755,7 +94011,7 @@ class Test_TC_SWDIAG_1_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHeapFree", "", "uint64")); NextTest(); @@ -93780,7 +94036,7 @@ class Test_TC_SWDIAG_1_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHeapUsed", "", "uint64")); NextTest(); @@ -93805,7 +94061,7 @@ class Test_TC_SWDIAG_1_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHeapHighWatermark", "", "uint64")); NextTest(); @@ -94013,7 +94269,7 @@ class Test_TC_SWDIAG_3_1 : public TestCommandBridge { [cluster resetWatermarksWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Sends ResetWatermarks to DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -94037,7 +94293,7 @@ class Test_TC_SWDIAG_3_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHeapUsed", "", "uint64")); NextTest(); @@ -94062,7 +94318,7 @@ class Test_TC_SWDIAG_3_1 : public TestCommandBridge { return; } - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHeapHighWatermark", "", "uint64")); NextTest(); @@ -94214,7 +94470,7 @@ class TestSubscribe_OnOff : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Set OnOff Attribute to false Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -94233,7 +94489,7 @@ class TestSubscribe_OnOff : public TestCommandBridge { test_TestSubscribe_OnOff_OnOff_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Report: Subscribe OnOff Attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -94267,7 +94523,7 @@ class TestSubscribe_OnOff : public TestCommandBridge { reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Subscribe OnOff Attribute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (test_TestSubscribe_OnOff_OnOff_Reported != nil) { ResponseHandler callback = test_TestSubscribe_OnOff_OnOff_Reported; test_TestSubscribe_OnOff_OnOff_Reported = nil; @@ -94287,7 +94543,7 @@ class TestSubscribe_OnOff : public TestCommandBridge { [cluster onWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn On the light to see attribute change Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -94304,7 +94560,7 @@ class TestSubscribe_OnOff : public TestCommandBridge { test_TestSubscribe_OnOff_OnOff_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check for attribute report Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -94326,7 +94582,7 @@ class TestSubscribe_OnOff : public TestCommandBridge { [cluster offWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Turn Off the light to see attribute change Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -94343,7 +94599,7 @@ class TestSubscribe_OnOff : public TestCommandBridge { test_TestSubscribe_OnOff_OnOff_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Check for attribute report Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -95168,7 +95424,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read available user slot and verify response fields Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.userIndex; @@ -95238,7 +95494,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { readAttributeNumberOfTotalUsersSupportedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Get number of supported users and verify default value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -95266,7 +95522,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read fails for user with index 0 Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_COMMAND)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_COMMAND)); NextTest(); }]; @@ -95285,7 +95541,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read fails for user with index greater than Number Of Users Supported Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_COMMAND)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_COMMAND)); NextTest(); }]; @@ -95310,7 +95566,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create new user with default parameters Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -95330,7 +95586,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the user back and verify its fields Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.userIndex; @@ -95413,7 +95669,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Set user at the occupied index fails with appropriate response Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 1)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 1)); NextTest(); }]; @@ -95438,7 +95694,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Modify userName for existing user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -95458,7 +95714,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the modified user back and verify its fields Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.userIndex; @@ -95541,7 +95797,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Modify userUniqueId for existing user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -95561,7 +95817,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the modified user back and verify its fields Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.userIndex; @@ -95645,7 +95901,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Modify userStatus for existing user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -95665,7 +95921,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the modified user back and verify its fields Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.userIndex; @@ -95749,7 +96005,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Modify userType for existing user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -95769,7 +96025,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the modified user back and verify its fields Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.userIndex; @@ -95853,7 +96109,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Modify credentialRule for existing user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -95873,7 +96129,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the modified user back and verify its fields Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.userIndex; @@ -95957,7 +96213,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Modify all fields for existing user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -95977,7 +96233,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the modified user back and verify its fields Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.userIndex; @@ -96061,7 +96317,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Add another user with non-default fields Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -96081,7 +96337,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the new user back and verify its fields Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.userIndex; @@ -96165,7 +96421,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create user in the last slot Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -96185,7 +96441,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the last user back and verify its fields Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.userIndex; @@ -96267,7 +96523,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"User creation in the 0 slot fails Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_COMMAND)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_COMMAND)); NextTest(); }]; @@ -96292,7 +96548,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"User creation in the out-of-bounds slot fails Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_COMMAND)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_COMMAND)); NextTest(); }]; @@ -96311,7 +96567,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clear first user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -96331,7 +96587,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read cleared user and verify it is available Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.userIndex; @@ -96408,7 +96664,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create new user in the cleared slot Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -96428,7 +96684,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the user in the previously cleared slot and verify its fields Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.userIndex; @@ -96505,7 +96761,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clear user with index 0 fails Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_COMMAND)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_COMMAND)); NextTest(); }]; @@ -96524,7 +96780,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clear user with out-of-bounds index fails Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_COMMAND)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_COMMAND)); NextTest(); }]; @@ -96543,7 +96799,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clear all users Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -96563,7 +96819,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read first cleared user and verify it is available Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.userIndex; @@ -96634,7 +96890,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read last cleared user and verify it is available Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.userIndex; @@ -96703,7 +96959,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { readAttributeNumberOfPINUsersSupportedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Get number of supported PIN credentials and verify default value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -96735,7 +96991,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Check that PIN credential does not exist Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.credentialExists; @@ -96775,7 +97031,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Reading PIN credential with index 0 fails Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_COMMAND)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_COMMAND)); NextTest(); }]; @@ -96799,7 +97055,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Reading PIN credential with out-of-bounds index fails Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_COMMAND)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_COMMAND)); NextTest(); }]; @@ -96827,7 +97083,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new PIN credential and user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -96864,7 +97120,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify created user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.userIndex; @@ -96950,7 +97206,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify created PIN credential Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.credentialExists; @@ -96996,7 +97252,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new PIN credential and user with index 0 fails Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -97042,7 +97298,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new PIN credential and user with out-of-bounds index fails Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -97076,7 +97332,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { readAttributeNumberOfRFIDUsersSupportedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Get number of supported RFID credentials and verify default value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -97108,7 +97364,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Reading RFID credential with index 0 fails Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_COMMAND)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_COMMAND)); NextTest(); }]; @@ -97132,7 +97388,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Reading RFID credential with out-of-bounds index fails Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_COMMAND)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_COMMAND)); NextTest(); }]; @@ -97155,7 +97411,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Check that RFID credential does not exist Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.credentialExists; @@ -97200,7 +97456,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new RFID credential and add it to existing user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -97236,7 +97492,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify modified user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.userIndex; @@ -97326,7 +97582,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify created credential Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.credentialExists; @@ -97372,7 +97628,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new RFID credential and user with index 0 fails Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -97418,7 +97674,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new RFID credential and user with out-of-bounds index fails Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -97462,7 +97718,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new PIN credential and try to add it to existing user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -97507,7 +97763,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new credential and try to add it to 0 user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -97552,7 +97808,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new credential and try to add it to out-of-bounds user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -97597,7 +97853,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new PIN with too short data Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -97642,7 +97898,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new PIN with too long data Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -97687,7 +97943,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new RFID with too short data Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -97732,7 +97988,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new PIN with Programming user type fails Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -97777,7 +98033,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new RFID with too short data Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -97822,7 +98078,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new PIN credential with data the would cause duplicate Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -97867,7 +98123,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new RFID credential with data the would cause duplicate Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -97912,7 +98168,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Modify credentialData of existing PIN credential Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -97957,7 +98213,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify that credential was changed by creating new credential with old data Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -98003,7 +98259,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify that credential was changed by creating new credential with new data Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -98042,7 +98298,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clear first PIN credential Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -98066,7 +98322,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read back the credential and make sure it is deleted Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.credentialExists; @@ -98102,7 +98358,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the user back and make sure PIN credential is deleted Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.userIndex; @@ -98187,7 +98443,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clear the second PIN credential Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -98211,7 +98467,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read back the credential and make sure it is deleted Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.credentialExists; @@ -98247,7 +98503,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the user back and make sure related user is deleted Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.userIndex; @@ -98327,7 +98583,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new RFID credential with user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -98367,7 +98623,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clear all the RFID credentials Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -98391,7 +98647,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read back the fist RFID credential and make sure it is deleted Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.credentialExists; @@ -98431,7 +98687,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read back the second RFID credential and make sure it is deleted Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.credentialExists; @@ -98467,7 +98723,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the user related with first RFID back and make sure it is deleted Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.userIndex; @@ -98538,7 +98794,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the user related with second RFID back and make sure it is deleted Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.userIndex; @@ -98618,7 +98874,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new PIN credential with user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -98664,7 +98920,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new RFID credential with user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -98710,7 +98966,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create another RFID credential with user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -98747,7 +99003,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clear all the credentials Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -98771,7 +99027,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read back the first PIN credential and make sure it is deleted Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.credentialExists; @@ -98811,7 +99067,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read back the first RFID credential and make sure it is deleted Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.credentialExists; @@ -98851,7 +99107,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read back the second PIN credential and make sure it is deleted Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.credentialExists; @@ -98887,7 +99143,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the user related with first PIN back and make sure it is deleted Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.userIndex; @@ -98958,7 +99214,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the user related with first RFID back and make sure it is deleted Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.userIndex; @@ -99029,7 +99285,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Read the user related with second PIN back and make sure it is deleted Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.userIndex; @@ -99109,7 +99365,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new Programming PIN credential with invalid index Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -99153,7 +99409,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new Programming PIN credential with valid index Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -99189,7 +99445,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify created user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.userIndex; @@ -99275,7 +99531,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify created programming PIN credential Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.credentialExists; @@ -99320,7 +99576,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Modify the Programming PIN credential Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -99358,7 +99614,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clearing Programming PIN fails Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_COMMAND)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_COMMAND)); NextTest(); }]; @@ -99380,7 +99636,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clearing Programming PIN with invalid index fails Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_COMMAND)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_COMMAND)); NextTest(); }]; @@ -99402,7 +99658,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clearing PIN credential with zero index fails Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_COMMAND)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_COMMAND)); NextTest(); }]; @@ -99425,7 +99681,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clearing PIN credential with out-of-bound index fails Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_COMMAND)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_COMMAND)); NextTest(); }]; @@ -99447,7 +99703,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clearing RFID credential with zero index fails Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_COMMAND)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_COMMAND)); NextTest(); }]; @@ -99470,7 +99726,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clearing RFID credential with out-of-bound index fails Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_COMMAND)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_COMMAND)); NextTest(); }]; @@ -99489,7 +99745,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clear the Programming PIN user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -99509,7 +99765,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterGetUserResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure Programming PIN user is deleted Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.userIndex; @@ -99584,7 +99840,7 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIPDoorLockClusterGetCredentialStatusResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure programming PIN credential is deleted Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.credentialExists; @@ -99783,7 +100039,7 @@ class DL_LockUnlock : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new PIN credential and lock/unlock user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -99820,7 +100076,7 @@ class DL_LockUnlock : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Try to unlock the door with invalid PIN Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_FAILURE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_FAILURE)); NextTest(); }]; @@ -99836,7 +100092,7 @@ class DL_LockUnlock : public TestCommandBridge { [cluster readAttributeLockStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify that lock state attribute value is set to Locked Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -99862,7 +100118,7 @@ class DL_LockUnlock : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Try to unlock the door with valid PIN Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -99879,7 +100135,7 @@ class DL_LockUnlock : public TestCommandBridge { [cluster readAttributeLockStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify that lock state attribute value is set to Unlocked Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -99905,7 +100161,7 @@ class DL_LockUnlock : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Try to lock the door with invalid PIN Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_FAILURE)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_FAILURE)); NextTest(); }]; @@ -99921,7 +100177,7 @@ class DL_LockUnlock : public TestCommandBridge { [cluster readAttributeLockStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify that lock state attribute value is set to Unlocked Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -99947,7 +100203,7 @@ class DL_LockUnlock : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Try to unlock the door with valid PIN Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -99964,7 +100220,7 @@ class DL_LockUnlock : public TestCommandBridge { [cluster readAttributeLockStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Verify that lock state attribute value is set to Locked Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -99993,7 +100249,7 @@ class DL_LockUnlock : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clean the created credential Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -100692,7 +100948,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new PIN credential and schedule user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -100728,7 +100984,7 @@ class DL_Schedules : public TestCommandBridge { readAttributeNumberOfTotalUsersSupportedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Get number of supported users Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -100755,7 +101011,7 @@ class DL_Schedules : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Get Max number of Week Day schedules for user and verify default value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -100782,7 +101038,7 @@ class DL_Schedules : public TestCommandBridge { NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Get Max number of Year Day schedules for user and verify default value Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -100816,7 +101072,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create Week Day schedule with 0 index Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_FIELD)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_FIELD)); NextTest(); }]; @@ -100841,7 +101097,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create Week Day schedule with out-of-bounds index Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_FIELD)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_FIELD)); NextTest(); }]; @@ -100866,7 +101122,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create Week Day schedule with 0 user index Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_FIELD)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_FIELD)); NextTest(); }]; @@ -100891,7 +101147,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create Week Day schedule with out-of-bounds user index Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_FIELD)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_FIELD)); NextTest(); }]; @@ -100916,7 +101172,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create Week Day schedule for non-existing user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_NOT_FOUND)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_NOT_FOUND)); NextTest(); }]; @@ -100941,7 +101197,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create Week Day schedule with 0 days mask Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_FIELD)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_FIELD)); NextTest(); }]; @@ -100966,7 +101222,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create Week Day schedule for Sunday and Monday Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_FIELD)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_FIELD)); NextTest(); }]; @@ -100991,7 +101247,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create Week Day schedule for Sunday Wednesday and Saturday Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_FIELD)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_FIELD)); NextTest(); }]; @@ -101016,7 +101272,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create Week Day schedule with invalid start hour Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_FIELD)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_FIELD)); NextTest(); }]; @@ -101041,7 +101297,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create Week Day schedule with invalid start minute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_FIELD)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_FIELD)); NextTest(); }]; @@ -101066,7 +101322,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create Week Day schedule with invalid end hour Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_FIELD)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_FIELD)); NextTest(); }]; @@ -101091,7 +101347,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create Week Day schedule with invalid end minute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_FIELD)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_FIELD)); NextTest(); }]; @@ -101116,7 +101372,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create Week Day schedule with start hour later that end hour Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_FIELD)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_FIELD)); NextTest(); }]; @@ -101143,7 +101399,7 @@ class DL_Schedules : public TestCommandBridge { NSLog(@"Create Week Day schedule with start minute later that end minute when hours are equal Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_FIELD)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_FIELD)); NextTest(); }]; @@ -101164,7 +101420,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure that previous operations did not create a schedule Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.weekDayIndex; @@ -101201,7 +101457,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Get Week Day schedule with 0 index Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.weekDayIndex; @@ -101238,7 +101494,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Get Week Day schedule with out-of-bounds index Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.weekDayIndex; @@ -101276,7 +101532,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Get Week Day schedule with 0 user index Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.weekDayIndex; @@ -101313,7 +101569,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Get Week Day schedule with out-of-bounds user index Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.weekDayIndex; @@ -101351,7 +101607,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Get Week Day schedule with non-existing user index Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.weekDayIndex; @@ -101389,7 +101645,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create Year Day schedule with 0 index Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_FIELD)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_FIELD)); NextTest(); }]; @@ -101411,7 +101667,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create Year Day schedule with out-of-bounds index Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_FIELD)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_FIELD)); NextTest(); }]; @@ -101433,7 +101689,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create Year Day schedule with 0 user index Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_FIELD)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_FIELD)); NextTest(); }]; @@ -101455,7 +101711,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create Year Day schedule with out-of-bounds user index Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_FIELD)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_FIELD)); NextTest(); }]; @@ -101477,7 +101733,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create Year Day schedule for non-existing user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_NOT_FOUND)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_NOT_FOUND)); NextTest(); }]; @@ -101499,7 +101755,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create Year Day schedule with start hour later that end hour Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_FIELD)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_FIELD)); NextTest(); }]; @@ -101520,7 +101776,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure that previous operations did not create a schedule Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.yearDayIndex; @@ -101557,7 +101813,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Get Year Day schedule with 0 index Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.yearDayIndex; @@ -101594,7 +101850,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Get Year Day schedule with out-of-bounds index Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.yearDayIndex; @@ -101632,7 +101888,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Get Year Day schedule with 0 user index Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.yearDayIndex; @@ -101669,7 +101925,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Get Year Day schedule with out-of-bounds user index Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.yearDayIndex; @@ -101707,7 +101963,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Get Year Day schedule with non-existing user index Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.yearDayIndex; @@ -101748,7 +102004,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create Week Day schedule with valid parameters Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -101770,7 +102026,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify created schedule Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.weekDayIndex; @@ -101833,7 +102089,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create Year Day schedule with valid parameters Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -101855,7 +102111,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify created schedule Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.yearDayIndex; @@ -101901,7 +102157,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clear Week Day schedule with 0 index Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_FIELD)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_FIELD)); NextTest(); }]; @@ -101921,7 +102177,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clear Week Day schedule with out-of-bounds index Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_FIELD)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_FIELD)); NextTest(); }]; @@ -101941,7 +102197,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clear Week Day schedule with 0 user index Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_FIELD)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_FIELD)); NextTest(); }]; @@ -101961,7 +102217,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clear Week Day schedule with out-of-bounds user index Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_FIELD)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_FIELD)); NextTest(); }]; @@ -101981,7 +102237,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clear Week Day schedule with non-existing user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_NOT_FOUND)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_NOT_FOUND)); NextTest(); }]; @@ -102001,7 +102257,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clear Year Day schedule with 0 index Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_FIELD)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_FIELD)); NextTest(); }]; @@ -102021,7 +102277,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clear Year Day schedule with out-of-bounds index Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_FIELD)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_FIELD)); NextTest(); }]; @@ -102041,7 +102297,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clear Year Day schedule with 0 user index Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_FIELD)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_FIELD)); NextTest(); }]; @@ -102061,7 +102317,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clear Year Day schedule with out-of-bounds user index Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_INVALID_FIELD)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_INVALID_FIELD)); NextTest(); }]; @@ -102081,7 +102337,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clear Year Day schedule with non-existing user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_NOT_FOUND)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_NOT_FOUND)); NextTest(); }]; @@ -102102,7 +102358,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure that week day schedule was not deleted Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.weekDayIndex; @@ -102164,7 +102420,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure that year day schedule was not deleted Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.yearDayIndex; @@ -102215,7 +102471,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create another Week Day schedule with valid parameters Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -102237,7 +102493,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify created week day schedule Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.weekDayIndex; @@ -102300,7 +102556,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create another Year Day schedule with valid parameters Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -102322,7 +102578,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify created year day schedule Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.yearDayIndex; @@ -102368,7 +102624,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clear a single week day schedule for the first user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -102390,7 +102646,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify cleared week day schedule Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.weekDayIndex; @@ -102426,7 +102682,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clear all remaining week day schedules for the first user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -102448,7 +102704,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify cleared week schedule Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.weekDayIndex; @@ -102485,7 +102741,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure that first year day schedule was not deleted Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.yearDayIndex; @@ -102532,7 +102788,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure that second year day schedule was not deleted Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.yearDayIndex; @@ -102583,7 +102839,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create another Week Day schedule with valid parameters Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -102604,7 +102860,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clear a single year day schedule for the first user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -102626,7 +102882,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify cleared year day schedule Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.yearDayIndex; @@ -102662,7 +102918,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clear all remaining year schedules for the first user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -102684,7 +102940,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify that second year day schedule was cleared Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.yearDayIndex; @@ -102721,7 +102977,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify created week day schedule Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.weekDayIndex; @@ -102782,7 +103038,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clear all remaining week day schedules for the first user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -102808,7 +103064,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create new user without credential so we can add more schedules to it Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -102834,7 +103090,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create Week Day schedule with valid parameters for first user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -102856,7 +103112,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify created week day schedule for first user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.weekDayIndex; @@ -102919,7 +103175,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create Year Day schedule for first user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -102941,7 +103197,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify created year day schedule for first Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.yearDayIndex; @@ -102992,7 +103248,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create Week Day schedule with valid parameters for second user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -103014,7 +103270,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify created week day schedule for first user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.weekDayIndex; @@ -103077,7 +103333,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Create Year Day schedule for second user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -103099,7 +103355,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Verify created year day schedule for first Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.yearDayIndex; @@ -103144,7 +103400,7 @@ class DL_Schedules : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Cleanup Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -103166,7 +103422,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure clearing first user also cleared week day schedules Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.weekDayIndex; @@ -103203,7 +103459,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure clearing first user also cleared year day schedules Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.yearDayIndex; @@ -103240,7 +103496,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetWeekDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure clearing second user also cleared week day schedules Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.weekDayIndex; @@ -103277,7 +103533,7 @@ class DL_Schedules : public TestCommandBridge { CHIPDoorLockClusterGetYearDayScheduleResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Make sure clearing second user also cleared year day schedules Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.yearDayIndex; @@ -103462,7 +103718,7 @@ class Test_TC_DL_1_3 : public TestCommandBridge { completionHandler:^(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Create new PIN credential and lock/unlock user Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -103499,7 +103755,7 @@ class Test_TC_DL_1_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Precondition: Door is in locked state Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -103519,7 +103775,7 @@ class Test_TC_DL_1_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"TH writes AutoRelockTime attribute value as 10 seconds on the DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -103539,7 +103795,7 @@ class Test_TC_DL_1_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"TH sends the unlock Door command to the DUT with valid PINCode Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -103556,7 +103812,7 @@ class Test_TC_DL_1_3 : public TestCommandBridge { [cluster readAttributeAutoRelockTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"TH reads AutoRelockTime attribute from DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -103586,7 +103842,7 @@ class Test_TC_DL_1_3 : public TestCommandBridge { [cluster readAttributeLockStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"TH reads LockState attriute Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -103615,7 +103871,7 @@ class Test_TC_DL_1_3 : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Clean the created credential Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -103846,7 +104102,7 @@ class TestGroupsCluster : public TestCommandBridge { completionHandler:^(CHIPGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"View Group 0 (invalid) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -103876,7 +104132,7 @@ class TestGroupsCluster : public TestCommandBridge { completionHandler:^(CHIPGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"View Group 1 (not found) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -103907,7 +104163,7 @@ class TestGroupsCluster : public TestCommandBridge { completionHandler:^(CHIPGroupsClusterAddGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Add Group 1 (new) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -103937,7 +104193,7 @@ class TestGroupsCluster : public TestCommandBridge { completionHandler:^(CHIPGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"View Group 1 (new) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -103972,7 +104228,7 @@ class TestGroupsCluster : public TestCommandBridge { completionHandler:^(CHIPGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"View Group 2 (not found) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -104006,7 +104262,7 @@ class TestGroupsCluster : public TestCommandBridge { CHIPGroupsClusterGetGroupMembershipResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Get Group Membership 1 (all) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.capacity; @@ -104037,7 +104293,7 @@ class TestGroupsCluster : public TestCommandBridge { completionHandler:^(CHIPGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"View Group 3 (not found) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -104067,7 +104323,7 @@ class TestGroupsCluster : public TestCommandBridge { completionHandler:^(CHIPGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"View Group 1 (existing) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -104102,7 +104358,7 @@ class TestGroupsCluster : public TestCommandBridge { completionHandler:^(CHIPGroupsClusterRemoveGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Remove Group 0 (invalid) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -104132,7 +104388,7 @@ class TestGroupsCluster : public TestCommandBridge { completionHandler:^(CHIPGroupsClusterRemoveGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Remove Group 4 (not found) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -104162,7 +104418,7 @@ class TestGroupsCluster : public TestCommandBridge { completionHandler:^(CHIPGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"View Group 1 (not removed) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -104197,7 +104453,7 @@ class TestGroupsCluster : public TestCommandBridge { completionHandler:^(CHIPGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"View Group 2 (removed) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -104235,7 +104491,7 @@ class TestGroupsCluster : public TestCommandBridge { CHIPGroupsClusterGetGroupMembershipResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Get Group Membership 3 Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.capacity; @@ -104263,7 +104519,7 @@ class TestGroupsCluster : public TestCommandBridge { [cluster removeAllGroupsWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Remove All Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -104283,7 +104539,7 @@ class TestGroupsCluster : public TestCommandBridge { completionHandler:^(CHIPGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"View Group 1 (removed) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -104313,7 +104569,7 @@ class TestGroupsCluster : public TestCommandBridge { completionHandler:^(CHIPGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"View Group 2 (still removed) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -104343,7 +104599,7 @@ class TestGroupsCluster : public TestCommandBridge { completionHandler:^(CHIPGroupsClusterViewGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"View Group 3 (removed) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -104382,7 +104638,7 @@ class TestGroupsCluster : public TestCommandBridge { CHIPGroupsClusterGetGroupMembershipResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Get Group Membership 4 Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.capacity; @@ -104615,7 +104871,7 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { [cluster readAttributeMaxGroupsPerFabricWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read maxGroupsPerFabric Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); if (value != nil) { VerifyOrReturn(CheckConstraintMinValue("maxGroupsPerFabric", [value unsignedShortValue], 2U)); @@ -104638,7 +104894,7 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { [cluster readAttributeMaxGroupKeysPerFabricWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Read maxGroupKeysPerFabric Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -104664,7 +104920,7 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { completionHandler:^(CHIPGroupsClusterAddGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Add Group 1 Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -104695,7 +104951,7 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { completionHandler:^(CHIPGroupsClusterAddGroupResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"Add Group 2 Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.status; @@ -104744,7 +105000,7 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"KeySet Write 1 Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -104783,7 +105039,7 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"KeySet Write 2 Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -104807,7 +105063,7 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIPGroupKeyManagementClusterKeySetReadResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"KeySet Read Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.groupKeySet; @@ -104863,7 +105119,7 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write Group Keys (invalid) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); }]; @@ -104897,7 +105153,7 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"Write Group Keys Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -104920,7 +105176,7 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read Group Keys Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -104959,7 +105215,7 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { completionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Read GroupTable Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = value; @@ -105000,7 +105256,7 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"KeySet Remove 1 Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -105023,7 +105279,7 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIPGroupKeyManagementClusterKeySetReadResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"KeySet Read (removed) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_NOT_FOUND)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_NOT_FOUND)); NextTest(); }]; @@ -105046,7 +105302,7 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIPGroupKeyManagementClusterKeySetReadResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"KeySet Read (not removed) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); { id actualValue = values.groupKeySet; @@ -105089,7 +105345,7 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { [cluster removeAllGroupsWithCompletionHandler:^(NSError * _Nullable err) { NSLog(@"Remove All Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -105111,7 +105367,7 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { completionHandler:^(NSError * _Nullable err) { NSLog(@"KeySet Remove 2 Error: %@", err); - VerifyOrReturn(CheckValue("status", err, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); NextTest(); }]; @@ -105134,7 +105390,7 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIPGroupKeyManagementClusterKeySetReadResponseParams * _Nullable values, NSError * _Nullable err) { NSLog(@"KeySet Read (also removed) Error: %@", err); - VerifyOrReturn(CheckValue("status", err, EMBER_ZCL_STATUS_NOT_FOUND)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, EMBER_ZCL_STATUS_NOT_FOUND)); NextTest(); }]; diff --git a/zzz_generated/chip-tool/zap-generated/test/Commands.h b/zzz_generated/chip-tool/zap-generated/test/Commands.h index 54f6b7d2e28e27..64fc5f5b86d4e7 100644 --- a/zzz_generated/chip-tool/zap-generated/test/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/test/Commands.h @@ -37652,7 +37652,7 @@ class TV_MediaInputClusterSuite : public TestCommand class TestClusterSuite : public TestCommand { public: - TestClusterSuite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("TestCluster", 481, credsIssuerConfig) + TestClusterSuite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("TestCluster", 487, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -37660,7 +37660,19 @@ class TestClusterSuite : public TestCommand AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } - ~TestClusterSuite() {} + ~TestClusterSuite() + { + if (nullableOctetStrTestValueBuffer != nullptr) + { + chip::Platform::MemoryFree(nullableOctetStrTestValueBuffer); + nullableOctetStrTestValueBuffer = nullptr; + } + if (nullableCharStringSaveBuffer != nullptr) + { + chip::Platform::MemoryFree(nullableCharStringSaveBuffer); + nullableCharStringSaveBuffer = nullptr; + } + } chip::System::Clock::Timeout GetWaitDuration() const override { @@ -37673,6 +37685,14 @@ class TestClusterSuite : public TestCommand chip::Optional mEndpoint; chip::Optional mTimeout; + chip::app::DataModel::Nullable booValueNull; + chip::app::DataModel::Nullable> nullableValue254; + chip::app::DataModel::Nullable nullableEnumAttr254; + uint8_t * nullableOctetStrTestValueBuffer = nullptr; + chip::app::DataModel::Nullable nullableOctetStrTestValue; + char * nullableCharStringSaveBuffer = nullptr; + chip::app::DataModel::Nullable nullableCharStringSave; + chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } // @@ -39026,6 +39046,8 @@ class TestClusterSuite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckValueNull("nullableBoolean", value)); + + booValueNull = value; } break; case 181: @@ -39042,8 +39064,16 @@ class TestClusterSuite : public TestCommand break; case 183: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::DataModel::Nullable value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckConstraintNotValue("value", value, booValueNull)); + } break; case 184: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 185: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable> value; @@ -39052,22 +39082,24 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableBitmap8.Value()", value.Value(), 254)); } break; - case 185: + case 186: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 186: + case 187: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable> value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckValueNonNull("nullableBitmap8", value)); VerifyOrReturn(CheckValue("nullableBitmap8.Value()", value.Value(), 254)); + + nullableValue254 = value; } break; - case 187: + case 188: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 188: + case 189: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable> value; @@ -39075,10 +39107,18 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValueNull("nullableBitmap8", value)); } break; - case 189: + case 190: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::DataModel::Nullable> value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckConstraintNotValue("value", value, nullableValue254)); + } break; - case 190: + case 191: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 192: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable> value; @@ -39087,10 +39127,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableBitmap16.Value()", value.Value(), 65534U)); } break; - case 191: + case 193: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 192: + case 194: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable> value; @@ -39099,10 +39139,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableBitmap16.Value()", value.Value(), 65534U)); } break; - case 193: + case 195: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 194: + case 196: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable> value; @@ -39110,10 +39150,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValueNull("nullableBitmap16", value)); } break; - case 195: + case 197: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 196: + case 198: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable> value; @@ -39122,10 +39162,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableBitmap32.Value()", value.Value(), 4294967294UL)); } break; - case 197: + case 199: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 198: + case 200: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable> value; @@ -39134,10 +39174,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableBitmap32.Value()", value.Value(), 4294967294UL)); } break; - case 199: + case 201: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 200: + case 202: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable> value; @@ -39145,10 +39185,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValueNull("nullableBitmap32", value)); } break; - case 201: + case 203: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 202: + case 204: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable> value; @@ -39157,10 +39197,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableBitmap64.Value()", value.Value(), 18446744073709551614ULL)); } break; - case 203: + case 205: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 204: + case 206: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable> value; @@ -39169,10 +39209,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableBitmap64.Value()", value.Value(), 18446744073709551614ULL)); } break; - case 205: + case 207: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 206: + case 208: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable> value; @@ -39180,10 +39220,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValueNull("nullableBitmap64", value)); } break; - case 207: + case 209: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 208: + case 210: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39192,10 +39232,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableInt8u.Value()", value.Value(), 0)); } break; - case 209: + case 211: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 210: + case 212: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39204,10 +39244,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableInt8u.Value()", value.Value(), 254)); } break; - case 211: + case 213: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 212: + case 214: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39216,7 +39256,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableInt8u.Value()", value.Value(), 254)); } break; - case 213: + case 215: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39224,10 +39264,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValueNonNull("value", value)); } break; - case 214: + case 216: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 215: + case 217: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39235,7 +39275,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValueNull("nullableInt8u", value)); } break; - case 216: + case 218: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39244,7 +39284,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 254)); } break; - case 217: + case 219: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39252,10 +39292,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintNotValue("value", value, 254)); } break; - case 218: + case 220: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 219: + case 221: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39264,7 +39304,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 254)); } break; - case 220: + case 222: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39272,10 +39312,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintNotValue("value", value, 129)); } break; - case 221: + case 223: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 222: + case 224: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39284,10 +39324,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableInt16u.Value()", value.Value(), 0U)); } break; - case 223: + case 225: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 224: + case 226: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39296,10 +39336,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableInt16u.Value()", value.Value(), 65534U)); } break; - case 225: + case 227: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 226: + case 228: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39308,10 +39348,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableInt16u.Value()", value.Value(), 65534U)); } break; - case 227: + case 229: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 228: + case 230: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39319,7 +39359,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValueNull("nullableInt16u", value)); } break; - case 229: + case 231: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39328,7 +39368,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 65534U)); } break; - case 230: + case 232: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39336,10 +39376,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintNotValue("value", value, 65534U)); } break; - case 231: + case 233: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 232: + case 234: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39348,7 +39388,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 65534U)); } break; - case 233: + case 235: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39356,10 +39396,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintNotValue("value", value, 32001U)); } break; - case 234: + case 236: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 235: + case 237: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39368,10 +39408,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableInt32u.Value()", value.Value(), 0UL)); } break; - case 236: + case 238: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 237: + case 239: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39380,10 +39420,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableInt32u.Value()", value.Value(), 4294967294UL)); } break; - case 238: + case 240: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 239: + case 241: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39392,10 +39432,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableInt32u.Value()", value.Value(), 4294967294UL)); } break; - case 240: + case 242: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 241: + case 243: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39403,7 +39443,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValueNull("nullableInt32u", value)); } break; - case 242: + case 244: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39412,7 +39452,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967294UL)); } break; - case 243: + case 245: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39420,10 +39460,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintNotValue("value", value, 4294967294UL)); } break; - case 244: + case 246: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 245: + case 247: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39432,7 +39472,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967294UL)); } break; - case 246: + case 248: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39440,10 +39480,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintNotValue("value", value, 2147483648UL)); } break; - case 247: + case 249: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 248: + case 250: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39452,10 +39492,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableInt64u.Value()", value.Value(), 0ULL)); } break; - case 249: + case 251: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 250: + case 252: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39464,10 +39504,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableInt64u.Value()", value.Value(), 18446744073709551614ULL)); } break; - case 251: + case 253: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 252: + case 254: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39476,10 +39516,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableInt64u.Value()", value.Value(), 18446744073709551614ULL)); } break; - case 253: + case 255: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 254: + case 256: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39487,7 +39527,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValueNull("nullableInt64u", value)); } break; - case 255: + case 257: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39496,7 +39536,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 18446744073709551614ULL)); } break; - case 256: + case 258: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39504,10 +39544,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintNotValue("value", value, 18446744073709551614ULL)); } break; - case 257: + case 259: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 258: + case 260: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39516,7 +39556,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 18446744073709551614ULL)); } break; - case 259: + case 261: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39524,10 +39564,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintNotValue("value", value, 18000000000000000001ULL)); } break; - case 260: + case 262: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 261: + case 263: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39536,10 +39576,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableInt8s.Value()", value.Value(), -127)); } break; - case 262: + case 264: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 263: + case 265: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39548,10 +39588,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableInt8s.Value()", value.Value(), -127)); } break; - case 264: + case 266: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 265: + case 267: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39559,7 +39599,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValueNull("nullableInt8s", value)); } break; - case 266: + case 268: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39568,7 +39608,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 127)); } break; - case 267: + case 269: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39576,10 +39616,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintNotValue("value", value, -127)); } break; - case 268: + case 270: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 269: + case 271: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39588,7 +39628,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 127)); } break; - case 270: + case 272: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39596,10 +39636,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintNotValue("value", value, -126)); } break; - case 271: + case 273: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 272: + case 274: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39608,10 +39648,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableInt16s.Value()", value.Value(), -32767)); } break; - case 273: + case 275: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 274: + case 276: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39620,10 +39660,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableInt16s.Value()", value.Value(), -32767)); } break; - case 275: + case 277: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 276: + case 278: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39631,7 +39671,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValueNull("nullableInt16s", value)); } break; - case 277: + case 279: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39640,7 +39680,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 32767)); } break; - case 278: + case 280: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39648,10 +39688,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintNotValue("value", value, -32767)); } break; - case 279: + case 281: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 280: + case 282: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39660,7 +39700,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 32767)); } break; - case 281: + case 283: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39668,10 +39708,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintNotValue("value", value, -32766)); } break; - case 282: + case 284: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 283: + case 285: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39680,10 +39720,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableInt32s.Value()", value.Value(), -2147483647L)); } break; - case 284: + case 286: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 285: + case 287: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39692,10 +39732,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableInt32s.Value()", value.Value(), -2147483647L)); } break; - case 286: + case 288: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 287: + case 289: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39703,7 +39743,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValueNull("nullableInt32s", value)); } break; - case 288: + case 290: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39712,7 +39752,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 2147483647L)); } break; - case 289: + case 291: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39720,10 +39760,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintNotValue("value", value, -2147483647L)); } break; - case 290: + case 292: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 291: + case 293: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39732,7 +39772,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 2147483647L)); } break; - case 292: + case 294: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39740,10 +39780,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintNotValue("value", value, -2147483646L)); } break; - case 293: + case 295: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 294: + case 296: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39752,10 +39792,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableInt64s.Value()", value.Value(), -9223372036854775807LL)); } break; - case 295: + case 297: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 296: + case 298: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39764,10 +39804,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableInt64s.Value()", value.Value(), -9223372036854775807LL)); } break; - case 297: + case 299: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 298: + case 300: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39775,7 +39815,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValueNull("nullableInt64s", value)); } break; - case 299: + case 301: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39784,7 +39824,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 9223372036854775807LL)); } break; - case 300: + case 302: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39792,10 +39832,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintNotValue("value", value, -9223372036854775807LL)); } break; - case 301: + case 303: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 302: + case 304: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39804,7 +39844,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 9223372036854775807LL)); } break; - case 303: + case 305: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39812,10 +39852,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckConstraintNotValue("value", value, -9223372036854775806LL)); } break; - case 304: + case 306: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 305: + case 307: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39824,10 +39864,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableFloatSingle.Value()", value.Value(), 0.1f)); } break; - case 306: + case 308: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 307: + case 309: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39836,10 +39876,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableFloatSingle.Value()", value.Value(), INFINITY)); } break; - case 308: + case 310: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 309: + case 311: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39848,10 +39888,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableFloatSingle.Value()", value.Value(), -INFINITY)); } break; - case 310: + case 312: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 311: + case 313: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39859,10 +39899,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValueNull("nullableFloatSingle", value)); } break; - case 312: + case 314: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 313: + case 315: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39871,10 +39911,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableFloatSingle.Value()", value.Value(), 0.0f)); } break; - case 314: + case 316: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 315: + case 317: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39883,10 +39923,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableFloatDouble.Value()", value.Value(), 0.1234567890123)); } break; - case 316: + case 318: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 317: + case 319: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39895,10 +39935,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableFloatDouble.Value()", value.Value(), INFINITY)); } break; - case 318: + case 320: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 319: + case 321: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39907,10 +39947,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableFloatDouble.Value()", value.Value(), -INFINITY)); } break; - case 320: + case 322: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 321: + case 323: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39918,10 +39958,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValueNull("nullableFloatDouble", value)); } break; - case 322: + case 324: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 323: + case 325: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39930,10 +39970,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableFloatDouble.Value()", value.Value(), 0)); } break; - case 324: + case 326: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 325: + case 327: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39942,10 +39982,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableEnum8.Value()", value.Value(), 0)); } break; - case 326: + case 328: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 327: + case 329: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39954,10 +39994,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableEnum8.Value()", value.Value(), 254)); } break; - case 328: + case 330: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 329: + case 331: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39966,10 +40006,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableEnum8.Value()", value.Value(), 254)); } break; - case 330: + case 332: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 331: + case 333: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39977,10 +40017,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValueNull("nullableEnum8", value)); } break; - case 332: + case 334: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 333: + case 335: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -39989,10 +40029,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableEnum16.Value()", value.Value(), 0U)); } break; - case 334: + case 336: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 335: + case 337: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40001,10 +40041,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableEnum16.Value()", value.Value(), 65534U)); } break; - case 336: + case 338: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 337: + case 339: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40013,10 +40053,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableEnum16.Value()", value.Value(), 65534U)); } break; - case 338: + case 340: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 339: + case 341: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40024,10 +40064,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValueNull("nullableEnum16", value)); } break; - case 340: + case 342: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 341: + case 343: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40036,10 +40076,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableEnumAttr.Value()", value.Value(), 0)); } break; - case 342: + case 344: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 343: + case 345: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40048,22 +40088,24 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableEnumAttr.Value()", value.Value(), 254)); } break; - case 344: + case 346: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 345: + case 347: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckValueNonNull("nullableEnumAttr", value)); VerifyOrReturn(CheckValue("nullableEnumAttr.Value()", value.Value(), 254)); + + nullableEnumAttr254 = value; } break; - case 346: + case 348: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 347: + case 349: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40071,7 +40113,15 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValueNull("nullableEnumAttr", value)); } break; - case 348: + case 350: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::DataModel::Nullable value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckConstraintNotValue("value", value, nullableEnumAttr254)); + } + break; + case 351: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40081,10 +40131,10 @@ class TestClusterSuite : public TestCommand chip::ByteSpan(chip::Uint8::from_const_char(""), 0))); } break; - case 349: + case 352: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 350: + case 353: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40092,12 +40142,27 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValueNonNull("nullableOctetString", value)); VerifyOrReturn(CheckValueAsString("nullableOctetString.Value()", value.Value(), chip::ByteSpan(chip::Uint8::from_const_char("TestValue"), 9))); + + if (value.IsNull()) + { + nullableOctetStrTestValue.SetNull(); + } + else + { + if (nullableOctetStrTestValueBuffer != nullptr) + { + chip::Platform::MemoryFree(nullableOctetStrTestValueBuffer); + } + nullableOctetStrTestValueBuffer = static_cast(chip::Platform::MemoryAlloc(value.Value().size())); + memcpy(nullableOctetStrTestValueBuffer, value.Value().data(), value.Value().size()); + nullableOctetStrTestValue.SetNonNull(nullableOctetStrTestValueBuffer, value.Value().size()); + } } break; - case 351: + case 354: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 352: + case 355: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40105,10 +40170,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValueNull("nullableOctetString", value)); } break; - case 353: + case 356: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 354: + case 357: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40118,7 +40183,15 @@ class TestClusterSuite : public TestCommand chip::ByteSpan(chip::Uint8::from_const_char(""), 0))); } break; - case 355: + case 358: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::DataModel::Nullable value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckConstraintNotValue("value", value, nullableOctetStrTestValue)); + } + break; + case 359: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40127,22 +40200,53 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValueAsString("nullableCharString.Value()", value.Value(), chip::CharSpan("", 0))); } break; - case 356: + case 360: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 357: + case 361: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckValueNonNull("nullableCharString", value)); VerifyOrReturn(CheckValueAsString("nullableCharString.Value()", value.Value(), chip::CharSpan("☉T☉", 7))); + + if (value.IsNull()) + { + nullableCharStringSave.SetNull(); + } + else + { + if (nullableCharStringSaveBuffer != nullptr) + { + chip::Platform::MemoryFree(nullableCharStringSaveBuffer); + } + nullableCharStringSaveBuffer = static_cast(chip::Platform::MemoryAlloc(value.Value().size())); + memcpy(nullableCharStringSaveBuffer, value.Value().data(), value.Value().size()); + nullableCharStringSave.SetNonNull(nullableCharStringSaveBuffer, value.Value().size()); + } } break; - case 358: + case 362: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::DataModel::Nullable value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + if (nullableCharStringSave.IsNull()) + { + VerifyOrReturn(CheckValueNull("nullableCharString", value)); + } + else + { + VerifyOrReturn(CheckValueNonNull("nullableCharString", value)); + VerifyOrReturn(CheckValueAsString("nullableCharString.Value()", value.Value(), nullableCharStringSave.Value())); + } + } + break; + case 363: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 359: + case 364: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40150,10 +40254,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValueNull("nullableCharString", value)); } break; - case 360: + case 365: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 361: + case 366: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40162,19 +40266,27 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValueAsString("nullableCharString.Value()", value.Value(), chip::CharSpan("", 0))); } break; - case 362: + case 367: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::DataModel::Nullable value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckConstraintNotValue("value", value, nullableCharStringSave)); + } + break; + case 368: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_ENDPOINT)); break; - case 363: + case 369: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_CLUSTER)); break; - case 364: + case 370: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_INVALID_VALUE)); break; - case 365: + case 371: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 366: + case 372: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::DecodableList value; @@ -40193,10 +40305,10 @@ class TestClusterSuite : public TestCommand } } break; - case 367: + case 373: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 368: + case 374: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::DecodableList value; @@ -40216,7 +40328,7 @@ class TestClusterSuite : public TestCommand } shouldContinue = true; break; - case 369: + case 375: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; @@ -40224,19 +40336,19 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("rangeRestrictedInt8u", value, 70)); } break; - case 370: + case 376: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 371: + case 377: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 372: + case 378: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 373: + case 379: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 374: + case 380: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; @@ -40244,10 +40356,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("rangeRestrictedInt8u", value, 70)); } break; - case 375: + case 381: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 376: + case 382: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; @@ -40255,10 +40367,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("rangeRestrictedInt8u", value, 20)); } break; - case 377: + case 383: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 378: + case 384: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; @@ -40266,10 +40378,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("rangeRestrictedInt8u", value, 100)); } break; - case 379: + case 385: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 380: + case 386: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; @@ -40277,7 +40389,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("rangeRestrictedInt8u", value, 50)); } break; - case 381: + case 387: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -40285,19 +40397,19 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("rangeRestrictedInt16u", value, 200U)); } break; - case 382: + case 388: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 383: + case 389: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 384: + case 390: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 385: + case 391: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 386: + case 392: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -40305,10 +40417,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("rangeRestrictedInt16u", value, 200U)); } break; - case 387: + case 393: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 388: + case 394: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -40316,10 +40428,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("rangeRestrictedInt16u", value, 100U)); } break; - case 389: + case 395: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 390: + case 396: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -40327,10 +40439,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("rangeRestrictedInt16u", value, 1000U)); } break; - case 391: + case 397: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 392: + case 398: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -40338,7 +40450,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("rangeRestrictedInt16u", value, 500U)); } break; - case 393: + case 399: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { int8_t value; @@ -40346,19 +40458,19 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("rangeRestrictedInt8s", value, -20)); } break; - case 394: + case 400: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 395: + case 401: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 396: + case 402: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 397: + case 403: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 398: + case 404: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { int8_t value; @@ -40366,10 +40478,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("rangeRestrictedInt8s", value, -20)); } break; - case 399: + case 405: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 400: + case 406: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { int8_t value; @@ -40377,10 +40489,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("rangeRestrictedInt8s", value, -40)); } break; - case 401: + case 407: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 402: + case 408: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { int8_t value; @@ -40388,10 +40500,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("rangeRestrictedInt8s", value, 50)); } break; - case 403: + case 409: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 404: + case 410: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { int8_t value; @@ -40399,7 +40511,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("rangeRestrictedInt8s", value, 6)); } break; - case 405: + case 411: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { int16_t value; @@ -40407,19 +40519,19 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("rangeRestrictedInt16s", value, -100)); } break; - case 406: + case 412: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 407: + case 413: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 408: + case 414: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 409: + case 415: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 410: + case 416: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { int16_t value; @@ -40427,10 +40539,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("rangeRestrictedInt16s", value, -100)); } break; - case 411: + case 417: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 412: + case 418: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { int16_t value; @@ -40438,10 +40550,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("rangeRestrictedInt16s", value, -150)); } break; - case 413: + case 419: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 414: + case 420: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { int16_t value; @@ -40449,10 +40561,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("rangeRestrictedInt16s", value, 200)); } break; - case 415: + case 421: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 416: + case 422: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { int16_t value; @@ -40460,7 +40572,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("rangeRestrictedInt16s", value, 7)); } break; - case 417: + case 423: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40469,19 +40581,19 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableRangeRestrictedInt8u.Value()", value.Value(), 70)); } break; - case 418: + case 424: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 419: + case 425: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 420: + case 426: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 421: + case 427: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 422: + case 428: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40490,10 +40602,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableRangeRestrictedInt8u.Value()", value.Value(), 70)); } break; - case 423: + case 429: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 424: + case 430: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40502,10 +40614,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableRangeRestrictedInt8u.Value()", value.Value(), 20)); } break; - case 425: + case 431: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 426: + case 432: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40514,10 +40626,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableRangeRestrictedInt8u.Value()", value.Value(), 100)); } break; - case 427: + case 433: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 428: + case 434: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40526,10 +40638,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableRangeRestrictedInt8u.Value()", value.Value(), 50)); } break; - case 429: + case 435: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 430: + case 436: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40537,7 +40649,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValueNull("nullableRangeRestrictedInt8u", value)); } break; - case 431: + case 437: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40546,19 +40658,19 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableRangeRestrictedInt16u.Value()", value.Value(), 200U)); } break; - case 432: + case 438: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 433: + case 439: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 434: + case 440: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 435: + case 441: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 436: + case 442: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40567,10 +40679,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableRangeRestrictedInt16u.Value()", value.Value(), 200U)); } break; - case 437: + case 443: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 438: + case 444: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40579,10 +40691,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableRangeRestrictedInt16u.Value()", value.Value(), 100U)); } break; - case 439: + case 445: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 440: + case 446: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40591,10 +40703,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableRangeRestrictedInt16u.Value()", value.Value(), 1000U)); } break; - case 441: + case 447: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 442: + case 448: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40603,10 +40715,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableRangeRestrictedInt16u.Value()", value.Value(), 500U)); } break; - case 443: + case 449: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 444: + case 450: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40614,7 +40726,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValueNull("nullableRangeRestrictedInt16u", value)); } break; - case 445: + case 451: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40623,19 +40735,19 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableRangeRestrictedInt8s.Value()", value.Value(), -20)); } break; - case 446: + case 452: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 447: + case 453: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 448: + case 454: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 449: + case 455: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 450: + case 456: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40644,10 +40756,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableRangeRestrictedInt8s.Value()", value.Value(), -20)); } break; - case 451: + case 457: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 452: + case 458: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40656,10 +40768,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableRangeRestrictedInt8s.Value()", value.Value(), -40)); } break; - case 453: + case 459: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 454: + case 460: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40668,10 +40780,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableRangeRestrictedInt8s.Value()", value.Value(), 50)); } break; - case 455: + case 461: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 456: + case 462: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40680,10 +40792,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableRangeRestrictedInt8s.Value()", value.Value(), 6)); } break; - case 457: + case 463: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 458: + case 464: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40691,7 +40803,7 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValueNull("nullableRangeRestrictedInt8s", value)); } break; - case 459: + case 465: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40700,19 +40812,19 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableRangeRestrictedInt16s.Value()", value.Value(), -100)); } break; - case 460: + case 466: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 461: + case 467: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 462: + case 468: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 463: + case 469: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); break; - case 464: + case 470: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40721,10 +40833,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableRangeRestrictedInt16s.Value()", value.Value(), -100)); } break; - case 465: + case 471: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 466: + case 472: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40733,10 +40845,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableRangeRestrictedInt16s.Value()", value.Value(), -150)); } break; - case 467: + case 473: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 468: + case 474: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40745,10 +40857,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableRangeRestrictedInt16s.Value()", value.Value(), 200)); } break; - case 469: + case 475: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 470: + case 476: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40757,10 +40869,10 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValue("nullableRangeRestrictedInt16s.Value()", value.Value(), 7)); } break; - case 471: + case 477: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 472: + case 478: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -40768,19 +40880,19 @@ class TestClusterSuite : public TestCommand VerifyOrReturn(CheckValueNull("nullableRangeRestrictedInt16s", value)); } break; - case 473: + case 479: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_INVALID_DATA_TYPE)); break; - case 474: + case 480: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_FAILURE)); break; - case 475: + case 481: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_INVALID_DATA_TYPE)); break; - case 476: + case 482: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_FAILURE)); break; - case 477: + case 483: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::DecodableList value; @@ -40827,7 +40939,7 @@ class TestClusterSuite : public TestCommand } } break; - case 478: + case 484: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::DecodableList value; @@ -40856,10 +40968,10 @@ class TestClusterSuite : public TestCommand } } break; - case 479: + case 485: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 480: + case 486: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::Clusters::TestCluster::Structs::SimpleStruct::DecodableType value; @@ -42421,1035 +42533,1059 @@ class TestClusterSuite : public TestCommand return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableBoolean::Id); } case 183: { - LogStep(183, "Write attribute NULLABLE_BITMAP8 Max Value"); + LogStep(183, "Read attribute NULLABLE_BOOLEAN not null"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableBoolean::Id); + } + case 184: { + LogStep(184, "Write attribute NULLABLE_BITMAP8 Max Value"); chip::app::DataModel::Nullable> value; value.SetNonNull(); value.Value() = static_cast>(254); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableBitmap8::Id, value); } - case 184: { - LogStep(184, "Read attribute NULLABLE_BITMAP8 Max Value"); + case 185: { + LogStep(185, "Read attribute NULLABLE_BITMAP8 Max Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableBitmap8::Id); } - case 185: { - LogStep(185, "Write attribute NULLABLE_BITMAP8 Invalid Value"); + case 186: { + LogStep(186, "Write attribute NULLABLE_BITMAP8 Invalid Value"); chip::app::DataModel::Nullable> value; value.SetNonNull(); value.Value() = static_cast>(255); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableBitmap8::Id, value); } - case 186: { - LogStep(186, "Read attribute NULLABLE_BITMAP8 unchanged Value"); + case 187: { + LogStep(187, "Read attribute NULLABLE_BITMAP8 unchanged Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableBitmap8::Id); } - case 187: { - LogStep(187, "Write attribute NULLABLE_BITMAP8 null Value"); + case 188: { + LogStep(188, "Write attribute NULLABLE_BITMAP8 null Value"); chip::app::DataModel::Nullable> value; value.SetNull(); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableBitmap8::Id, value); } - case 188: { - LogStep(188, "Read attribute NULLABLE_BITMAP8 null Value"); + case 189: { + LogStep(189, "Read attribute NULLABLE_BITMAP8 null Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableBitmap8::Id); } - case 189: { - LogStep(189, "Write attribute NULLABLE_BITMAP16 Max Value"); + case 190: { + LogStep(190, "Read attribute NULLABLE_BITMAP8 not 254 Value"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableBitmap8::Id); + } + case 191: { + LogStep(191, "Write attribute NULLABLE_BITMAP16 Max Value"); chip::app::DataModel::Nullable> value; value.SetNonNull(); value.Value() = static_cast>(65534U); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableBitmap16::Id, value); } - case 190: { - LogStep(190, "Read attribute NULLABLE_BITMAP16 Max Value"); + case 192: { + LogStep(192, "Read attribute NULLABLE_BITMAP16 Max Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableBitmap16::Id); } - case 191: { - LogStep(191, "Write attribute NULLABLE_BITMAP16 Invalid Value"); + case 193: { + LogStep(193, "Write attribute NULLABLE_BITMAP16 Invalid Value"); chip::app::DataModel::Nullable> value; value.SetNonNull(); value.Value() = static_cast>(65535U); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableBitmap16::Id, value); } - case 192: { - LogStep(192, "Read attribute NULLABLE_BITMAP16 unchanged Value"); + case 194: { + LogStep(194, "Read attribute NULLABLE_BITMAP16 unchanged Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableBitmap16::Id); } - case 193: { - LogStep(193, "Write attribute NULLABLE_BITMAP16 null Value"); + case 195: { + LogStep(195, "Write attribute NULLABLE_BITMAP16 null Value"); chip::app::DataModel::Nullable> value; value.SetNull(); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableBitmap16::Id, value); } - case 194: { - LogStep(194, "Read attribute NULLABLE_BITMAP16 null Value"); + case 196: { + LogStep(196, "Read attribute NULLABLE_BITMAP16 null Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableBitmap16::Id); } - case 195: { - LogStep(195, "Write attribute NULLABLE_BITMAP32 Max Value"); + case 197: { + LogStep(197, "Write attribute NULLABLE_BITMAP32 Max Value"); chip::app::DataModel::Nullable> value; value.SetNonNull(); value.Value() = static_cast>(4294967294UL); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableBitmap32::Id, value); } - case 196: { - LogStep(196, "Read attribute NULLABLE_BITMAP32 Max Value"); + case 198: { + LogStep(198, "Read attribute NULLABLE_BITMAP32 Max Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableBitmap32::Id); } - case 197: { - LogStep(197, "Write attribute NULLABLE_BITMAP32 Invalid Value"); + case 199: { + LogStep(199, "Write attribute NULLABLE_BITMAP32 Invalid Value"); chip::app::DataModel::Nullable> value; value.SetNonNull(); value.Value() = static_cast>(4294967295UL); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableBitmap32::Id, value); } - case 198: { - LogStep(198, "Read attribute NULLABLE_BITMAP32 unchanged Value"); + case 200: { + LogStep(200, "Read attribute NULLABLE_BITMAP32 unchanged Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableBitmap32::Id); } - case 199: { - LogStep(199, "Write attribute NULLABLE_BITMAP32 null Value"); + case 201: { + LogStep(201, "Write attribute NULLABLE_BITMAP32 null Value"); chip::app::DataModel::Nullable> value; value.SetNull(); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableBitmap32::Id, value); } - case 200: { - LogStep(200, "Read attribute NULLABLE_BITMAP32 null Value"); + case 202: { + LogStep(202, "Read attribute NULLABLE_BITMAP32 null Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableBitmap32::Id); } - case 201: { - LogStep(201, "Write attribute NULLABLE_BITMAP64 Max Value"); + case 203: { + LogStep(203, "Write attribute NULLABLE_BITMAP64 Max Value"); chip::app::DataModel::Nullable> value; value.SetNonNull(); value.Value() = static_cast>(18446744073709551614ULL); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableBitmap64::Id, value); } - case 202: { - LogStep(202, "Read attribute NULLABLE_BITMAP64 Max Value"); + case 204: { + LogStep(204, "Read attribute NULLABLE_BITMAP64 Max Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableBitmap64::Id); } - case 203: { - LogStep(203, "Write attribute NULLABLE_BITMAP64 Invalid Value"); + case 205: { + LogStep(205, "Write attribute NULLABLE_BITMAP64 Invalid Value"); chip::app::DataModel::Nullable> value; value.SetNonNull(); value.Value() = static_cast>(18446744073709551615ULL); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableBitmap64::Id, value); } - case 204: { - LogStep(204, "Read attribute NULLABLE_BITMAP64 unchanged Value"); + case 206: { + LogStep(206, "Read attribute NULLABLE_BITMAP64 unchanged Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableBitmap64::Id); } - case 205: { - LogStep(205, "Write attribute NULLABLE_BITMAP64 null Value"); + case 207: { + LogStep(207, "Write attribute NULLABLE_BITMAP64 null Value"); chip::app::DataModel::Nullable> value; value.SetNull(); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableBitmap64::Id, value); } - case 206: { - LogStep(206, "Read attribute NULLABLE_BITMAP64 null Value"); + case 208: { + LogStep(208, "Read attribute NULLABLE_BITMAP64 null Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableBitmap64::Id); } - case 207: { - LogStep(207, "Write attribute NULLABLE_INT8U Min Value"); + case 209: { + LogStep(209, "Write attribute NULLABLE_INT8U Min Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 0; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt8u::Id, value); } - case 208: { - LogStep(208, "Read attribute NULLABLE_INT8U Min Value"); + case 210: { + LogStep(210, "Read attribute NULLABLE_INT8U Min Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt8u::Id); } - case 209: { - LogStep(209, "Write attribute NULLABLE_INT8U Max Value"); + case 211: { + LogStep(211, "Write attribute NULLABLE_INT8U Max Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 254; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt8u::Id, value); } - case 210: { - LogStep(210, "Read attribute NULLABLE_INT8U Max Value"); + case 212: { + LogStep(212, "Read attribute NULLABLE_INT8U Max Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt8u::Id); } - case 211: { - LogStep(211, "Write attribute NULLABLE_INT8U Invalid Value"); + case 213: { + LogStep(213, "Write attribute NULLABLE_INT8U Invalid Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 255; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt8u::Id, value); } - case 212: { - LogStep(212, "Read attribute NULLABLE_INT8U unchanged Value"); + case 214: { + LogStep(214, "Read attribute NULLABLE_INT8U unchanged Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt8u::Id); } - case 213: { - LogStep(213, "Read attribute NULLABLE_INT8U unchanged Value with constraint"); + case 215: { + LogStep(215, "Read attribute NULLABLE_INT8U unchanged Value with constraint"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt8u::Id); } - case 214: { - LogStep(214, "Write attribute NULLABLE_INT8U null Value"); + case 216: { + LogStep(216, "Write attribute NULLABLE_INT8U null Value"); chip::app::DataModel::Nullable value; value.SetNull(); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt8u::Id, value); } - case 215: { - LogStep(215, "Read attribute NULLABLE_INT8U null Value"); + case 217: { + LogStep(217, "Read attribute NULLABLE_INT8U null Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt8u::Id); } - case 216: { - LogStep(216, "Read attribute NULLABLE_INT8U null Value & range"); + case 218: { + LogStep(218, "Read attribute NULLABLE_INT8U null Value & range"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt8u::Id); } - case 217: { - LogStep(217, "Read attribute NULLABLE_INT8U null Value & not"); + case 219: { + LogStep(219, "Read attribute NULLABLE_INT8U null Value & not"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt8u::Id); } - case 218: { - LogStep(218, "Write attribute NULLABLE_INT8U Value"); + case 220: { + LogStep(220, "Write attribute NULLABLE_INT8U Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 128; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt8u::Id, value); } - case 219: { - LogStep(219, "Read attribute NULLABLE_INT8U Value in range"); + case 221: { + LogStep(221, "Read attribute NULLABLE_INT8U Value in range"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt8u::Id); } - case 220: { - LogStep(220, "Read attribute NULLABLE_INT8U notValue OK"); + case 222: { + LogStep(222, "Read attribute NULLABLE_INT8U notValue OK"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt8u::Id); } - case 221: { - LogStep(221, "Write attribute NULLABLE_INT16U Min Value"); + case 223: { + LogStep(223, "Write attribute NULLABLE_INT16U Min Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 0U; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt16u::Id, value); } - case 222: { - LogStep(222, "Read attribute NULLABLE_INT16U Min Value"); + case 224: { + LogStep(224, "Read attribute NULLABLE_INT16U Min Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt16u::Id); } - case 223: { - LogStep(223, "Write attribute NULLABLE_INT16U Max Value"); + case 225: { + LogStep(225, "Write attribute NULLABLE_INT16U Max Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 65534U; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt16u::Id, value); } - case 224: { - LogStep(224, "Read attribute NULLABLE_INT16U Max Value"); + case 226: { + LogStep(226, "Read attribute NULLABLE_INT16U Max Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt16u::Id); } - case 225: { - LogStep(225, "Write attribute NULLABLE_INT16U Invalid Value"); + case 227: { + LogStep(227, "Write attribute NULLABLE_INT16U Invalid Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 65535U; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt16u::Id, value); } - case 226: { - LogStep(226, "Read attribute NULLABLE_INT16U unchanged Value"); + case 228: { + LogStep(228, "Read attribute NULLABLE_INT16U unchanged Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt16u::Id); } - case 227: { - LogStep(227, "Write attribute NULLABLE_INT16U null Value"); + case 229: { + LogStep(229, "Write attribute NULLABLE_INT16U null Value"); chip::app::DataModel::Nullable value; value.SetNull(); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt16u::Id, value); } - case 228: { - LogStep(228, "Read attribute NULLABLE_INT16U null Value"); + case 230: { + LogStep(230, "Read attribute NULLABLE_INT16U null Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt16u::Id); } - case 229: { - LogStep(229, "Read attribute NULLABLE_INT16U null Value & range"); + case 231: { + LogStep(231, "Read attribute NULLABLE_INT16U null Value & range"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt16u::Id); } - case 230: { - LogStep(230, "Read attribute NULLABLE_INT16U null Value & not"); + case 232: { + LogStep(232, "Read attribute NULLABLE_INT16U null Value & not"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt16u::Id); } - case 231: { - LogStep(231, "Write attribute NULLABLE_INT16U Value"); + case 233: { + LogStep(233, "Write attribute NULLABLE_INT16U Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 32000U; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt16u::Id, value); } - case 232: { - LogStep(232, "Read attribute NULLABLE_INT16U Value in range"); + case 234: { + LogStep(234, "Read attribute NULLABLE_INT16U Value in range"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt16u::Id); } - case 233: { - LogStep(233, "Read attribute NULLABLE_INT16U notValue OK"); + case 235: { + LogStep(235, "Read attribute NULLABLE_INT16U notValue OK"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt16u::Id); } - case 234: { - LogStep(234, "Write attribute NULLABLE_INT32U Min Value"); + case 236: { + LogStep(236, "Write attribute NULLABLE_INT32U Min Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 0UL; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt32u::Id, value); } - case 235: { - LogStep(235, "Read attribute NULLABLE_INT32U Min Value"); + case 237: { + LogStep(237, "Read attribute NULLABLE_INT32U Min Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt32u::Id); } - case 236: { - LogStep(236, "Write attribute NULLABLE_INT32U Max Value"); + case 238: { + LogStep(238, "Write attribute NULLABLE_INT32U Max Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 4294967294UL; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt32u::Id, value); } - case 237: { - LogStep(237, "Read attribute NULLABLE_INT32U Max Value"); + case 239: { + LogStep(239, "Read attribute NULLABLE_INT32U Max Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt32u::Id); } - case 238: { - LogStep(238, "Write attribute NULLABLE_INT32U Invalid Value"); + case 240: { + LogStep(240, "Write attribute NULLABLE_INT32U Invalid Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 4294967295UL; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt32u::Id, value); } - case 239: { - LogStep(239, "Read attribute NULLABLE_INT32U unchanged Value"); + case 241: { + LogStep(241, "Read attribute NULLABLE_INT32U unchanged Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt32u::Id); } - case 240: { - LogStep(240, "Write attribute NULLABLE_INT32U null Value"); + case 242: { + LogStep(242, "Write attribute NULLABLE_INT32U null Value"); chip::app::DataModel::Nullable value; value.SetNull(); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt32u::Id, value); } - case 241: { - LogStep(241, "Read attribute NULLABLE_INT32U null Value"); + case 243: { + LogStep(243, "Read attribute NULLABLE_INT32U null Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt32u::Id); } - case 242: { - LogStep(242, "Read attribute NULLABLE_INT32U null Value & range"); + case 244: { + LogStep(244, "Read attribute NULLABLE_INT32U null Value & range"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt32u::Id); } - case 243: { - LogStep(243, "Read attribute NULLABLE_INT32U null Value & not"); + case 245: { + LogStep(245, "Read attribute NULLABLE_INT32U null Value & not"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt32u::Id); } - case 244: { - LogStep(244, "Write attribute NULLABLE_INT32U Value"); + case 246: { + LogStep(246, "Write attribute NULLABLE_INT32U Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 2147483647UL; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt32u::Id, value); } - case 245: { - LogStep(245, "Read attribute NULLABLE_INT32U Value in range"); + case 247: { + LogStep(247, "Read attribute NULLABLE_INT32U Value in range"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt32u::Id); } - case 246: { - LogStep(246, "Read attribute NULLABLE_INT32U notValue OK"); + case 248: { + LogStep(248, "Read attribute NULLABLE_INT32U notValue OK"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt32u::Id); } - case 247: { - LogStep(247, "Write attribute NULLABLE_INT64U Min Value"); + case 249: { + LogStep(249, "Write attribute NULLABLE_INT64U Min Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 0ULL; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt64u::Id, value); } - case 248: { - LogStep(248, "Read attribute NULLABLE_INT64U Min Value"); + case 250: { + LogStep(250, "Read attribute NULLABLE_INT64U Min Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt64u::Id); } - case 249: { - LogStep(249, "Write attribute NULLABLE_INT64U Max Value"); + case 251: { + LogStep(251, "Write attribute NULLABLE_INT64U Max Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 18446744073709551614ULL; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt64u::Id, value); } - case 250: { - LogStep(250, "Read attribute NULLABLE_INT64U Max Value"); + case 252: { + LogStep(252, "Read attribute NULLABLE_INT64U Max Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt64u::Id); } - case 251: { - LogStep(251, "Write attribute NULLABLE_INT64U Invalid Value"); + case 253: { + LogStep(253, "Write attribute NULLABLE_INT64U Invalid Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 18446744073709551615ULL; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt64u::Id, value); } - case 252: { - LogStep(252, "Read attribute NULLABLE_INT64U unchanged Value"); + case 254: { + LogStep(254, "Read attribute NULLABLE_INT64U unchanged Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt64u::Id); } - case 253: { - LogStep(253, "Write attribute NULLABLE_INT64U null Value"); + case 255: { + LogStep(255, "Write attribute NULLABLE_INT64U null Value"); chip::app::DataModel::Nullable value; value.SetNull(); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt64u::Id, value); } - case 254: { - LogStep(254, "Read attribute NULLABLE_INT64U null Value"); + case 256: { + LogStep(256, "Read attribute NULLABLE_INT64U null Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt64u::Id); } - case 255: { - LogStep(255, "Read attribute NULLABLE_INT64U null Value & range"); + case 257: { + LogStep(257, "Read attribute NULLABLE_INT64U null Value & range"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt64u::Id); } - case 256: { - LogStep(256, "Read attribute NULLABLE_INT64U null Value & not"); + case 258: { + LogStep(258, "Read attribute NULLABLE_INT64U null Value & not"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt64u::Id); } - case 257: { - LogStep(257, "Write attribute NULLABLE_INT64U Value"); + case 259: { + LogStep(259, "Write attribute NULLABLE_INT64U Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 18000000000000000000ULL; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt64u::Id, value); } - case 258: { - LogStep(258, "Read attribute NULLABLE_INT64U Value in range"); + case 260: { + LogStep(260, "Read attribute NULLABLE_INT64U Value in range"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt64u::Id); } - case 259: { - LogStep(259, "Read attribute NULLABLE_INT64U notValue OK"); + case 261: { + LogStep(261, "Read attribute NULLABLE_INT64U notValue OK"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt64u::Id); } - case 260: { - LogStep(260, "Write attribute NULLABLE_INT8S Min Value"); + case 262: { + LogStep(262, "Write attribute NULLABLE_INT8S Min Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = -127; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt8s::Id, value); } - case 261: { - LogStep(261, "Read attribute NULLABLE_INT8S Min Value"); + case 263: { + LogStep(263, "Read attribute NULLABLE_INT8S Min Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt8s::Id); } - case 262: { - LogStep(262, "Write attribute NULLABLE_INT8S Invalid Value"); + case 264: { + LogStep(264, "Write attribute NULLABLE_INT8S Invalid Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = -128; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt8s::Id, value); } - case 263: { - LogStep(263, "Read attribute NULLABLE_INT8S unchanged Value"); + case 265: { + LogStep(265, "Read attribute NULLABLE_INT8S unchanged Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt8s::Id); } - case 264: { - LogStep(264, "Write attribute NULLABLE_INT8S null Value"); + case 266: { + LogStep(266, "Write attribute NULLABLE_INT8S null Value"); chip::app::DataModel::Nullable value; value.SetNull(); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt8s::Id, value); } - case 265: { - LogStep(265, "Read attribute NULLABLE_INT8S null Value"); + case 267: { + LogStep(267, "Read attribute NULLABLE_INT8S null Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt8s::Id); } - case 266: { - LogStep(266, "Read attribute NULLABLE_INT8S null Value & range"); + case 268: { + LogStep(268, "Read attribute NULLABLE_INT8S null Value & range"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt8s::Id); } - case 267: { - LogStep(267, "Read attribute NULLABLE_INT8S null Value & not"); + case 269: { + LogStep(269, "Read attribute NULLABLE_INT8S null Value & not"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt8s::Id); } - case 268: { - LogStep(268, "Write attribute NULLABLE_INT8S Value"); + case 270: { + LogStep(270, "Write attribute NULLABLE_INT8S Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = -127; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt8s::Id, value); } - case 269: { - LogStep(269, "Read attribute NULLABLE_INT8S Value in range"); + case 271: { + LogStep(271, "Read attribute NULLABLE_INT8S Value in range"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt8s::Id); } - case 270: { - LogStep(270, "Read attribute NULLABLE_INT8S notValue OK"); + case 272: { + LogStep(272, "Read attribute NULLABLE_INT8S notValue OK"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt8s::Id); } - case 271: { - LogStep(271, "Write attribute NULLABLE_INT16S Min Value"); + case 273: { + LogStep(273, "Write attribute NULLABLE_INT16S Min Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = -32767; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt16s::Id, value); } - case 272: { - LogStep(272, "Read attribute NULLABLE_INT16S Min Value"); + case 274: { + LogStep(274, "Read attribute NULLABLE_INT16S Min Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt16s::Id); } - case 273: { - LogStep(273, "Write attribute NULLABLE_INT16S Invalid Value"); + case 275: { + LogStep(275, "Write attribute NULLABLE_INT16S Invalid Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = -32768; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt16s::Id, value); } - case 274: { - LogStep(274, "Read attribute NULLABLE_INT16S unchanged Value"); + case 276: { + LogStep(276, "Read attribute NULLABLE_INT16S unchanged Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt16s::Id); } - case 275: { - LogStep(275, "Write attribute NULLABLE_INT16S null Value"); + case 277: { + LogStep(277, "Write attribute NULLABLE_INT16S null Value"); chip::app::DataModel::Nullable value; value.SetNull(); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt16s::Id, value); } - case 276: { - LogStep(276, "Read attribute NULLABLE_INT16S null Value"); + case 278: { + LogStep(278, "Read attribute NULLABLE_INT16S null Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt16s::Id); } - case 277: { - LogStep(277, "Read attribute NULLABLE_INT16S null Value & range"); + case 279: { + LogStep(279, "Read attribute NULLABLE_INT16S null Value & range"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt16s::Id); } - case 278: { - LogStep(278, "Read attribute NULLABLE_INT16S null Value & not"); + case 280: { + LogStep(280, "Read attribute NULLABLE_INT16S null Value & not"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt16s::Id); } - case 279: { - LogStep(279, "Write attribute NULLABLE_INT16S Value"); + case 281: { + LogStep(281, "Write attribute NULLABLE_INT16S Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = -32767; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt16s::Id, value); } - case 280: { - LogStep(280, "Read attribute NULLABLE_INT16S Value in range"); + case 282: { + LogStep(282, "Read attribute NULLABLE_INT16S Value in range"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt16s::Id); } - case 281: { - LogStep(281, "Read attribute NULLABLE_INT16S notValue OK"); + case 283: { + LogStep(283, "Read attribute NULLABLE_INT16S notValue OK"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt16s::Id); } - case 282: { - LogStep(282, "Write attribute NULLABLE_INT32S Min Value"); + case 284: { + LogStep(284, "Write attribute NULLABLE_INT32S Min Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = -2147483647L; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt32s::Id, value); } - case 283: { - LogStep(283, "Read attribute NULLABLE_INT32S Min Value"); + case 285: { + LogStep(285, "Read attribute NULLABLE_INT32S Min Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt32s::Id); } - case 284: { - LogStep(284, "Write attribute NULLABLE_INT32S Invalid Value"); + case 286: { + LogStep(286, "Write attribute NULLABLE_INT32S Invalid Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = -2147483648L; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt32s::Id, value); } - case 285: { - LogStep(285, "Read attribute NULLABLE_INT32S unchanged Value"); + case 287: { + LogStep(287, "Read attribute NULLABLE_INT32S unchanged Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt32s::Id); } - case 286: { - LogStep(286, "Write attribute NULLABLE_INT32S null Value"); + case 288: { + LogStep(288, "Write attribute NULLABLE_INT32S null Value"); chip::app::DataModel::Nullable value; value.SetNull(); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt32s::Id, value); } - case 287: { - LogStep(287, "Read attribute NULLABLE_INT32S null Value"); + case 289: { + LogStep(289, "Read attribute NULLABLE_INT32S null Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt32s::Id); } - case 288: { - LogStep(288, "Read attribute NULLABLE_INT32S null Value & range"); + case 290: { + LogStep(290, "Read attribute NULLABLE_INT32S null Value & range"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt32s::Id); } - case 289: { - LogStep(289, "Read attribute NULLABLE_INT32S null Value & not"); + case 291: { + LogStep(291, "Read attribute NULLABLE_INT32S null Value & not"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt32s::Id); } - case 290: { - LogStep(290, "Write attribute NULLABLE_INT32S Value"); + case 292: { + LogStep(292, "Write attribute NULLABLE_INT32S Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = -2147483647L; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt32s::Id, value); } - case 291: { - LogStep(291, "Read attribute NULLABLE_INT32S Value in range"); + case 293: { + LogStep(293, "Read attribute NULLABLE_INT32S Value in range"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt32s::Id); } - case 292: { - LogStep(292, "Read attribute NULLABLE_INT32S notValue OK"); + case 294: { + LogStep(294, "Read attribute NULLABLE_INT32S notValue OK"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt32s::Id); } - case 293: { - LogStep(293, "Write attribute NULLABLE_INT64S Min Value"); + case 295: { + LogStep(295, "Write attribute NULLABLE_INT64S Min Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = -9223372036854775807LL; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt64s::Id, value); } - case 294: { - LogStep(294, "Read attribute NULLABLE_INT64S Min Value"); + case 296: { + LogStep(296, "Read attribute NULLABLE_INT64S Min Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt64s::Id); } - case 295: { - LogStep(295, "Write attribute NULLABLE_INT64S Invalid Value"); + case 297: { + LogStep(297, "Write attribute NULLABLE_INT64S Invalid Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = static_cast(-9223372036854775807LL - 1); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt64s::Id, value); } - case 296: { - LogStep(296, "Read attribute NULLABLE_INT64S unchanged Value"); + case 298: { + LogStep(298, "Read attribute NULLABLE_INT64S unchanged Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt64s::Id); } - case 297: { - LogStep(297, "Write attribute NULLABLE_INT64S null Value"); + case 299: { + LogStep(299, "Write attribute NULLABLE_INT64S null Value"); chip::app::DataModel::Nullable value; value.SetNull(); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt64s::Id, value); } - case 298: { - LogStep(298, "Read attribute NULLABLE_INT64S null Value"); + case 300: { + LogStep(300, "Read attribute NULLABLE_INT64S null Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt64s::Id); } - case 299: { - LogStep(299, "Read attribute NULLABLE_INT64S null Value & range"); + case 301: { + LogStep(301, "Read attribute NULLABLE_INT64S null Value & range"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt64s::Id); } - case 300: { - LogStep(300, "Read attribute NULLABLE_INT64S null Value & not"); + case 302: { + LogStep(302, "Read attribute NULLABLE_INT64S null Value & not"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt64s::Id); } - case 301: { - LogStep(301, "Write attribute NULLABLE_INT64S Value"); + case 303: { + LogStep(303, "Write attribute NULLABLE_INT64S Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = -9223372036854775807LL; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt64s::Id, value); } - case 302: { - LogStep(302, "Read attribute NULLABLE_INT64S Value in range"); + case 304: { + LogStep(304, "Read attribute NULLABLE_INT64S Value in range"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt64s::Id); } - case 303: { - LogStep(303, "Read attribute NULLABLE_INT64S notValue OK"); + case 305: { + LogStep(305, "Read attribute NULLABLE_INT64S notValue OK"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableInt64s::Id); } - case 304: { - LogStep(304, "Write attribute NULLABLE_SINGLE medium Value"); + case 306: { + LogStep(306, "Write attribute NULLABLE_SINGLE medium Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 0.1f; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableFloatSingle::Id, value); } - case 305: { - LogStep(305, "Read attribute NULLABLE_SINGLE medium Value"); + case 307: { + LogStep(307, "Read attribute NULLABLE_SINGLE medium Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableFloatSingle::Id); } - case 306: { - LogStep(306, "Write attribute NULLABLE_SINGLE largest Value"); + case 308: { + LogStep(308, "Write attribute NULLABLE_SINGLE largest Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = INFINITY; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableFloatSingle::Id, value); } - case 307: { - LogStep(307, "Read attribute NULLABLE_SINGLE largest Value"); + case 309: { + LogStep(309, "Read attribute NULLABLE_SINGLE largest Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableFloatSingle::Id); } - case 308: { - LogStep(308, "Write attribute NULLABLE_SINGLE smallest Value"); + case 310: { + LogStep(310, "Write attribute NULLABLE_SINGLE smallest Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = -INFINITY; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableFloatSingle::Id, value); } - case 309: { - LogStep(309, "Read attribute NULLABLE_SINGLE smallest Value"); + case 311: { + LogStep(311, "Read attribute NULLABLE_SINGLE smallest Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableFloatSingle::Id); } - case 310: { - LogStep(310, "Write attribute NULLABLE_SINGLE null Value"); + case 312: { + LogStep(312, "Write attribute NULLABLE_SINGLE null Value"); chip::app::DataModel::Nullable value; value.SetNull(); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableFloatSingle::Id, value); } - case 311: { - LogStep(311, "Read attribute NULLABLE_SINGLE null Value"); + case 313: { + LogStep(313, "Read attribute NULLABLE_SINGLE null Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableFloatSingle::Id); } - case 312: { - LogStep(312, "Write attribute NULLABLE_SINGLE 0 Value"); + case 314: { + LogStep(314, "Write attribute NULLABLE_SINGLE 0 Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 0.0f; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableFloatSingle::Id, value); } - case 313: { - LogStep(313, "Read attribute NULLABLE_SINGLE 0 Value"); + case 315: { + LogStep(315, "Read attribute NULLABLE_SINGLE 0 Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableFloatSingle::Id); } - case 314: { - LogStep(314, "Write attribute NULLABLE_DOUBLE medium Value"); + case 316: { + LogStep(316, "Write attribute NULLABLE_DOUBLE medium Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 0.1234567890123; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableFloatDouble::Id, value); } - case 315: { - LogStep(315, "Read attribute NULLABLE_DOUBLE medium Value"); + case 317: { + LogStep(317, "Read attribute NULLABLE_DOUBLE medium Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableFloatDouble::Id); } - case 316: { - LogStep(316, "Write attribute NULLABLE_DOUBLE largest Value"); + case 318: { + LogStep(318, "Write attribute NULLABLE_DOUBLE largest Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = INFINITY; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableFloatDouble::Id, value); } - case 317: { - LogStep(317, "Read attribute NULLABLE_DOUBLE largest Value"); + case 319: { + LogStep(319, "Read attribute NULLABLE_DOUBLE largest Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableFloatDouble::Id); } - case 318: { - LogStep(318, "Write attribute NULLABLE_DOUBLE smallest Value"); + case 320: { + LogStep(320, "Write attribute NULLABLE_DOUBLE smallest Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = -INFINITY; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableFloatDouble::Id, value); } - case 319: { - LogStep(319, "Read attribute NULLABLE_DOUBLE smallest Value"); + case 321: { + LogStep(321, "Read attribute NULLABLE_DOUBLE smallest Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableFloatDouble::Id); } - case 320: { - LogStep(320, "Write attribute NULLABLE_DOUBLE null Value"); + case 322: { + LogStep(322, "Write attribute NULLABLE_DOUBLE null Value"); chip::app::DataModel::Nullable value; value.SetNull(); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableFloatDouble::Id, value); } - case 321: { - LogStep(321, "Read attribute NULLABLE_DOUBLE null Value"); + case 323: { + LogStep(323, "Read attribute NULLABLE_DOUBLE null Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableFloatDouble::Id); } - case 322: { - LogStep(322, "Write attribute NULLABLE_DOUBLE 0 Value"); + case 324: { + LogStep(324, "Write attribute NULLABLE_DOUBLE 0 Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 0; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableFloatDouble::Id, value); } - case 323: { - LogStep(323, "Read attribute NULLABLE_DOUBLE 0 Value"); + case 325: { + LogStep(325, "Read attribute NULLABLE_DOUBLE 0 Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableFloatDouble::Id); } - case 324: { - LogStep(324, "Write attribute NULLABLE_ENUM8 Min Value"); + case 326: { + LogStep(326, "Write attribute NULLABLE_ENUM8 Min Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 0; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableEnum8::Id, value); } - case 325: { - LogStep(325, "Read attribute NULLABLE_ENUM8 Min Value"); + case 327: { + LogStep(327, "Read attribute NULLABLE_ENUM8 Min Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableEnum8::Id); } - case 326: { - LogStep(326, "Write attribute NULLABLE_ENUM8 Max Value"); + case 328: { + LogStep(328, "Write attribute NULLABLE_ENUM8 Max Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 254; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableEnum8::Id, value); } - case 327: { - LogStep(327, "Read attribute NULLABLE_ENUM8 Max Value"); + case 329: { + LogStep(329, "Read attribute NULLABLE_ENUM8 Max Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableEnum8::Id); } - case 328: { - LogStep(328, "Write attribute NULLABLE_ENUM8 Invalid Value"); + case 330: { + LogStep(330, "Write attribute NULLABLE_ENUM8 Invalid Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 255; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableEnum8::Id, value); } - case 329: { - LogStep(329, "Read attribute NULLABLE_ENUM8 unchanged Value"); + case 331: { + LogStep(331, "Read attribute NULLABLE_ENUM8 unchanged Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableEnum8::Id); } - case 330: { - LogStep(330, "Write attribute NULLABLE_ENUM8 null Value"); + case 332: { + LogStep(332, "Write attribute NULLABLE_ENUM8 null Value"); chip::app::DataModel::Nullable value; value.SetNull(); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableEnum8::Id, value); } - case 331: { - LogStep(331, "Read attribute NULLABLE_ENUM8 null Value"); + case 333: { + LogStep(333, "Read attribute NULLABLE_ENUM8 null Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableEnum8::Id); } - case 332: { - LogStep(332, "Write attribute NULLABLE_ENUM16 Min Value"); + case 334: { + LogStep(334, "Write attribute NULLABLE_ENUM16 Min Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 0U; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableEnum16::Id, value); } - case 333: { - LogStep(333, "Read attribute NULLABLE_ENUM16 Min Value"); + case 335: { + LogStep(335, "Read attribute NULLABLE_ENUM16 Min Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableEnum16::Id); } - case 334: { - LogStep(334, "Write attribute NULLABLE_ENUM16 Max Value"); + case 336: { + LogStep(336, "Write attribute NULLABLE_ENUM16 Max Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 65534U; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableEnum16::Id, value); } - case 335: { - LogStep(335, "Read attribute NULLABLE_ENUM16 Max Value"); + case 337: { + LogStep(337, "Read attribute NULLABLE_ENUM16 Max Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableEnum16::Id); } - case 336: { - LogStep(336, "Write attribute NULLABLE_ENUM16 Invalid Value"); + case 338: { + LogStep(338, "Write attribute NULLABLE_ENUM16 Invalid Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 65535U; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableEnum16::Id, value); } - case 337: { - LogStep(337, "Read attribute NULLABLE_ENUM16 unchanged Value"); + case 339: { + LogStep(339, "Read attribute NULLABLE_ENUM16 unchanged Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableEnum16::Id); } - case 338: { - LogStep(338, "Write attribute NULLABLE_ENUM16 null Value"); + case 340: { + LogStep(340, "Write attribute NULLABLE_ENUM16 null Value"); chip::app::DataModel::Nullable value; value.SetNull(); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableEnum16::Id, value); } - case 339: { - LogStep(339, "Read attribute NULLABLE_ENUM16 null Value"); + case 341: { + LogStep(341, "Read attribute NULLABLE_ENUM16 null Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableEnum16::Id); } - case 340: { - LogStep(340, "Write attribute NULLABLE_SIMPLE_ENUM Min Value"); + case 342: { + LogStep(342, "Write attribute NULLABLE_SIMPLE_ENUM Min Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = static_cast(0); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableEnumAttr::Id, value); } - case 341: { - LogStep(341, "Read attribute NULLABLE_SIMPLE_ENUM Min Value"); + case 343: { + LogStep(343, "Read attribute NULLABLE_SIMPLE_ENUM Min Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableEnumAttr::Id); } - case 342: { - LogStep(342, "Write attribute NULLABLE_SIMPLE_ENUM Max Value"); + case 344: { + LogStep(344, "Write attribute NULLABLE_SIMPLE_ENUM Max Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = static_cast(254); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableEnumAttr::Id, value); } - case 343: { - LogStep(343, "Read attribute NULLABLE_SIMPLE_ENUM Max Value"); + case 345: { + LogStep(345, "Read attribute NULLABLE_SIMPLE_ENUM Max Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableEnumAttr::Id); } - case 344: { - LogStep(344, "Write attribute NULLABLE_SIMPLE_ENUM Invalid Value"); + case 346: { + LogStep(346, "Write attribute NULLABLE_SIMPLE_ENUM Invalid Value"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = static_cast(255); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableEnumAttr::Id, value); } - case 345: { - LogStep(345, "Read attribute NULLABLE_SIMPLE_ENUM unchanged Value"); + case 347: { + LogStep(347, "Read attribute NULLABLE_SIMPLE_ENUM unchanged Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableEnumAttr::Id); } - case 346: { - LogStep(346, "Write attribute NULLABLE_SIMPLE_ENUM null Value"); + case 348: { + LogStep(348, "Write attribute NULLABLE_SIMPLE_ENUM null Value"); chip::app::DataModel::Nullable value; value.SetNull(); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableEnumAttr::Id, value); } - case 347: { - LogStep(347, "Read attribute NULLABLE_SIMPLE_ENUM null Value"); + case 349: { + LogStep(349, "Read attribute NULLABLE_SIMPLE_ENUM null Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableEnumAttr::Id); } - case 348: { - LogStep(348, "Read attribute NULLABLE_OCTET_STRING Default Value"); + case 350: { + LogStep(350, "Read attribute NULLABLE_SIMPLE_ENUM not 254 Value"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableEnumAttr::Id); + } + case 351: { + LogStep(351, "Read attribute NULLABLE_OCTET_STRING Default Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableOctetString::Id); } - case 349: { - LogStep(349, "Write attribute NULLABLE_OCTET_STRING"); + case 352: { + LogStep(352, "Write attribute NULLABLE_OCTET_STRING"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = chip::ByteSpan(chip::Uint8::from_const_char("TestValuegarbage: not in length on purpose"), 9); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableOctetString::Id, value); } - case 350: { - LogStep(350, "Read attribute NULLABLE_OCTET_STRING"); + case 353: { + LogStep(353, "Read attribute NULLABLE_OCTET_STRING"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableOctetString::Id); } - case 351: { - LogStep(351, "Write attribute NULLABLE_OCTET_STRING"); + case 354: { + LogStep(354, "Write attribute NULLABLE_OCTET_STRING"); chip::app::DataModel::Nullable value; value.SetNull(); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableOctetString::Id, value); } - case 352: { - LogStep(352, "Read attribute NULLABLE_OCTET_STRING"); + case 355: { + LogStep(355, "Read attribute NULLABLE_OCTET_STRING"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableOctetString::Id); } - case 353: { - LogStep(353, "Write attribute NULLABLE_OCTET_STRING"); + case 356: { + LogStep(356, "Write attribute NULLABLE_OCTET_STRING"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = chip::ByteSpan(chip::Uint8::from_const_char("garbage: not in length on purpose"), 0); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableOctetString::Id, value); } - case 354: { - LogStep(354, "Read attribute NULLABLE_OCTET_STRING"); + case 357: { + LogStep(357, "Read attribute NULLABLE_OCTET_STRING"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableOctetString::Id); + } + case 358: { + LogStep(358, "Read attribute NULLABLE_OCTET_STRING not TestValue"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableOctetString::Id); } - case 355: { - LogStep(355, "Read attribute NULLABLE_CHAR_STRING Default Value"); + case 359: { + LogStep(359, "Read attribute NULLABLE_CHAR_STRING Default Value"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableCharString::Id); } - case 356: { - LogStep(356, "Write attribute NULLABLE_CHAR_STRING"); + case 360: { + LogStep(360, "Write attribute NULLABLE_CHAR_STRING"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = chip::Span("☉T☉garbage: not in length on purpose", 7); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableCharString::Id, value); } - case 357: { - LogStep(357, "Read attribute NULLABLE_CHAR_STRING"); + case 361: { + LogStep(361, "Read attribute NULLABLE_CHAR_STRING"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableCharString::Id); } - case 358: { - LogStep(358, "Write attribute NULLABLE_CHAR_STRING - Value too long"); + case 362: { + LogStep(362, "Read attribute NULLABLE_CHAR_STRING"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableCharString::Id); + } + case 363: { + LogStep(363, "Write attribute NULLABLE_CHAR_STRING - Value too long"); chip::app::DataModel::Nullable value; value.SetNull(); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableCharString::Id, value); } - case 359: { - LogStep(359, "Read attribute NULLABLE_CHAR_STRING"); + case 364: { + LogStep(364, "Read attribute NULLABLE_CHAR_STRING"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableCharString::Id); } - case 360: { - LogStep(360, "Write attribute NULLABLE_CHAR_STRING - Empty"); + case 365: { + LogStep(365, "Write attribute NULLABLE_CHAR_STRING - Empty"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = chip::Span("garbage: not in length on purpose", 0); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableCharString::Id, value); } - case 361: { - LogStep(361, "Read attribute NULLABLE_CHAR_STRING"); + case 366: { + LogStep(366, "Read attribute NULLABLE_CHAR_STRING"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableCharString::Id); } - case 362: { - LogStep(362, "Read attribute from nonexistent endpoint."); + case 367: { + LogStep(367, "Read attribute NULLABLE_CHAR_STRING not ☉T☉"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableCharString::Id); + } + case 368: { + LogStep(368, "Read attribute from nonexistent endpoint."); return ReadAttribute(kIdentityAlpha, GetEndpoint(200), TestCluster::Id, TestCluster::Attributes::ListInt8u::Id); } - case 363: { - LogStep(363, "Read attribute from nonexistent cluster."); + case 369: { + LogStep(369, "Read attribute from nonexistent cluster."); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), TestCluster::Id, TestCluster::Attributes::ListInt8u::Id); } - case 364: { - LogStep(364, "Send a command that takes an optional parameter but do not set it."); + case 370: { + LogStep(370, "Send a command that takes an optional parameter but do not set it."); chip::app::Clusters::TestCluster::Commands::TestSimpleOptionalArgumentRequest::Type value; return SendCommand(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Commands::TestSimpleOptionalArgumentRequest::Id, value); } - case 365: { - LogStep(365, "Send a command that takes an optional parameter but do not set it."); + case 371: { + LogStep(371, "Send a command that takes an optional parameter but do not set it."); chip::app::Clusters::TestCluster::Commands::TestSimpleOptionalArgumentRequest::Type value; value.arg1.Emplace(); value.arg1.Value() = 1; return SendCommand(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Commands::TestSimpleOptionalArgumentRequest::Id, value); } - case 366: { - LogStep(366, "Subscribe to list attribute"); + case 372: { + LogStep(372, "Subscribe to list attribute"); return SubscribeAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::ListInt8u::Id, 2, 5); } - case 367: { - LogStep(367, "Write subscribed-to list attribute"); + case 373: { + LogStep(373, "Write subscribed-to list attribute"); ListFreer listFreer; chip::app::DataModel::List value; @@ -43464,711 +43600,711 @@ class TestClusterSuite : public TestCommand } return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::ListInt8u::Id, value); } - case 368: { - LogStep(368, "Check for list attribute report"); + case 374: { + LogStep(374, "Check for list attribute report"); return WaitForReport(); } - case 369: { - LogStep(369, "Read range-restricted unsigned 8-bit integer"); + case 375: { + LogStep(375, "Read range-restricted unsigned 8-bit integer"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt8u::Id); } - case 370: { - LogStep(370, "Write min value to a range-restricted unsigned 8-bit integer"); + case 376: { + LogStep(376, "Write min value to a range-restricted unsigned 8-bit integer"); uint8_t value; value = 0; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt8u::Id, value); } - case 371: { - LogStep(371, "Write just-below-range value to a range-restricted unsigned 8-bit integer"); + case 377: { + LogStep(377, "Write just-below-range value to a range-restricted unsigned 8-bit integer"); uint8_t value; value = 19; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt8u::Id, value); } - case 372: { - LogStep(372, "Write just-above-range value to a range-restricted unsigned 8-bit integer"); + case 378: { + LogStep(378, "Write just-above-range value to a range-restricted unsigned 8-bit integer"); uint8_t value; value = 101; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt8u::Id, value); } - case 373: { - LogStep(373, "Write max value to a range-restricted unsigned 8-bit integer"); + case 379: { + LogStep(379, "Write max value to a range-restricted unsigned 8-bit integer"); uint8_t value; value = 255; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt8u::Id, value); } - case 374: { - LogStep(374, "Verify range-restricted unsigned 8-bit integer value has not changed"); + case 380: { + LogStep(380, "Verify range-restricted unsigned 8-bit integer value has not changed"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt8u::Id); } - case 375: { - LogStep(375, "Write min valid value to a range-restricted unsigned 8-bit integer"); + case 381: { + LogStep(381, "Write min valid value to a range-restricted unsigned 8-bit integer"); uint8_t value; value = 20; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt8u::Id, value); } - case 376: { - LogStep(376, "Verify range-restricted unsigned 8-bit integer value is at min valid"); + case 382: { + LogStep(382, "Verify range-restricted unsigned 8-bit integer value is at min valid"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt8u::Id); } - case 377: { - LogStep(377, "Write max valid value to a range-restricted unsigned 8-bit integer"); + case 383: { + LogStep(383, "Write max valid value to a range-restricted unsigned 8-bit integer"); uint8_t value; value = 100; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt8u::Id, value); } - case 378: { - LogStep(378, "Verify range-restricted unsigned 8-bit integer value is at max valid"); + case 384: { + LogStep(384, "Verify range-restricted unsigned 8-bit integer value is at max valid"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt8u::Id); } - case 379: { - LogStep(379, "Write middle valid value to a range-restricted unsigned 8-bit integer"); + case 385: { + LogStep(385, "Write middle valid value to a range-restricted unsigned 8-bit integer"); uint8_t value; value = 50; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt8u::Id, value); } - case 380: { - LogStep(380, "Verify range-restricted unsigned 8-bit integer value is at mid valid"); + case 386: { + LogStep(386, "Verify range-restricted unsigned 8-bit integer value is at mid valid"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt8u::Id); } - case 381: { - LogStep(381, "Read range-restricted unsigned 16-bit integer"); + case 387: { + LogStep(387, "Read range-restricted unsigned 16-bit integer"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt16u::Id); } - case 382: { - LogStep(382, "Write min value to a range-restricted unsigned 16-bit integer"); + case 388: { + LogStep(388, "Write min value to a range-restricted unsigned 16-bit integer"); uint16_t value; value = 0U; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt16u::Id, value); } - case 383: { - LogStep(383, "Write just-below-range value to a range-restricted unsigned 16-bit integer"); + case 389: { + LogStep(389, "Write just-below-range value to a range-restricted unsigned 16-bit integer"); uint16_t value; value = 99U; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt16u::Id, value); } - case 384: { - LogStep(384, "Write just-above-range value to a range-restricted unsigned 16-bit integer"); + case 390: { + LogStep(390, "Write just-above-range value to a range-restricted unsigned 16-bit integer"); uint16_t value; value = 1001U; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt16u::Id, value); } - case 385: { - LogStep(385, "Write max value to a range-restricted unsigned 16-bit integer"); + case 391: { + LogStep(391, "Write max value to a range-restricted unsigned 16-bit integer"); uint16_t value; value = 65535U; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt16u::Id, value); } - case 386: { - LogStep(386, "Verify range-restricted unsigned 16-bit integer value has not changed"); + case 392: { + LogStep(392, "Verify range-restricted unsigned 16-bit integer value has not changed"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt16u::Id); } - case 387: { - LogStep(387, "Write min valid value to a range-restricted unsigned 16-bit integer"); + case 393: { + LogStep(393, "Write min valid value to a range-restricted unsigned 16-bit integer"); uint16_t value; value = 100U; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt16u::Id, value); } - case 388: { - LogStep(388, "Verify range-restricted unsigned 16-bit integer value is at min valid"); + case 394: { + LogStep(394, "Verify range-restricted unsigned 16-bit integer value is at min valid"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt16u::Id); } - case 389: { - LogStep(389, "Write max valid value to a range-restricted unsigned 16-bit integer"); + case 395: { + LogStep(395, "Write max valid value to a range-restricted unsigned 16-bit integer"); uint16_t value; value = 1000U; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt16u::Id, value); } - case 390: { - LogStep(390, "Verify range-restricted unsigned 16-bit integer value is at max valid"); + case 396: { + LogStep(396, "Verify range-restricted unsigned 16-bit integer value is at max valid"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt16u::Id); } - case 391: { - LogStep(391, "Write middle valid value to a range-restricted unsigned 16-bit integer"); + case 397: { + LogStep(397, "Write middle valid value to a range-restricted unsigned 16-bit integer"); uint16_t value; value = 500U; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt16u::Id, value); } - case 392: { - LogStep(392, "Verify range-restricted unsigned 16-bit integer value is at mid valid"); + case 398: { + LogStep(398, "Verify range-restricted unsigned 16-bit integer value is at mid valid"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt16u::Id); } - case 393: { - LogStep(393, "Read range-restricted signed 8-bit integer"); + case 399: { + LogStep(399, "Read range-restricted signed 8-bit integer"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt8s::Id); } - case 394: { - LogStep(394, "Write min value to a range-restricted signed 8-bit integer"); + case 400: { + LogStep(400, "Write min value to a range-restricted signed 8-bit integer"); int8_t value; value = -128; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt8s::Id, value); } - case 395: { - LogStep(395, "Write just-below-range value to a range-restricted signed 8-bit integer"); + case 401: { + LogStep(401, "Write just-below-range value to a range-restricted signed 8-bit integer"); int8_t value; value = -41; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt8s::Id, value); } - case 396: { - LogStep(396, "Write just-above-range value to a range-restricted signed 8-bit integer"); + case 402: { + LogStep(402, "Write just-above-range value to a range-restricted signed 8-bit integer"); int8_t value; value = 51; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt8s::Id, value); } - case 397: { - LogStep(397, "Write max value to a range-restricted signed 8-bit integer"); + case 403: { + LogStep(403, "Write max value to a range-restricted signed 8-bit integer"); int8_t value; value = 127; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt8s::Id, value); } - case 398: { - LogStep(398, "Verify range-restricted signed 8-bit integer value has not changed"); + case 404: { + LogStep(404, "Verify range-restricted signed 8-bit integer value has not changed"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt8s::Id); } - case 399: { - LogStep(399, "Write min valid value to a range-restricted signed 8-bit integer"); + case 405: { + LogStep(405, "Write min valid value to a range-restricted signed 8-bit integer"); int8_t value; value = -40; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt8s::Id, value); } - case 400: { - LogStep(400, "Verify range-restricted signed 8-bit integer value is at min valid"); + case 406: { + LogStep(406, "Verify range-restricted signed 8-bit integer value is at min valid"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt8s::Id); } - case 401: { - LogStep(401, "Write max valid value to a range-restricted signed 8-bit integer"); + case 407: { + LogStep(407, "Write max valid value to a range-restricted signed 8-bit integer"); int8_t value; value = 50; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt8s::Id, value); } - case 402: { - LogStep(402, "Verify range-restricted signed 8-bit integer value is at max valid"); + case 408: { + LogStep(408, "Verify range-restricted signed 8-bit integer value is at max valid"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt8s::Id); } - case 403: { - LogStep(403, "Write middle valid value to a range-restricted signed 8-bit integer"); + case 409: { + LogStep(409, "Write middle valid value to a range-restricted signed 8-bit integer"); int8_t value; value = 6; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt8s::Id, value); } - case 404: { - LogStep(404, "Verify range-restricted signed 8-bit integer value is at mid valid"); + case 410: { + LogStep(410, "Verify range-restricted signed 8-bit integer value is at mid valid"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt8s::Id); } - case 405: { - LogStep(405, "Read range-restricted signed 16-bit integer"); + case 411: { + LogStep(411, "Read range-restricted signed 16-bit integer"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt16s::Id); } - case 406: { - LogStep(406, "Write min value to a range-restricted signed 16-bit integer"); + case 412: { + LogStep(412, "Write min value to a range-restricted signed 16-bit integer"); int16_t value; value = -32768; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt16s::Id, value); } - case 407: { - LogStep(407, "Write just-below-range value to a range-restricted signed 16-bit integer"); + case 413: { + LogStep(413, "Write just-below-range value to a range-restricted signed 16-bit integer"); int16_t value; value = -151; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt16s::Id, value); } - case 408: { - LogStep(408, "Write just-above-range value to a range-restricted signed 16-bit integer"); + case 414: { + LogStep(414, "Write just-above-range value to a range-restricted signed 16-bit integer"); int16_t value; value = 201; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt16s::Id, value); } - case 409: { - LogStep(409, "Write max value to a range-restricted signed 16-bit integer"); + case 415: { + LogStep(415, "Write max value to a range-restricted signed 16-bit integer"); int16_t value; value = 32767; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt16s::Id, value); } - case 410: { - LogStep(410, "Verify range-restricted signed 16-bit integer value has not changed"); + case 416: { + LogStep(416, "Verify range-restricted signed 16-bit integer value has not changed"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt16s::Id); } - case 411: { - LogStep(411, "Write min valid value to a range-restricted signed 16-bit integer"); + case 417: { + LogStep(417, "Write min valid value to a range-restricted signed 16-bit integer"); int16_t value; value = -150; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt16s::Id, value); } - case 412: { - LogStep(412, "Verify range-restricted signed 16-bit integer value is at min valid"); + case 418: { + LogStep(418, "Verify range-restricted signed 16-bit integer value is at min valid"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt16s::Id); } - case 413: { - LogStep(413, "Write max valid value to a range-restricted signed 16-bit integer"); + case 419: { + LogStep(419, "Write max valid value to a range-restricted signed 16-bit integer"); int16_t value; value = 200; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt16s::Id, value); } - case 414: { - LogStep(414, "Verify range-restricted signed 16-bit integer value is at max valid"); + case 420: { + LogStep(420, "Verify range-restricted signed 16-bit integer value is at max valid"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt16s::Id); } - case 415: { - LogStep(415, "Write middle valid value to a range-restricted signed 16-bit integer"); + case 421: { + LogStep(421, "Write middle valid value to a range-restricted signed 16-bit integer"); int16_t value; value = 7; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt16s::Id, value); } - case 416: { - LogStep(416, "Verify range-restricted signed 16-bit integer value is at mid valid"); + case 422: { + LogStep(422, "Verify range-restricted signed 16-bit integer value is at mid valid"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::RangeRestrictedInt16s::Id); } - case 417: { - LogStep(417, "Read nullable range-restricted unsigned 8-bit integer"); + case 423: { + LogStep(423, "Read nullable range-restricted unsigned 8-bit integer"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt8u::Id); } - case 418: { - LogStep(418, "Write min value to a nullable range-restricted unsigned 8-bit integer"); + case 424: { + LogStep(424, "Write min value to a nullable range-restricted unsigned 8-bit integer"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 0; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt8u::Id, value); } - case 419: { - LogStep(419, "Write just-below-range value to a nullable range-restricted unsigned 8-bit integer"); + case 425: { + LogStep(425, "Write just-below-range value to a nullable range-restricted unsigned 8-bit integer"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 19; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt8u::Id, value); } - case 420: { - LogStep(420, "Write just-above-range value to a nullable range-restricted unsigned 8-bit integer"); + case 426: { + LogStep(426, "Write just-above-range value to a nullable range-restricted unsigned 8-bit integer"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 101; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt8u::Id, value); } - case 421: { - LogStep(421, "Write max value to a nullable range-restricted unsigned 8-bit integer"); + case 427: { + LogStep(427, "Write max value to a nullable range-restricted unsigned 8-bit integer"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 254; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt8u::Id, value); } - case 422: { - LogStep(422, "Verify nullable range-restricted unsigned 8-bit integer value has not changed"); + case 428: { + LogStep(428, "Verify nullable range-restricted unsigned 8-bit integer value has not changed"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt8u::Id); } - case 423: { - LogStep(423, "Write min valid value to a nullable range-restricted unsigned 8-bit integer"); + case 429: { + LogStep(429, "Write min valid value to a nullable range-restricted unsigned 8-bit integer"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 20; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt8u::Id, value); } - case 424: { - LogStep(424, "Verify nullable range-restricted unsigned 8-bit integer value is at min valid"); + case 430: { + LogStep(430, "Verify nullable range-restricted unsigned 8-bit integer value is at min valid"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt8u::Id); } - case 425: { - LogStep(425, "Write max valid value to a nullable range-restricted unsigned 8-bit integer"); + case 431: { + LogStep(431, "Write max valid value to a nullable range-restricted unsigned 8-bit integer"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 100; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt8u::Id, value); } - case 426: { - LogStep(426, "Verify nullable range-restricted unsigned 8-bit integer value is at max valid"); + case 432: { + LogStep(432, "Verify nullable range-restricted unsigned 8-bit integer value is at max valid"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt8u::Id); } - case 427: { - LogStep(427, "Write middle valid value to a nullable range-restricted unsigned 8-bit integer"); + case 433: { + LogStep(433, "Write middle valid value to a nullable range-restricted unsigned 8-bit integer"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 50; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt8u::Id, value); } - case 428: { - LogStep(428, "Verify nullable range-restricted unsigned 8-bit integer value is at mid valid"); + case 434: { + LogStep(434, "Verify nullable range-restricted unsigned 8-bit integer value is at mid valid"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt8u::Id); } - case 429: { - LogStep(429, "Write null value to a nullable range-restricted unsigned 8-bit integer"); + case 435: { + LogStep(435, "Write null value to a nullable range-restricted unsigned 8-bit integer"); chip::app::DataModel::Nullable value; value.SetNull(); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt8u::Id, value); } - case 430: { - LogStep(430, "Verify nullable range-restricted unsigned 8-bit integer value is null"); + case 436: { + LogStep(436, "Verify nullable range-restricted unsigned 8-bit integer value is null"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt8u::Id); } - case 431: { - LogStep(431, "Read nullable range-restricted unsigned 16-bit integer"); + case 437: { + LogStep(437, "Read nullable range-restricted unsigned 16-bit integer"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt16u::Id); } - case 432: { - LogStep(432, "Write min value to a nullable range-restricted unsigned 16-bit integer"); + case 438: { + LogStep(438, "Write min value to a nullable range-restricted unsigned 16-bit integer"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 0U; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt16u::Id, value); } - case 433: { - LogStep(433, "Write just-below-range value to a nullable range-restricted unsigned 16-bit integer"); + case 439: { + LogStep(439, "Write just-below-range value to a nullable range-restricted unsigned 16-bit integer"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 99U; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt16u::Id, value); } - case 434: { - LogStep(434, "Write just-above-range value to a nullable range-restricted unsigned 16-bit integer"); + case 440: { + LogStep(440, "Write just-above-range value to a nullable range-restricted unsigned 16-bit integer"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 1001U; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt16u::Id, value); } - case 435: { - LogStep(435, "Write max value to a nullable range-restricted unsigned 16-bit integer"); + case 441: { + LogStep(441, "Write max value to a nullable range-restricted unsigned 16-bit integer"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 65534U; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt16u::Id, value); } - case 436: { - LogStep(436, "Verify nullable range-restricted unsigned 16-bit integer value has not changed"); + case 442: { + LogStep(442, "Verify nullable range-restricted unsigned 16-bit integer value has not changed"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt16u::Id); } - case 437: { - LogStep(437, "Write min valid value to a nullable range-restricted unsigned 16-bit integer"); + case 443: { + LogStep(443, "Write min valid value to a nullable range-restricted unsigned 16-bit integer"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 100U; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt16u::Id, value); } - case 438: { - LogStep(438, "Verify nullable range-restricted unsigned 16-bit integer value is at min valid"); + case 444: { + LogStep(444, "Verify nullable range-restricted unsigned 16-bit integer value is at min valid"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt16u::Id); } - case 439: { - LogStep(439, "Write max valid value to a nullable range-restricted unsigned 16-bit integer"); + case 445: { + LogStep(445, "Write max valid value to a nullable range-restricted unsigned 16-bit integer"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 1000U; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt16u::Id, value); } - case 440: { - LogStep(440, "Verify nullable range-restricted unsigned 16-bit integer value is at max valid"); + case 446: { + LogStep(446, "Verify nullable range-restricted unsigned 16-bit integer value is at max valid"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt16u::Id); } - case 441: { - LogStep(441, "Write middle valid value to a nullable range-restricted unsigned 16-bit integer"); + case 447: { + LogStep(447, "Write middle valid value to a nullable range-restricted unsigned 16-bit integer"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 500U; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt16u::Id, value); } - case 442: { - LogStep(442, "Verify nullable range-restricted unsigned 16-bit integer value is at mid valid"); + case 448: { + LogStep(448, "Verify nullable range-restricted unsigned 16-bit integer value is at mid valid"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt16u::Id); } - case 443: { - LogStep(443, "Write null value to a nullable range-restricted unsigned 16-bit integer"); + case 449: { + LogStep(449, "Write null value to a nullable range-restricted unsigned 16-bit integer"); chip::app::DataModel::Nullable value; value.SetNull(); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt16u::Id, value); } - case 444: { - LogStep(444, "Verify nullable range-restricted unsigned 16-bit integer value is null"); + case 450: { + LogStep(450, "Verify nullable range-restricted unsigned 16-bit integer value is null"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt16u::Id); } - case 445: { - LogStep(445, "Read nullable range-restricted signed 8-bit integer"); + case 451: { + LogStep(451, "Read nullable range-restricted signed 8-bit integer"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt8s::Id); } - case 446: { - LogStep(446, "Write min value to a nullable range-restricted signed 8-bit integer"); + case 452: { + LogStep(452, "Write min value to a nullable range-restricted signed 8-bit integer"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = -127; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt8s::Id, value); } - case 447: { - LogStep(447, "Write just-below-range value to a nullable range-restricted signed 8-bit integer"); + case 453: { + LogStep(453, "Write just-below-range value to a nullable range-restricted signed 8-bit integer"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = -41; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt8s::Id, value); } - case 448: { - LogStep(448, "Write just-above-range value to a nullable range-restricted signed 8-bit integer"); + case 454: { + LogStep(454, "Write just-above-range value to a nullable range-restricted signed 8-bit integer"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 51; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt8s::Id, value); } - case 449: { - LogStep(449, "Write max value to a nullable range-restricted signed 8-bit integer"); + case 455: { + LogStep(455, "Write max value to a nullable range-restricted signed 8-bit integer"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 127; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt8s::Id, value); } - case 450: { - LogStep(450, "Verify nullable range-restricted signed 8-bit integer value has not changed"); + case 456: { + LogStep(456, "Verify nullable range-restricted signed 8-bit integer value has not changed"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt8s::Id); } - case 451: { - LogStep(451, "Write min valid value to a nullable range-restricted signed 8-bit integer"); + case 457: { + LogStep(457, "Write min valid value to a nullable range-restricted signed 8-bit integer"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = -40; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt8s::Id, value); } - case 452: { - LogStep(452, "Verify nullable range-restricted signed 8-bit integer value is at min valid"); + case 458: { + LogStep(458, "Verify nullable range-restricted signed 8-bit integer value is at min valid"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt8s::Id); } - case 453: { - LogStep(453, "Write max valid value to a nullable range-restricted signed 8-bit integer"); + case 459: { + LogStep(459, "Write max valid value to a nullable range-restricted signed 8-bit integer"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 50; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt8s::Id, value); } - case 454: { - LogStep(454, "Verify nullable range-restricted signed 8-bit integer value is at max valid"); + case 460: { + LogStep(460, "Verify nullable range-restricted signed 8-bit integer value is at max valid"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt8s::Id); } - case 455: { - LogStep(455, "Write middle valid value to a nullable range-restricted signed 8-bit integer"); + case 461: { + LogStep(461, "Write middle valid value to a nullable range-restricted signed 8-bit integer"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 6; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt8s::Id, value); } - case 456: { - LogStep(456, "Verify nullable range-restricted signed 8-bit integer value is at mid valid"); + case 462: { + LogStep(462, "Verify nullable range-restricted signed 8-bit integer value is at mid valid"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt8s::Id); } - case 457: { - LogStep(457, "Write null value to a nullable range-restricted signed 8-bit integer"); + case 463: { + LogStep(463, "Write null value to a nullable range-restricted signed 8-bit integer"); chip::app::DataModel::Nullable value; value.SetNull(); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt8s::Id, value); } - case 458: { - LogStep(458, "Verify nullable range-restricted signed 8-bit integer value is at null"); + case 464: { + LogStep(464, "Verify nullable range-restricted signed 8-bit integer value is at null"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt8s::Id); } - case 459: { - LogStep(459, "Read nullable range-restricted signed 16-bit integer"); + case 465: { + LogStep(465, "Read nullable range-restricted signed 16-bit integer"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt16s::Id); } - case 460: { - LogStep(460, "Write min value to a nullable range-restricted signed 16-bit integer"); + case 466: { + LogStep(466, "Write min value to a nullable range-restricted signed 16-bit integer"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = -32767; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt16s::Id, value); } - case 461: { - LogStep(461, "Write just-below-range value to a nullable range-restricted signed 16-bit integer"); + case 467: { + LogStep(467, "Write just-below-range value to a nullable range-restricted signed 16-bit integer"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = -151; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt16s::Id, value); } - case 462: { - LogStep(462, "Write just-above-range value to a nullable range-restricted signed 16-bit integer"); + case 468: { + LogStep(468, "Write just-above-range value to a nullable range-restricted signed 16-bit integer"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 201; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt16s::Id, value); } - case 463: { - LogStep(463, "Write max value to a nullable range-restricted signed 16-bit integer"); + case 469: { + LogStep(469, "Write max value to a nullable range-restricted signed 16-bit integer"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 32767; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt16s::Id, value); } - case 464: { - LogStep(464, "Verify nullable range-restricted signed 16-bit integer value has not changed"); + case 470: { + LogStep(470, "Verify nullable range-restricted signed 16-bit integer value has not changed"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt16s::Id); } - case 465: { - LogStep(465, "Write min valid value to a nullable range-restricted signed 16-bit integer"); + case 471: { + LogStep(471, "Write min valid value to a nullable range-restricted signed 16-bit integer"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = -150; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt16s::Id, value); } - case 466: { - LogStep(466, "Verify nullable range-restricted signed 16-bit integer value is at min valid"); + case 472: { + LogStep(472, "Verify nullable range-restricted signed 16-bit integer value is at min valid"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt16s::Id); } - case 467: { - LogStep(467, "Write max valid value to a nullable range-restricted signed 16-bit integer"); + case 473: { + LogStep(473, "Write max valid value to a nullable range-restricted signed 16-bit integer"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 200; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt16s::Id, value); } - case 468: { - LogStep(468, "Verify nullable range-restricted signed 16-bit integer value is at max valid"); + case 474: { + LogStep(474, "Verify nullable range-restricted signed 16-bit integer value is at max valid"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt16s::Id); } - case 469: { - LogStep(469, "Write middle valid value to a nullable range-restricted signed 16-bit integer"); + case 475: { + LogStep(475, "Write middle valid value to a nullable range-restricted signed 16-bit integer"); chip::app::DataModel::Nullable value; value.SetNonNull(); value.Value() = 7; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt16s::Id, value); } - case 470: { - LogStep(470, "Verify nullable range-restricted signed 16-bit integer value is at mid valid"); + case 476: { + LogStep(476, "Verify nullable range-restricted signed 16-bit integer value is at mid valid"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt16s::Id); } - case 471: { - LogStep(471, "Write null value to a nullable range-restricted signed 16-bit integer"); + case 477: { + LogStep(477, "Write null value to a nullable range-restricted signed 16-bit integer"); chip::app::DataModel::Nullable value; value.SetNull(); return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt16s::Id, value); } - case 472: { - LogStep(472, "Verify nullable range-restricted signed 16-bit integer value is null"); + case 478: { + LogStep(478, "Verify nullable range-restricted signed 16-bit integer value is null"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::NullableRangeRestrictedInt16s::Id); } - case 473: { - LogStep(473, "Write attribute that returns general status on write"); + case 479: { + LogStep(479, "Write attribute that returns general status on write"); bool value; value = false; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::GeneralErrorBoolean::Id, value); } - case 474: { - LogStep(474, "Write attribute that returns cluster-specific status on write"); + case 480: { + LogStep(480, "Write attribute that returns cluster-specific status on write"); bool value; value = false; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::ClusterErrorBoolean::Id, value); } - case 475: { - LogStep(475, "Read attribute that returns general status on read"); + case 481: { + LogStep(481, "Read attribute that returns general status on read"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::GeneralErrorBoolean::Id); } - case 476: { - LogStep(476, "read attribute that returns cluster-specific status on read"); + case 482: { + LogStep(482, "read attribute that returns cluster-specific status on read"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::ClusterErrorBoolean::Id); } - case 477: { - LogStep(477, "read AcceptedCommandList attribute"); + case 483: { + LogStep(483, "read AcceptedCommandList attribute"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::AcceptedCommandList::Id); } - case 478: { - LogStep(478, "read GeneratedCommandList attribute"); + case 484: { + LogStep(484, "read GeneratedCommandList attribute"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::GeneratedCommandList::Id); } - case 479: { - LogStep(479, "Write struct-typed attribute"); + case 485: { + LogStep(485, "Write struct-typed attribute"); chip::app::Clusters::TestCluster::Structs::SimpleStruct::Type value; value.a = 5; @@ -44182,8 +44318,8 @@ class TestClusterSuite : public TestCommand return WriteAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::StructAttr::Id, value); } - case 480: { - LogStep(480, "Read struct-typed attribute"); + case 486: { + LogStep(486, "Read struct-typed attribute"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), TestCluster::Id, TestCluster::Attributes::StructAttr::Id); } }