Skip to content

Commit

Permalink
fix cpp_test
Browse files Browse the repository at this point in the history
  • Loading branch information
0xPxt committed Sep 2, 2024
1 parent e984dde commit 502220c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/ui_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,10 @@ void check_testcase(const testcase_t &tc, bool expert_mode) {
parser_error_t err;

uint8_t buffer[5000];
MEMZERO(buffer, sizeof(buffer));
uint16_t bufferLen = parseHexString(buffer, sizeof(buffer), tc.blob.c_str());

tx_json_t tx_obj;
memset(&tx_obj, 0, sizeof(tx_obj));

err = parser_parse(&ctx, buffer, bufferLen, &tx_obj);
err = parser_parse(&ctx, buffer, strlen((char *)buffer), tx_type_json);
ASSERT_EQ(err, parser_ok) << parser_getErrorDescription(err);

auto output = dumpUI(&ctx, 39, 39);
Expand Down

1 comment on commit 502220c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-Linter Report ⚠️

Some files did not pass the configured checks!

clang-format reports: 11 file(s) not formatted
  • app/src/items_format.h
  • app/src/crypto.h
  • app/src/items.h
  • app/src/parser_txdef.h
  • app/src/parser_impl.h
  • app/src/common/tx.h
  • app/src/crypto.c
  • app/src/parser_impl.c
  • app/src/items.c
  • app/src/apdu_handler.c
  • app/src/parser.c

Have any feedback or feature suggestions? Share it here.

Please sign in to comment.