-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement binary mode (matching fields and enum values by number)
- Loading branch information
Showing
11 changed files
with
195 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
syntax = "proto2"; | ||
|
||
package Test; | ||
|
||
enum E { | ||
v1 = 1; | ||
v2 = 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
syntax = "proto2"; | ||
|
||
package Test; | ||
|
||
enum E { | ||
v2_changed = 2; | ||
v3 = 3; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"type": "/", | ||
"sections": [{ | ||
"type": "enum_comparison", | ||
"a": "Test.E", | ||
"b": "Test.E", | ||
"items": [{ | ||
"type": "enum_value_removed", | ||
"a": "1", | ||
"b": "" | ||
},{ | ||
"type": "enum_value_added", | ||
"a": "", | ||
"b": "3" | ||
}], | ||
"sections": [{ | ||
"type": "enum_value_comparison", | ||
"a": "v2", | ||
"b": "v2_changed", | ||
"items": [{ | ||
"type": "enum_value_name_changed", | ||
"a": "v2", | ||
"b": "v2_changed" | ||
}] | ||
}] | ||
}] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
syntax = "proto2"; | ||
|
||
package Test; | ||
|
||
message M { | ||
optional float f1 = 1; | ||
optional float f2 = 2; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
syntax = "proto2"; | ||
|
||
package Test; | ||
|
||
message M { | ||
optional bool f2_changed = 2; | ||
optional float f3 = 3; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"type": "/", | ||
"sections": [{ | ||
"type": "message_comparison", | ||
"a": "Test.M", | ||
"b": "Test.M", | ||
"items": [{ | ||
"type": "message_field_removed", | ||
"a": "1", | ||
"b": "" | ||
},{ | ||
"type": "message_field_added", | ||
"a": "", | ||
"b": "3" | ||
}], | ||
"sections": [{ | ||
"type": "message_field_comparison", | ||
"a": "f2", | ||
"b": "f2_changed", | ||
"items": [{ | ||
"type": "message_field_name_changed", | ||
"a": "f2", | ||
"b": "f2_changed" | ||
},{ | ||
"type": "message_field_type_changed", | ||
"a": "float", | ||
"b": "bool" | ||
}] | ||
}] | ||
}] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters