Skip to content

Commit

Permalink
get_metadata fix
Browse files Browse the repository at this point in the history
Signed-off-by: strmv <strmax20@gmail.com>
  • Loading branch information
str-mv committed Jul 22, 2019
1 parent 3c94d71 commit 9ff55fd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/get_metadata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,21 @@ int main(int argc, char *argv[]) {
resp2 = app.getMetadata(nullptr);
app.disconnect();

assert(resp2->metadataV0 != nullptr || resp2->metadataV5 != nullptr || resp2->metadataV6 != nullptr);
assert(resp2->metadataV0 != nullptr || resp2->metadataV4 != nullptr || resp2->metadataV5 != nullptr || resp2->metadataV6 != nullptr);
cout << endl << "--- Received metadata ---" << endl;
if (resp2->metadataV0) {
cout << "OuterEventWrapperV0.name: " << resp2->metadataV0->oew->name << endl;
cout << "ModuleV0[0].prefix: " << resp2->metadataV0->module[0]->prefix << endl;
cout << "ModuleV0[1].prefix: " << resp2->metadataV0->module[1]->prefix << endl;
cout << "..." << endl;
}
if (resp2->metadataV4) {
cout << "ModuleV4[0].prefix: " << resp2->metadataV4->module[0]->prefix << endl;
cout << "ModuleV4[1].prefix: " << resp2->metadataV4->module[1]->prefix << endl;
cout << "ModuleV4[2].prefix: " << resp2->metadataV4->module[2]->prefix << endl;
cout << "ModuleV4[3].prefix: " << resp2->metadataV4->module[3]->prefix << endl;
cout << "..." << endl;
}
if (resp2->metadataV5) {
cout << "ModuleV5[0].prefix: " << resp2->metadataV5->module[0]->prefix << endl;
cout << "ModuleV5[1].prefix: " << resp2->metadataV5->module[1]->prefix << endl;
Expand Down

0 comments on commit 9ff55fd

Please sign in to comment.