summaryrefslogtreecommitdiffstats
path: root/src/vat2/test/vat2_test.c
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2021-02-16 00:31:52 +0100
committerNeale Ranns <neale@graphiant.com>2021-02-16 08:13:41 +0000
commit316967cfad2860ce286ef516d608d8099de7d9a9 (patch)
tree48c1146a0b2f445f8a55ef16812e14ecbebe88ee /src/vat2/test/vat2_test.c
parent810bb89bdd454a96e12183c2b18a43c729aa5b57 (diff)
vppapigen: fix coverity issues in jsonconvert
Type: fix Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: I92e03a5a3fcbdab6ce4d178193dceb4450ac0f62
Diffstat (limited to 'src/vat2/test/vat2_test.c')
-rw-r--r--src/vat2/test/vat2_test.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vat2/test/vat2_test.c b/src/vat2/test/vat2_test.c
index 10cfee4be17..f28bb414d56 100644
--- a/src/vat2/test/vat2_test.c
+++ b/src/vat2/test/vat2_test.c
@@ -142,6 +142,11 @@ struct msgs msgs[] = {
.tojson = (tojson_fn_t) vl_api_test_vla5_t_tojson,
.fromjson = (fromjson_fn_t) vl_api_test_vla5_t_fromjson,
},
+ {
+ .name = "test_addresses",
+ .tojson = (tojson_fn_t) vl_api_test_addresses_t_tojson,
+ .fromjson = (fromjson_fn_t) vl_api_test_addresses_t_fromjson,
+ },
};
struct tests tests[] = {
@@ -163,6 +168,8 @@ struct tests tests[] = {
"[1,2,3,4,5] }}" },
{ .s = "{\"_msgname\": \"test_vla5\", \"data\": { \"count\": 5, \"vla\": "
"\"0xaabbccddee\" }}" },
+ { .s = "{\"_msgname\": \"test_addresses\", \"a\": \"1.2.3.4\" }" },
+ { .s = "{\"_msgname\": \"test_addresses\", \"a\": \"2001:db8::23\" }" },
};
int main (int argc, char **argv)