Commit 427e165
authored
proto: fix and cleanup test for deterministic marshal with custom marshalers (#656)
PR #650 added a check to error out when a custom marshaler was called and
deterministic marshaling was also specified.
That change performed the check in a relatively obscure location that did not
catch all code paths. Since determinism can only be enabled on the Buffer type,
we check it up front in Buffer.Marshal.
Also, change the test to avoid code injection into generated sources.1 parent 14aad3d commit 427e165
File tree
5 files changed
+370
-411
lines changed- proto
- test_proto
5 files changed
+370
-411
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2303 | 2303 | | |
2304 | 2304 | | |
2305 | 2305 | | |
| 2306 | + | |
| 2307 | + | |
| 2308 | + | |
| 2309 | + | |
| 2310 | + | |
| 2311 | + | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
2306 | 2315 | | |
2307 | | - | |
2308 | | - | |
| 2316 | + | |
2309 | 2317 | | |
2310 | 2318 | | |
2311 | | - | |
2312 | | - | |
2313 | | - | |
| 2319 | + | |
| 2320 | + | |
| 2321 | + | |
2314 | 2322 | | |
2315 | 2323 | | |
2316 | 2324 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | 228 | | |
232 | 229 | | |
233 | 230 | | |
| |||
2718 | 2715 | | |
2719 | 2716 | | |
2720 | 2717 | | |
| 2718 | + | |
| 2719 | + | |
| 2720 | + | |
| 2721 | + | |
| 2722 | + | |
2721 | 2723 | | |
2722 | 2724 | | |
2723 | 2725 | | |
| |||
This file was deleted.
0 commit comments