Skip to content

Commit

Permalink
Add test for dynFunction_argumentMetaForIndex.
Browse files Browse the repository at this point in the history
  • Loading branch information
PengZheng committed Jan 28, 2024
1 parent 876471d commit 8d1b0bf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libs/dfi/gtest/src/dyn_interface_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ extern "C" {

checkInterfaceVersion(dynIntf,"1.0.0");

auto method = dynInterface_findMethod(dynIntf, "add(DD)D");
EXPECT_EQ(DYN_FUNCTION_ARGUMENT_META__HANDLE, dynFunction_argumentMetaForIndex(method->dynFunc, 0));
EXPECT_EQ(DYN_FUNCTION_ARGUMENT_META__STD, dynFunction_argumentMetaForIndex(method->dynFunc, 1));
EXPECT_EQ(DYN_FUNCTION_ARGUMENT_META__STD, dynFunction_argumentMetaForIndex(method->dynFunc, 2));
EXPECT_EQ(DYN_FUNCTION_ARGUMENT_META__PRE_ALLOCATED_OUTPUT, dynFunction_argumentMetaForIndex(method->dynFunc, 3));
EXPECT_EQ(DYN_FUNCTION_ARGUMENT_META__STD, dynFunction_argumentMetaForIndex(method->dynFunc, 4));

const char *annVal = NULL;
status = dynInterface_getAnnotationEntry(dynIntf, "classname", &annVal);
ASSERT_EQ(0, status);
Expand Down

0 comments on commit 8d1b0bf

Please sign in to comment.