tree: 345655d3ebf9b8e80bd18c22ddf13c824e4cc41d [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. no_elided_lifetimes.h
  26. no_elided_lifetimes_rs_api.rs
  27. no_elided_lifetimes_rs_api_impl.cc
  28. nontrivial_type.h
  29. nontrivial_type_rs_api.rs
  30. nontrivial_type_rs_api_impl.cc
  31. polymorphic.h
  32. polymorphic_rs_api.rs
  33. polymorphic_rs_api_impl.cc
  34. private_members.h
  35. private_members_rs_api.rs
  36. private_members_rs_api_impl.cc
  37. README.md
  38. static_methods.h
  39. static_methods_rs_api.rs
  40. static_methods_rs_api_impl.cc
  41. test.sh
  42. trivial_type.h
  43. trivial_type_rs_api.rs
  44. trivial_type_rs_api_impl.cc
  45. types.h
  46. types_rs_api.rs
  47. types_rs_api_impl.cc
  48. unsupported.h
  49. unsupported_rs_api.rs
  50. unsupported_rs_api_impl.cc
  51. update.sh
  52. user_of_base_class.h
  53. user_of_base_class_rs_api.rs
  54. user_of_base_class_rs_api_impl.cc
  55. user_of_imported_type.h
  56. user_of_imported_type_rs_api.rs
  57. user_of_imported_type_rs_api_impl.cc
  58. user_of_unsupported.h
  59. user_of_unsupported_rs_api.rs
  60. 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.