gorealis/vendor/git.apache.org/thrift.git/test/audit
Renan DelValle 8d445c1c77
Moving from govendor to dep, updated dependencies (#48)
* Moving from govendor to dep.

* Making the pull request template more friendly.

* Fixing akward space in PR template.

* goimports run on whole project using ` goimports -w $(find . -type f -name '*.go' -not -path "./vendor/*" -not -path "./gen-go/*")`

source of command: https://gist.github.com/bgentry/fd1ffef7dbde01857f66
2018-01-07 13:13:47 -08:00
..
break1.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break2.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break3.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break4.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break5.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break6.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break7.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break8.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break9.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break10.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break11.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break12.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break13.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break14.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break15.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break16.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break17.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break18.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break19.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break20.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break21.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break22.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break23.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break24.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break25.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break26.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break27.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break28.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break29.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break30.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break31.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break32.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break33.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
break34.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
README.md Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
test.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
thrift_audit_test.pl Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -08:00
warning.thrift Moving from govendor to dep, updated dependencies (#48) 2018-01-07 13:13:47 -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