Add basic oneof tests

This commit is contained in:
Daniel G. Taylor 2019-10-20 22:49:53 -07:00
parent a33d92d89d
commit cfedcab5ab
No known key found for this signature in database
GPG Key ID: 7BD6DC99C9A87E22
4 changed files with 18 additions and 0 deletions

View File

@ -222,6 +222,10 @@ $ pipenv run tests
- [x] Refs to nested types - [x] Refs to nested types
- [x] Imports in proto files - [x] Imports in proto files
- [x] Well-known Google types - [x] Well-known Google types
- [ ] OneOf support
- [x] Basic support on the wire
- [ ] Check which was set from the group
- [ ] Setting one unsets the others
- [ ] JSON that isn't completely naive. - [ ] JSON that isn't completely naive.
- [x] 64-bit ints as strings - [x] 64-bit ints as strings
- [x] Maps - [x] Maps

View File

@ -0,0 +1,3 @@
{
"name": "foo"
}

View File

@ -0,0 +1,3 @@
{
"count": 1
}

View File

@ -0,0 +1,8 @@
syntax = "proto3";
message Test {
oneof foo {
int32 count = 1;
string name = 2;
}
}