tree: a9441354b19ef659a1539bf663e326efd43f58c0 [path history] [tgz]
  1. README.md
  2. break1.thrift
  3. break10.thrift
  4. break11.thrift
  5. break12.thrift
  6. break13.thrift
  7. break14.thrift
  8. break15.thrift
  9. break16.thrift
  10. break17.thrift
  11. break18.thrift
  12. break19.thrift
  13. break2.thrift
  14. break20.thrift
  15. break21.thrift
  16. break22.thrift
  17. break23.thrift
  18. break24.thrift
  19. break25.thrift
  20. break26.thrift
  21. break27.thrift
  22. break28.thrift
  23. break29.thrift
  24. break3.thrift
  25. break30.thrift
  26. break31.thrift
  27. break32.thrift
  28. break33.thrift
  29. break34.thrift
  30. break4.thrift
  31. break5.thrift
  32. break6.thrift
  33. break7.thrift
  34. break8.thrift
  35. break9.thrift
  36. test.thrift
  37. thrift_audit_test.pl
  38. warning.thrift
test/audit/README.md

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