Commit d425184
Fix AstTreePrinterTest.ParseAndDebugPrint unit-test failure
Summary:
Currently there is mismatch between expected and actual result.
It's not easily to update the result, thus I modified the unit-test and added a script to update it automatically.
```
[2026-01-02T13:03:01.346-08:00] With diff:
[2026-01-02T13:03:01.346-08:00] @@ -39,5 +39,5 @@
[2026-01-02T13:03:01.346-08:00] \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x9C\xE2\x94\x80 name: RpcPriority
[2026-01-02T13:03:01.346-08:00] \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x9C\xE2\x94\x80 scoped_name: thrift.RpcPriority
[2026-01-02T13:03:01.346-08:00] - \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x9C\xE2\x94\x80 uri: facebook.com/thrift/annotation/RpcPriority
[2026-01-02T13:03:01.346-08:00] + \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x9C\xE2\x94\x80 uri:
[2026-01-02T13:03:01.346-08:00] \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x9C\xE2\x94\x80 explicit_uri? false
[2026-01-02T13:03:01.346-08:00] \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x9C\xE2\x94\x80 generated? false
[2026-01-02T13:03:01.346-08:00] @@ -516,5 +516,5 @@
[2026-01-02T13:03:01.346-08:00] \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x9C\xE2\x94\x80 name: RpcPriority
[2026-01-02T13:03:01.346-08:00] \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x9C\xE2\x94\x80 scoped_name: thrift.RpcPriority
[2026-01-02T13:03:01.346-08:00] - \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x9C\xE2\x94\x80 uri: facebook.com/thrift/annotation/RpcPriority
[2026-01-02T13:03:01.346-08:00] + \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x9C\xE2\x94\x80 uri:
[2026-01-02T13:03:01.346-08:00] \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x9C\xE2\x94\x80 explicit_uri? false
[2026-01-02T13:03:01.346-08:00] \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x9C\xE2\x94\x80 generated? false
[2026-01-02T13:03:01.346-08:00] @@ -2879,5 +2879,5 @@
[2026-01-02T13:03:01.346-08:00] \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x9C\xE2\x94\x80 name: RpcPriority
[2026-01-02T13:03:01.346-08:00] \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x9C\xE2\x94\x80 scoped_name: thrift.RpcPriority
[2026-01-02T13:03:01.346-08:00] - \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x9C\xE2\x94\x80 uri: facebook.com/thrift/annotation/RpcPriority
[2026-01-02T13:03:01.346-08:00] + \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x9C\xE2\x94\x80 uri:
[2026-01-02T13:03:01.346-08:00] \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x9C\xE2\x94\x80 explicit_uri? false
[2026-01-02T13:03:01.346-08:00] \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x82 \xE2\x94\x9C\xE2\x94\x80 generated? false
[2026-01-02T13:03:01.346-08:00] @@ -4154,3 +4154,3 @@
[2026-01-02T13:03:01.346-08:00] \xE2\x94\x82 \xE2\x95\xB0\xE2\x94\x80 name: DisableSchemaConst
[2026-01-02T13:03:01.346-08:00] \xE2\x95\xB0\xE2\x94\x80 type_instantiations (size: 0)
[2026-01-02T13:03:01.346-08:00] -"
```
Reviewed By: aristidisp, vitaut
Differential Revision: D90039601
fbshipit-source-id: f5ffe5f3fb091a5ba6eaf35a44c707e0ba59aef71 parent 72ceb63 commit d425184
3 files changed
Lines changed: 4279 additions & 4210 deletions
File tree
- third-party/thrift/src/thrift/compiler/ast/test
0 commit comments