add Protobuf Stream Decode operation

This commit is contained in:
Oliver Rahner 2022-07-21 13:46:15 +02:00
parent 2f89130f41
commit eda9a40aa2
No known key found for this signature in database
GPG key ID: 8658521FC5B6D857
4 changed files with 100 additions and 0 deletions

View file

@ -303,4 +303,31 @@ TestRegister.addTests([
}
]
},
{
name: "Protobuf Stream Decode: no schema",
input: "0d081c1203596f751a024d65202b0c0a0a0a066162633132331200",
expectedOutput: JSON.stringify([{
"1": 28,
"2": "You",
"3": "Me",
"4": 43
},
{
"1": {
"1": "abc123",
"2": {}
}
}], null, 4),
recipeConfig: [
{
"op": "From Hex",
"args": ["Auto"]
},
{
"op": "Protobuf Stream Decode",
"args": ["", false, false]
}
]
},
]);