Skip to content

Commit

Permalink
Cleaning up the Command generated file so that we do not get unnecess…
Browse files Browse the repository at this point in the history
…ary diff

JIRA: ZAPP-757
  • Loading branch information
brdandu committed May 10, 2022
1 parent c455be7 commit 7a58516
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
{{definedValue}};
{{else if (chip_tests_config_has definedValue)}}
m{{asUpperCamelCase definedValue}}.HasValue() ? m{{asUpperCamelCase definedValue}}.Value() :
{{~#if_chip_enum type~}}
{{~#if_is_strongly_typed_chip_enum type~}}
static_cast<{{zapTypeToEncodableClusterObjectType type ns=ns}}>({{chip_tests_config_get_default_value definedValue}});
{{else if (isCharString type)}}
chip::Span<const char>("{{chip_tests_config_get_default_value definedValue}}", {{utf8StringLength (chip_tests_config_get_default_value definedValue)}});
Expand All @@ -53,9 +53,9 @@
{{else}}
{{asTypedExpression (chip_tests_config_get_default_value definedValue) type}};
{{/if_is_strongly_typed_bitmap}}
{{/if_chip_enum~}}
{{/if_is_strongly_typed_chip_enum~}}
{{else~}}
{{~#if_chip_enum type~}}
{{~#if_is_strongly_typed_chip_enum type~}}
static_cast<{{zapTypeToEncodableClusterObjectType type ns=ns}}>({{definedValue}});
{{else if (isCharString type)}}
chip::Span<const char>("{{definedValue}}garbage: not in length on purpose", {{utf8StringLength definedValue}});
Expand All @@ -67,7 +67,7 @@
{{else}}
{{asTypedExpression definedValue type}};
{{/if_is_strongly_typed_bitmap}}
{{/if_chip_enum~}}
{{/if_is_strongly_typed_chip_enum~}}
{{~/if~}}

{{/if_is_struct}}
Expand Down
54 changes: 27 additions & 27 deletions zzz_generated/chip-tool/zap-generated/test/Commands.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7a58516

Please sign in to comment.