~bduggan/raku-protobuf

ref: 4928ccd4ed1b64b5cef334ce173153eb7d1fa4a0 raku-protobuf/t/03-actions.rakutest -rw-r--r-- 416 bytes
4928ccd4Brian Duggan fix field options, support reserved enums 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
use Protobuf;
use Test;

my $m = parse-proto($?FILE.IO.parent.parent.child('eg/helloworld.proto').slurp);
my @services = $m.services;
is @services[0].name, 'Greeter', 'service name';
is @services[0].endpoints[0].name, 'SayHello', 'endpoint name';
is @services[0].endpoints[0].request.fields[0].name, 'name', 'field name';
is @services[0].endpoints[0].response.fields[0].name, 'message', 'field name';

done-testing;