tree: f51dcc1c8cfce1827821fc6d53ed335a73221a62 [path history] [tgz]
  1. BUILD
  2. clang_attrs.h
  3. clang_attrs_rs_api.rs
  4. clang_attrs_rs_api_impl.cc
  5. comment.h
  6. comment_rs_api.rs
  7. comment_rs_api_impl.cc
  8. doc_comment.h
  9. doc_comment_rs_api.rs
  10. doc_comment_rs_api_impl.cc
  11. escaping_keywords.h
  12. escaping_keywords_rs_api.rs
  13. escaping_keywords_rs_api_impl.cc
  14. generate_bindings.bzl
  15. inheritance.h
  16. inheritance_rs_api.rs
  17. inheritance_rs_api_impl.cc
  18. item_order.h
  19. item_order_rs_api.rs
  20. item_order_rs_api_impl.cc
  21. LICENSE_HEADER
  22. lifetimes.h
  23. lifetimes_rs_api.rs
  24. lifetimes_rs_api_impl.cc
  25. namespace.h
  26. namespace_rs_api.rs
  27. namespace_rs_api_impl.cc
  28. no_elided_lifetimes.h
  29. no_elided_lifetimes_rs_api.rs
  30. no_elided_lifetimes_rs_api_impl.cc
  31. nontrivial_type.h
  32. nontrivial_type_rs_api.rs
  33. nontrivial_type_rs_api_impl.cc
  34. polymorphic.h
  35. polymorphic_rs_api.rs
  36. polymorphic_rs_api_impl.cc
  37. private_members.h
  38. private_members_rs_api.rs
  39. private_members_rs_api_impl.cc
  40. README.md
  41. static_methods.h
  42. static_methods_rs_api.rs
  43. static_methods_rs_api_impl.cc
  44. test.sh
  45. trivial_type.h
  46. trivial_type_rs_api.rs
  47. trivial_type_rs_api_impl.cc
  48. types.h
  49. types_rs_api.rs
  50. types_rs_api_impl.cc
  51. unsupported.h
  52. unsupported_rs_api.rs
  53. unsupported_rs_api_impl.cc
  54. update.sh
  55. user_of_base_class.h
  56. user_of_base_class_rs_api.rs
  57. user_of_base_class_rs_api_impl.cc
  58. user_of_imported_type.h
  59. user_of_imported_type_rs_api.rs
  60. user_of_imported_type_rs_api_impl.cc
  61. user_of_unsupported.h
  62. user_of_unsupported_rs_api.rs
  63. user_of_unsupported_rs_api_impl.cc
rs_bindings_from_cc/test/golden/README.md

Golden file tests

Instructions

  • Add a new test by adding a foo.h file and executing ./update.sh. This will generate the corresponding bindings files foo.cc and foo.rs.
  • If a test in this directory fails, look at the output. It should contain a diff of the failure.
  • If you get spurious failures in this directory: Run ./update.sh.