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