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