tree: 6b1d0eb5e2c39ee80f403a051be902682b5eb6f6 [path history] [tgz]
  1. bitfields.h
  2. bitfields_rs_api.rs
  3. bitfields_rs_api_impl.cc
  4. BUILD
  5. clang_attrs.h
  6. clang_attrs_rs_api.rs
  7. clang_attrs_rs_api_impl.cc
  8. comment.h
  9. comment_rs_api.rs
  10. comment_rs_api_impl.cc
  11. doc_comment.h
  12. doc_comment_rs_api.rs
  13. doc_comment_rs_api_impl.cc
  14. empty_rs_test.rs
  15. escaping_keywords.h
  16. escaping_keywords_rs_api.rs
  17. escaping_keywords_rs_api_impl.cc
  18. generate_bindings.bzl
  19. inheritance.h
  20. inheritance_rs_api.rs
  21. inheritance_rs_api_impl.cc
  22. item_order.h
  23. item_order_rs_api.rs
  24. item_order_rs_api_impl.cc
  25. LICENSE_HEADER
  26. lifetimes.h
  27. lifetimes_rs_api.rs
  28. lifetimes_rs_api_impl.cc
  29. namespace.h
  30. namespace_rs_api.rs
  31. namespace_rs_api_impl.cc
  32. no_elided_lifetimes.h
  33. no_elided_lifetimes_rs_api.rs
  34. no_elided_lifetimes_rs_api_impl.cc
  35. no_unique_address.h
  36. no_unique_address_rs_api.rs
  37. no_unique_address_rs_api_impl.cc
  38. nontrivial_type.h
  39. nontrivial_type_rs_api.rs
  40. nontrivial_type_rs_api_impl.cc
  41. polymorphic.h
  42. polymorphic_rs_api.rs
  43. polymorphic_rs_api_impl.cc
  44. private_members.h
  45. private_members_rs_api.rs
  46. private_members_rs_api_impl.cc
  47. README.md
  48. static_methods.h
  49. static_methods_rs_api.rs
  50. static_methods_rs_api_impl.cc
  51. templates.h
  52. templates_rs_api.rs
  53. templates_rs_api_impl.cc
  54. test.sh
  55. trivial_type.h
  56. trivial_type_rs_api.rs
  57. trivial_type_rs_api_impl.cc
  58. typedefs.h
  59. typedefs_rs_api.rs
  60. typedefs_rs_api_impl.cc
  61. types.h
  62. types_rs_api.rs
  63. types_rs_api_impl.cc
  64. unions.h
  65. unions_rs_api.rs
  66. unions_rs_api_impl.cc
  67. unsupported.h
  68. unsupported_rs_api.rs
  69. unsupported_rs_api_impl.cc
  70. update.sh
  71. user_of_base_class.h
  72. user_of_base_class_rs_api.rs
  73. user_of_base_class_rs_api_impl.cc
  74. user_of_imported_type.h
  75. user_of_imported_type_rs_api.rs
  76. user_of_imported_type_rs_api_impl.cc
  77. user_of_unsupported.h
  78. user_of_unsupported_rs_api.rs
  79. 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.