thrift/test/audit
2022-12-16 00:09:39 +08:00
..
break1.thrift 源码提交 2022-12-16 00:09:39 +08:00
break2.thrift 源码提交 2022-12-16 00:09:39 +08:00
break3.thrift 源码提交 2022-12-16 00:09:39 +08:00
break4.thrift 源码提交 2022-12-16 00:09:39 +08:00
break5.thrift 源码提交 2022-12-16 00:09:39 +08:00
break6.thrift 源码提交 2022-12-16 00:09:39 +08:00
break7.thrift 源码提交 2022-12-16 00:09:39 +08:00
break8.thrift 源码提交 2022-12-16 00:09:39 +08:00
break9.thrift 源码提交 2022-12-16 00:09:39 +08:00
break10.thrift 源码提交 2022-12-16 00:09:39 +08:00
break11.thrift 源码提交 2022-12-16 00:09:39 +08:00
break12.thrift 源码提交 2022-12-16 00:09:39 +08:00
break13.thrift 源码提交 2022-12-16 00:09:39 +08:00
break14.thrift 源码提交 2022-12-16 00:09:39 +08:00
break15.thrift 源码提交 2022-12-16 00:09:39 +08:00
break16.thrift 源码提交 2022-12-16 00:09:39 +08:00
break17.thrift 源码提交 2022-12-16 00:09:39 +08:00
break18.thrift 源码提交 2022-12-16 00:09:39 +08:00
break19.thrift 源码提交 2022-12-16 00:09:39 +08:00
break20.thrift 源码提交 2022-12-16 00:09:39 +08:00
break21.thrift 源码提交 2022-12-16 00:09:39 +08:00
break22.thrift 源码提交 2022-12-16 00:09:39 +08:00
break23.thrift 源码提交 2022-12-16 00:09:39 +08:00
break24.thrift 源码提交 2022-12-16 00:09:39 +08:00
break25.thrift 源码提交 2022-12-16 00:09:39 +08:00
break26.thrift 源码提交 2022-12-16 00:09:39 +08:00
break27.thrift 源码提交 2022-12-16 00:09:39 +08:00
break28.thrift 源码提交 2022-12-16 00:09:39 +08:00
break29.thrift 源码提交 2022-12-16 00:09:39 +08:00
break30.thrift 源码提交 2022-12-16 00:09:39 +08:00
break31.thrift 源码提交 2022-12-16 00:09:39 +08:00
break32.thrift 源码提交 2022-12-16 00:09:39 +08:00
break33.thrift 源码提交 2022-12-16 00:09:39 +08:00
break34.thrift 源码提交 2022-12-16 00:09:39 +08:00
README.md 源码提交 2022-12-16 00:09:39 +08:00
test.thrift 源码提交 2022-12-16 00:09:39 +08:00
thrift_audit_test.pl 源码提交 2022-12-16 00:09:39 +08:00
warning.thrift 源码提交 2022-12-16 00:09:39 +08:00

Typical usage

thrift.exe --audit <oldFile> <newFile>

Example run

> thrift.exe --audit test.thrift break1.thrift
[Thrift Audit Failure:break1.thrift] New Thrift File has missing function base_function3
[Thrift Audit Warning:break1.thrift] Constant const3 has different value

Problems that the audit tool can catch

Errors

  • Removing an enum value
  • Changing the type of a struct field
  • Changing the required-ness of a struct field
  • Removing a struct field
  • Adding a required struct field
  • Adding a struct field 'in the middle'. This usually indicates an old ID has been recycled
  • Struct removed
  • Oneway-ness change
  • Return type change
  • Missing function
  • Missing service
  • Change in service inheritance

Warnings

  • Removing a language namespace declaration
  • Changing a namespace
  • Changing an enum value's name
  • Removing an enum class
  • Default value changed
  • Struct field name change
  • Removed constant
  • Type of constant changed
  • Value of constant changed