~bduggan/raku-protobuf

ref: 204a01ffb6bd0849698e8adf47a3b1bc4030f020 raku-protobuf/t/04-nested.rakutest -rw-r--r-- 338 bytes
204a01ffBrian Duggan doc 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
use Protobuf;
use Test;

my $m = parse-proto($?FILE.IO.parent.parent.child('eg/nested.proto').slurp);
my @services = $m.services;
is @services[0].endpoints[1].request.fields[0].type.name, 'HelloRequest', 'type name';
is @services[0].endpoints[1].request.fields[0].type.fields[0].name, 'name', 'type has nested attributes';

done-testing;